Skip to content

kdnk/sublime_text_highlighter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TextHighlighter

How to install

  • Type Add Repository into command palette
  • Install Package
  • Choose Text Highlighter

Keybinding

vnoremap <leader>j :TextHighlighterToggle<CR>
snoremap <leader>j :TextHighlighterToggle<CR>
nnoremap <leader>j :TextHighlighterToggle<CR>
nnoremap <leader>c :TextHighlighterClearAll<CR>

normal keymap

Put settings like below to your keybinding file.

{ "keys": ["ctrl+super+j"], "command": "text_highlighter_toggle" }
// use specific color as below
{ "keys": ["ctrl+super+j"], "command": "text_highlighter_toggle", "args": { "color": "markup.changed.git_gutter"} }

{ "keys": ["ctrl+super+h"], "command": "text_highlighter_clear_all" }

Available colors by scope

[ markup.changed.git_gutter, support.class, markup.deleted.git_gutter, markup.inserted.git_gutter, constant.numeric, constant.character.escape, variable, string, comment ]

Inspired

Inspired by https://github.com/ryu1kn/vscode-text-marker