How the demo works like "fix commands"?
kondongx opened this issue · comments
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! :)
Assuming you have a cheatsheet that contains the following:
% text
# remove first line
tail -n +2
- install navi 2.15.0+
- install the shell widget
- type
ls | remove first line
without hitting enter - press Ctrl+G
For the more advanced use cases, the instructions in the README file may help.
Sidenote: the fish widget currently doesn't have as many features as the ones for bash and zsh.
I got it! Thanks.
Sidenote: the fish widget currently doesn't have as many features as the ones for bash and zsh.
@denisidoro Hi there, so could you clarify whether the example you mention in the comment above, where the remove first line
text gets replaced with Ctrl+G
currently does or does not work in fish, and navi 2.18.0
?
Thank you!
fish still doesn't support this smart "widget"
fish could totally support it, though. It's just that I'm not familiar with fish scripting.
If anyone could translate the bash/zsh widgets to fish, that would be awesome!
@denisidoro Thanks. I created an issue for clarity so people know, and perhaps someone can fix it… :-)
Sidenote: the fish widget currently doesn't have as many features as the ones for bash and zsh.
@denisidoro Hi there, so could you clarify whether the example you mention in the comment above, where the
remove first line
text gets replaced withCtrl+G
currently does or does not work in fish, andnavi 2.18.0
?Thank you!
Did you get this working? I am on 2.18.0 and does not work. Hitting Ctrl+G
looks like it attempts to run something but moves to a new prompt. In this case, I have tail -n +2
defined in a cheatsheet, and navi --query remove
lists the cheat.
Also, none of the built-ins cheat work too. For instance, there is a cheat Checkout to branch
. Even cheats like those do not work, just jump to a new prompt.
Did you get this working?
No, the "smart replace" functionality does not work in fish shell yet, see the open issue: #648 (comment)
I don't wanna open any other issues so I'm posting here:
Is there a way to make navi behave by default the way it behaves in the ctrl+g? As in running navi, picking a command, and that then appearing right after my prompt, ready to be executed when I press enter. I start suspecting that this is impossible - can someone redirect me to any resource explaining why it isn't possible to do so?
the best I have done is to alias navi with navi --print | xclip and then hitting ctrl+(shift+)+v and enter