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

Compile-time option for command key behaving as toggler #82

Open
TCH68k opened this issue Dec 19, 2024 · 0 comments
Open

Compile-time option for command key behaving as toggler #82

TCH68k opened this issue Dec 19, 2024 · 0 comments

Comments

@TCH68k
Copy link

TCH68k commented Dec 19, 2024

I like this small terminal multiplexer, for how small it is and also that it does not need any kind of terrible build systems (cmake, meson, etc.) and dependencies to build.

However, i found the way of giving commands to it a bit inconvenient. For instance, if i have four columns and i'd like to go to the last from the first, that will require to jump forth and back between G and the right cursor three times (and also the pressing and releaseing of Ctrl the same times). To set up a layout with multiple columns and rows will need even more jumping. Even if one will not make a mistake during the jumping around, it still doubles the required time to do it.

I understand that this multiplexer excels on simplicity - both in code and usage - and tries to avoid feature-creep, but since it also uses compile-time options for configuring the way it will work, i think a single compile-time option to make the command key behaving as a toggler, rather than a single-shot enabler could be useful and still will not put an unneeded feature into the binary.

Here is the patch: http://oscomp.hu/depot/mtm.c.patch
It is just nine more lines and the resulting binary does not differ in size, if the macro TOGGLING_COMMAND_KEY is defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant