Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmux like key bindings option #225

Closed
jcaplan opened this issue Mar 13, 2021 · 8 comments · Fixed by #362
Closed

tmux like key bindings option #225

jcaplan opened this issue Mar 13, 2021 · 8 comments · Fixed by #362
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed suspected bug

Comments

@jcaplan
Copy link
Contributor

jcaplan commented Mar 13, 2021

Related to #25 and #220.

I think the getting started mode and status toolbar are great. but I can't work without tmux and I am very attached to my key bindings. I don't think I could ever make the switch without being able to configure zellij with my key bindings.

Why not just continue to use tmux then? Maybe one day there's some cool plugins to make a user curious about zellij, but someone who's a tmux power user would never bail if they can't take their key bindings with them.

  • short circuit single key bindings to actions. ctrl+ -> . Even if you let people customize some of the mappings, what happens if I want to have all my input modes flattened into one big category?
  • I navigate in tmux with alt+<h/j/k/l>. That's definitely one I can't live without.
@a-kenji
Copy link
Contributor

a-kenji commented Mar 13, 2021

Hey! I have similar issues as you.

I updated the example config file for now.
Does that do what you want?

Edit:

Maybe it makes sense to add a prefix mode, that has no default mappings?
That would be analogous to tmux prefix key, and you could map everything you want to the
normal mode and also to the prefix mode.

Even if you let people customize some of the mappings, what happens if I want to have all my input modes flattened into one big category?

You can do that with the config file:

  • action: [ SwitchToMode: Pane, (Do your actions) , SwitchToMode:Normal, ]

@a-kenji a-kenji added the good first issue Good for newcomers label Apr 20, 2021
@a-kenji
Copy link
Contributor

a-kenji commented Apr 20, 2021

We want to provide sane defaults for people,
so having a configuration file that emulates the tmux config makes sense.
Inspiration in /example/config.yaml and example/default.yaml,
as well as the keybindings documentation.
/example/tmux.yaml could be a suitable location.

@SaintFenix
Copy link
Contributor

I'd like to be assigned this, I think I can get close, and get a list of functions that are Tmux specific that are not implemented in Zellij, but may wish to be in the future.

@a-kenji
Copy link
Contributor

a-kenji commented Apr 24, 2021

Awesome! This would be very helpful.

@a-kenji
Copy link
Contributor

a-kenji commented Jun 3, 2021

@SaintFenix
If you are interested, it is possible to start now in an arbitrary mode.
So the example configuration files could be updated to reflect that.

@danielb2
Copy link

danielb2 commented Dec 3, 2023

hi I can't find a config file example with tmux keybindings. has this been removed?

@imsnif
Copy link
Member

imsnif commented Dec 3, 2023

Tmux keybindings work out of the box, just try 'em.

@danielb2
Copy link

danielb2 commented Dec 3, 2023

Tmux keybindings work out of the box, just try 'em.

thanks. I worded it poorly. I wanted as a complete emulation of tmux as possible since keybindings were also clashing with keybindings in other terminal apps. I've added lots of keybindings and cleared the one that comes by default. Would be cool to have an example config where it's already all done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed suspected bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants