Skip to content

[mini.clue] vim-submode translation #466

Answered by echasnovski
junkblocker asked this question in Q&A
Discussion options

You must be logged in to vote

Submodes in 'mini.clue' work better if there is a common prefix that initiates it. For example, something like <Leader>t for tabpages. This is mostly to have clues shown only for that particular submode.

Also 'mini.clue' doesn't create any mappings for user (by design), so you'd need to create them manually.

However, something like you describe seems possible. Try something like this:

require('mini.clue').setup({
  clues = {
    { mode = 'n', keys = 'gt',         desc = 'Next tab', postkeys = 'g' },
    { mode = 'n', keys = 'g<Right>',   desc = 'Next tab', postkeys = 'g' },
    { mode = 'n', keys = 'g<A-right>', desc = 'Next tab', postkeys = 'g' },
    { mode = 'n', keys = 'gT',         desc

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by junkblocker
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants