You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`no_commands` can be set to `true` and the commands `Pytrize` etc won't be declared.
104
104
-`highlight` defines the highlighting used for the virtual text.
105
105
-`metrics` when set to `true`, logs timing information via `vim.notify` after each jump-to-fixture and rename operation. Useful for understanding performance in large projects. The jump reports total time and index-build time; the rename reports total, grep, scoping (fixture resolution), and apply time.
106
-
-`preferred_input` which method to query input to prefer (if it's installed), see the [Input](#input)-section below. For fixture usages, setting this to `'fzf-lua'`will display results in an [`fzf-lua`](https://github.com/ibhagwan/fzf-lua) picker instead of the quickfix list.
106
+
-`preferred_input` which method to use for displaying results (if installed). Currently `'fzf-lua'`is supported — when set, fixture usages are displayed in an [`fzf-lua`](https://github.com/ibhagwan/fzf-lua) picker instead of the quickfix list. When `nil` (the default), results go to the quickfix list.
If you trigger to jump to the declaration of the parameters in this case `pytrize` will find all files in the cache that matches this test-case id and if there is more than one ask you which one to jump to.
141
-
Currently four input methods are supported:
142
-
143
-
-[`fzf-lua`](https://github.com/ibhagwan/fzf-lua) — used for fixture usages when `preferred_input = 'fzf-lua'`. Results are shown in an fzf picker with preview, and you can open files with Enter, `ctrl-s` (split), `ctrl-v` (vsplit), or `ctrl-t` (tab).
If you trigger to jump to the declaration of the parameters in this case `pytrize` will find all files in the cache that matches this test-case id and if there is more than one ask you which one to jump to (via `vim.ui.select`).
141
+
142
+
### fzf-lua
143
+
144
+
When `preferred_input = 'fzf-lua'` is set and [`fzf-lua`](https://github.com/ibhagwan/fzf-lua) is installed, fixture usages (`PytrizeFixtureUsages`) are displayed in an fzf picker with a built-in previewer. Supported actions:
145
+
146
+
-`Enter` — open file
147
+
-`ctrl-s` — open in horizontal split
148
+
-`ctrl-v` — open in vertical split
149
+
-`ctrl-t` — open in new tab
150
+
151
+
If `fzf-lua` is not installed, results fall back to the quickfix list.
0 commit comments