Long commands not extending to a new line
Describe the bug When running navi, I have a long custom command that I have created and on run, I am unable to see the full command in the preview
To Reproduce Steps to reproduce the behavior:
- Go to your cheatsheet
- Create a cheat and have it be a long command
- Run navi and select your created command
- See that the command is truncated and we have no way to see the full command
Expected behavior The navi navigation window for previewing the command and defining the variables displays the entire command.
Versions:
- OS: macOS
- Shell Version 3.2.57
Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :)
Hi @SoftBlankie , I do think that it could be really interesting to have this feature and I don't think that navi already supports it, unfortunately I can't give you an ETA as of now because I'm concentrating my efforts on the already existing issues that are yet to be solved. If it's blocking you, I can look to implement a fix in the following weeks, though, otherwise it will need to wait.
You can always make a PR and one of the active contributors or the maintainer will gladly review it. :smile:
@SoftBlankie
Add fzf option --preview-window wrap to finder.overrides in config.yaml.
finder:
command: fzf
overrides: --preview-window wrap
Select a snippet and type Ctrl + Down to scroll preview.
If you want to increase the height of preview window (e.g. to 5 lines), try --preview-window 5,wrap.
The UI and behavior of selecting a snippet can be customized with fzf options.