d99kris / nchat

Terminal-based Telegram / WhatsApp client for Linux and macOS
MIT License
619 stars 43 forks source link

Better shortcuts customization #60

Closed Bellavene closed 1 year ago

Bellavene commented 2 years ago

Tried to bind alt instead of ctrl for main tasks without luck.

Bellavene commented 2 years ago

Temporary managed it with custom terminal profile, not the most elegant solution, but it works.

d99kris commented 2 years ago

As you mentioned in #12 there are capabilities for this implemented, but it's perhaps not easily accessible.

I'll leave this issue open for now and see if we can improve the customization usability.

Bellavene commented 2 years ago

Thank you. iTerm has support for automatic profile switching per app. So you can bind any keys through it and manage them through custom profiles. If it helps somebody. But I see a problem if you want to control nchat through ssh or terminal without support for such features.

d99kris commented 1 year ago

In commit 0239998 improved support for custom key bindings was implemented - enabling setting custom keys by their octal values.

Also, in commit 3bba971 a "key dump mode" was added - so if you start the program like this nchat -k it will just dump out the octal key values for any keys pressed. The intention is to make it easier to determine what values to put in ones ~/.nchat/key.conf.

Let me know if you encounter any issues. Will proceed to close this issue now.