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
The default : snaps back to yazi UI as soon as the shell cmd exits. This is too fast. For example if I run
du -sh %h
the user cannot see the output. Here is a hack
It override default : (which is just shell --block --interactive).
Pre-fills "; read _" so output stays visible until Enter is pressed. --cursor=0 places cursor before the suffix so user types their command first.
[[mgr.prepend_keymap]]
on = ":"run = 'shell "; read _" --block --interactive --cursor=0'desc = "Run shell command (pause after output)"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The default
:snaps back to yazi UI as soon as the shell cmd exits. This is too fast. For example if I runthe user cannot see the output. Here is a hack
It override default
:(which is justshell --block --interactive).Pre-fills
"; read _"so output stays visible until Enter is pressed.--cursor=0places cursor before the suffix so user types their command first.Beta Was this translation helpful? Give feedback.
All reactions