whame / tmux-modal

Execute complex tmux commands in just a few keystrokes with a modal mode that is designed to be efficient, easy to remember and comfortable
MIT License
172 stars 4 forks source link

"which-key"-like functionality? #5

Open macintacos opened 2 years ago

macintacos commented 2 years ago

This plugin is fantastic, and it's so close to which-key I can almost taste it 😅 I'm just now learning tmux and the fact that there's nothing like which-key for all of these key combinations is driving me mad, so this plugin is a breath of fresh air 🙂

Any plans on showing a pop-up that shows the user suggestions of what key to hit next? There are a number of plugins in other ecosystems that do essentially what you're trying to do here that you can take inspiration from, and adding that kind of menu is what makes them all similar. You'd probably also get a lot more people looking at this plugin if you named it "tmux-which-key", but obviously that's not my decision to make 🙂

Some examples of other plugins with the same idea:

whame commented 2 years ago

This plugin is fantastic, and it's so close to which-key I can almost taste it 😅 I'm just now learning tmux and the fact that there's nothing like which-key for all of these key combinations is driving me mad, so this plugin is a breath of fresh air 🙂

Thank you! Glad you like it!

Any plans on showing a pop-up that shows the user suggestions of what key to hit next? There are a number of plugins in other ecosystems that do essentially what you're trying to do here that you can take inspiration from, and adding that kind of menu is what makes them all similar.

Hm, this is kind of similar to #2. Recent tmux version actually have the the display-popup command. However, you have to manually close the popup. I believe it is similar with display-menu.

Maybe this is the way to go here. We could display key information with a popup/menu and users would have to manually close it (or "abuse" menu commands) and then continue with their keystrokes. I'll see what I can do. Note however that I have a lot of stuff going on right now so this might take a while :)

You'd probably also get a lot more people looking at this plugin if you named it "tmux-which-key", but obviously that's not my decision to make 🙂

Maybe, but now it has already been pushed. We don't want to break user's configurations :)