Replies: 1 comment
-
If you're looking to execute some custom commands when the Yazi cwd changes, you can subscribe to the yazi/yazi-plugin/preset/plugins/zoxide.lua Lines 38 to 47 in cb92bb7 Doc of Doc of DDS: https://yazi-rs.github.io/docs/dds |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What system are you running Yazi on?
macOS
What terminal are you running Yazi in?
WezTerm
yazi --debug
outputDescribe the question
Hi Yazi community. I have a general question about trying to write a plugin for Yazi. For my specific use case, I have 2 separate ssh config files that I need to switch between (2 separate Github profiles, one laptop) that depends on what directory I'm in. Currently, I handle this using terminal hooks in Nushell. Is there a way to run shell commands in the background based on certain keystrokes? Or if there is any "directory change event" that I can latch on to and run my custom hooks? See below for an attempt I made at this.
Anything else?
Validations
Beta Was this translation helpful? Give feedback.
All reactions