Simple key seeker (e.g. for i18n resource files)
python3 & Pynvim
.dein_lazy.toml
[[plugins]]
repo = 'miyanokomiya/key-seeker.nvim'
on_cmd = ['KeySeekerClip', 'KeySeekerDig']
# optional
hook_add = '''
nnoremap <silent> <Space>s :KeySeekerClip<CR>
'''
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"
}
}
}
NG
{
"a": "a", "b": ":KeySeekerClip -> Clip 'a'"
}