navi icon indicating copy to clipboard operation
navi copied to clipboard

Long commands not extending to a new line

Open SoftBlankie opened this issue 1 year ago • 3 comments

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:

  1. Go to your cheatsheet
  2. Create a cheat and have it be a long command
  3. Run navi and select your created command
  4. 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

SoftBlankie avatar Mar 19 '25 18:03 SoftBlankie

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! :)

welcome[bot] avatar Mar 19 '25 18:03 welcome[bot]

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:

alexis-opolka avatar Mar 19 '25 21:03 alexis-opolka

@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.

kit494way avatar Mar 20 '25 01:03 kit494way