post commands or overwriting default commands #4768
-
I'm using lazygit with worktrees inside zellij with multiple panes. It would be quite useful to change the working directory for other panes whenever I change/create a worktrees. Is it possible to "attach" a command to a default command or change the default command's behaviour? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No, this is another example where #4753 could be helpful. But you could replace lazygit's default commands with custom commands that perform the same action using git command line calls, and then do whatever additional thing you want to do. For something like creating or changing worktrees this should work reasonably well; for other commands that do more complex things, it might not. |
Beta Was this translation helpful? Give feedback.
No, this is another example where #4753 could be helpful.
But you could replace lazygit's default commands with custom commands that perform the same action using git command line calls, and then do whatever additional thing you want to do. For something like creating or changing worktrees this should work reasonably well; for other commands that do more complex things, it might not.