Skip to content

miyanokomiya/key-seeker.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

key-seeker.nvim

Simple key seeker (e.g. for i18n resource files)

Requirements

python3 & Pynvim

Installation

.dein_lazy.toml

[[plugins]]
repo = 'miyanokomiya/key-seeker.nvim'
on_cmd    = ['KeySeekerClip', 'KeySeekerDig']
# optional
hook_add = '''
nnoremap <silent> <Space>s :KeySeekerClip<CR>
'''

Usage

Execute the command on a line to clip the joined key.

:KeySeekerClip

json

{
  "a": {
    "b": {
      "c": ":KeySeekerClip -> Clip 'a.b.c'"
    }
  }
}

yaml

a:
  b:
    c: ":KeySeekerClip -> Clip 'a.b.c'"

Execute the command to go to the line.

:KeySeekerDig <key>

json

{
  "a": {
    "b": {
      "c": ":KeySeekerDig a.b.c -> go to this line"
    }
  }
}

Limitation

Multi Keys on a line

NG

{
  "a": "a", "b": ":KeySeekerClip -> Clip 'a'"
}

About

Simple key seeker (e.g. for i18n resource files)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages