sindrets/winshift.nvim

Way to change direction keys in winshift mode

s1n7ax opened this issue · 4 comments

I'm using Colemak layout so I don't really use HJKL keys. Is it possible to change the move keys in winshift mode?

No it's not currently possible, but I agree that it should be configurable. I'll see if I can get around to it soon.

@s1n7ax Implemented in the latest commit. Check the updated README to see how it's configured.

['n'] = 'down',
['e'] = 'up',

n & e is not working for up and down

require('winshift').setup({
    keymaps = {
        disable_defaults = true, -- Disable the default keymaps
        win_move_mode = {
            ['h'] = 'left',
            ['n'] = 'down',
            ['e'] = 'up',
            ['i'] = 'right',
            ['H'] = 'far_left',
            ['N'] = 'far_down',
            ['E'] = 'far_up',
            ['I'] = 'far_right',
            ['<left>'] = 'left',
            ['<down>'] = 'down',
            ['<up>'] = 'up',
            ['<right>'] = 'right',
            ['<S-left>'] = 'far_left',
            ['<S-down>'] = 'far_down',
            ['<S-up>'] = 'far_up',
            ['<S-right>'] = 'far_right',
        },
    },
})

@s1n7ax Fixed in the latest commit.