aaronjanse / 3mux

Terminal multiplexer inspired by i3
MIT License
1.82k stars 46 forks source link

Unprefixed mappings do not play well with Kakoune #74

Open alexherbo2 opened 4 years ago

aaronjanse commented 4 years ago

Thanks for the feedback!

It should be easy to comment-out some bindings in the default config (~/.config/3mux/config.toml). Which keybindings should no longer be enabled by default?

alexherbo2 commented 4 years ago

I see you are a Vim user, where 3mux mappings are very convenient, so it should be a hard choice for you.

Ultimately I think unprefixed commands should be user mappings. Control and Alt are the application playground. Graphical window managers can use Super to avoid collisions, but terminals cannot leverage this key.

There is an approach also where i3 and Sway do not provide any mappings, but create or suggest you a default configuration. The benefits I see for the latter is there is no merge conflict possible, and provides newcomers with a default and commented configuration that they can edit.

aaronjanse commented 4 years ago

There is an approach also where i3 and Sway do not provide any mappings, but create or suggest you a default configuration. The benefits I see for the latter is there is no merge conflict possible, and provides newcomers with a default and commented configuration that they can edit.

Hmm, this is already what 3mux does. Am I missing something?

P.S. Kakoune looks super cool. Thanks for introducing me to it!

alexherbo2 commented 4 years ago

Yep, I’m sorry to not have tested it.

About the configuration, why reminding “tmux” and “screen”? The choice of the keys do not look the best.

For splitting, I like o for “opening” at the bottom and O at the right.

aaronjanse commented 4 years ago

Why enable tmux- & screen-like keybindings by default? It's supposed to make migration easier for current users of those tools. I'm considering disabling those keybindings by default, directing users to uncomment the relevant config lines if so desired :-)

Also, it looks like Kakoune has tmux integration. Would 3mux integration would be useful? If so, what would that look like? I'd like to avoid adding Kakoune-specifc to code to 3mux if possible. Maybe just adding IPC (as mentioned in that other issue) would be enough?

alexherbo2 commented 4 years ago

Yep IPC is enough.