Skip to content
Discussion options

You must be logged in to vote

@jasonxue1
In mini.pick, there are already default mappings for moving the selection up and down. You can use:

  • <C-n> to move the selection down
  • <C-p> to move the selection up

Similarly, to scroll the preview window, you can use:

  • <C-b> to scroll up
  • <C-f> to scroll down

If you want to remap <C-j> and <C-k> for selection movement, you can configure mini.pick like this:

require("mini.pick").setup({
  mappings = {
    -- Move selection up and down
    move_down  = '<C-j>',
    move_up    = '<C-k>',

    -- Scroll in the preview window
    scroll_down  = '<C-f>',
    scroll_up    = '<C-b>',
    scroll_left  = '<C-h>',
    scroll_right = '<C-l>',
  },
})

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jasonxue1
Comment options

@echasnovski
Comment options

Answer selected by jasonxue1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.pick
3 participants