Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WhichKey Bindings #50

Closed
jounathaen opened this issue Jan 17, 2020 · 2 comments
Closed

WhichKey Bindings #50

jounathaen opened this issue Jan 17, 2020 · 2 comments

Comments

@jounathaen
Copy link

This is not an Issue.
I created a map with keybindings for https://github.com/liuchengxu/vim-which-key.

This is a matter of taste and not fully tested, but if somebody uses both plugins, it might be a starting point. So I'll just paste this here:

let g:which_key_map.W = {
      \ 'name' : '+Wiki',
      \ 'i' : ['<plug>(wiki-index)', 'Index'],
      \ 'o' : ['<plug>(wiki-open)', 'Open'],
      \ 'j' : ['<plug>(wiki-journal)', 'Journal'],
      \ 'd' : ['<plug>(wiki-page-delete)', 'PageDelete'],
      \ 'r' : ['<plug>(wiki-page-rename)', 'PageRename'],
      \ 'E' : ['<plug>(wiki-export)', 'Export'],
      \ '/' : ['<plug>(wiki-fzf-pages)', 'FzfPages'],
      \ 'g' : {·
      \   'name' : '+ Graph',
      \   'b' : ['<plug>(wiki-graph-find-backlinks)', 'Find Backlinks'],
      \   't' : ['<plug>(wiki-graph-in)', 'Graph to current Page'],
      \   'f' : ['<plug>(wiki-graph-out)', 'Graph from current Paget'],
      \  },
      \ 'J' : {·
      \   'name' : '+ Journal',
      \   'i' : ['<plug>(wiki-journal-index)', 'Create Index'],
      \   'I' : ['<plug>(wiki-journal-index-md)', 'Create Index md-style'],
      \   'n' : ['<plug>(wiki-journal-next)', 'Next'],
      \   'p' : ['<plug>(wiki-journal-prev)', 'Prev'],
      \   'cn' : ['<plug>(wiki-journal-copy-tonext)', 'CopyToNext'],
      \   'w' : ['<plug>(wiki-journal-toweek)', 'To Week Summary'],
      \   'm' : ['<plug>(wiki-journal-tomonth)', 'To Month Summary'],
      \  },
      \ 'l' : {·
      \   'name' : '+ List',
      \   't' : ['<plug>(wiki-list-toggle)', 'Toggle item'],
      \   'u' : ['<plug>(wiki-list-uniq)', 'Remove duplicates'],
      \   'U' : ['<plug>(wiki-list-uniq-local)', 'Rem. duplicates local'],
      \  },
      \ 'L' : {·
      \   'name' : '+ Link',
      \   'n' : ['<plug>(wiki-link-next)', 'Next'],
      \   'p' : ['<plug>(wiki-link-prev)', 'Prev'],
      \   'o' : ['<plug>(wiki-link-open)', 'Open'],
      \   's' : ['<plug>(wiki-link-open-split)', 'Open in Split'],
      \   'b' : ['<plug>(wiki-link-return)', 'Back to prev. page'],
      \  },
      \ 't' : {·
      \   'name' : '+ Tag/ToC',
      \   'l' : ['<plug>(wiki-tag-list)', 'List'],
      \   'r' : ['<plug>(wiki-tag-reload)', 'Reload'],
      \   's' : ['<plug>(wiki-tag-search)', 'Search' ],
      \   't' : ['<plug>(wiki-page-toc)', 'Page ToC'],
      \   'T' : ['<plug>(wiki-page-toc-local)', 'Page ToC Local'],
      \  },
      \ }
      " Unused:
      " \ 'r' : ['<plug>(wiki-reload)', 'Reload'],
      " \ '' : ['<plug>(wiki-code-run)', 'CodeRun'],
      " \ '' : ['<plug>(wiki-fzf-toc)', 'FzfToc'],
@jounathaen
Copy link
Author

Oh, and this does not ressemble the default mappings!

@lervag
Copy link
Owner

lervag commented Jan 17, 2020

Thanks for posting!

@lervag lervag closed this as completed Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants