darkhz / bluetuith

A TUI bluetooth manager for Linux.
MIT License
955 stars 23 forks source link

Change navigation keys? #31

Closed hacktail closed 1 year ago

hacktail commented 1 year ago

Hi, is there some way to change the navigation keybindings? I've got a Nordic keyboard setup which means that the standard h j k l has to be replaced into j k l ö, as it will otherwise defeat the purpose of not using other forms of navigation.

darkhz commented 1 year ago

There is currently no way to change the navigation keybindings, but it can be implemented.

hacktail commented 1 year ago

There is currently no way to change the navigation keybindings, but it can be implemented.

I would be extremely grateful if you did, can be a deal breaker sometimes.

darkhz commented 1 year ago

Okay, this will be implemented in the next release.

darkhz commented 1 year ago

This has now been implemented in this release.

To change the navigation keys, it can be done by setting configuration parameters:

keybindings {
    # Similar to pressing the 'Up' key
    NavigateUp: 'k'

    # Similar to pressing the 'Down' key
    NavigateDown: 'l'

    # Similar to pressing the 'Right' key
    NavigateRight: 'j'

    # Similar to pressing the 'Left' key
    NavigateLeft: 'ö'
}
hacktail commented 1 year ago

This has now been implemented in this release.

To change the navigation keys, it can be done by setting configuration parameters:

keybindings {
    # Similar to pressing the 'Up' key
    NavigateUp: 'k'

    # Similar to pressing the 'Down' key
    NavigateDown: 'l'

    # Similar to pressing the 'Right' key
    NavigateRight: 'j'

    # Similar to pressing the 'Left' key
    NavigateLeft: 'ö'
}

Thank you so much! Maybe I should've made my own PR, maybe I'll do that next time :)