Releases: LintaoAmons/scratch.nvim
Releases · LintaoAmons/scratch.nvim
Add ScratchPad command
Also a new intro video
Scratch.mp4
Expose scratch api and make it triggerable from terminal
Jump to scratch file from terminal
nvim -c 'lua require("scratch").scratchByType("md")'
NOTE: you can't lazyload the plugin if you want make the
scratch
plugin accessible at the init of nvim
v0.9.0 Local keybinding for specific file type (apply if name contains substr)
"localKeys": [ // local keymapping for specific type of file
{
"filenameContains": ["gp"],
"LocalKeys": [
{
"cmd": "<CMD>GpChatRespond<CR>",
"key": "<C-k>k",
"modes": ["n", "i", "v"]
}
]
}
]
New .localKeys
section to create local only keymapping
My usecase is when I create file named gp.md
, gp4.md
, eng-trans.md
, eng-prov.md
,
I will bind GpChatRespond
to the current buffer
group in Subdir and an example of integrate with gp.nvim
v0.7.1
- Allow user to choose where they want to put there config file.
- Add sub directory when create scratch file.
- refactor the code structure.
- More intuitive user experience.
- etc.
Add ScrachOpenFzf command
Fuzzy find content from scratch files and open