ScratchPad icon indicating copy to clipboard operation
ScratchPad copied to clipboard

[Feature Request]: Scratchpad for each directory option

Open lmburns opened this issue 2 years ago • 2 comments

I think it would be cool to have a feature that can be enabled to have a scratchpad for each directory the user is in. This could also be used with the daily option as well, where each scratchpad in the directory is cleared each day.

Also, another thing that isn't the biggest deal in the world would be an option to autofocus the buffer whenever the ScratchPad command is ran

lmburns avatar Apr 06 '22 16:04 lmburns

A scratchpad for every directory would be excessive for me, but one for each repository would be nice.

There could be multiple :ScratchPad command options for opening a scratchpad in common locations:

  • :ScratchPad git: $(git rev-parse --show-toplevel)/.scratchpad
  • :ScratchPad pwd: $(pwd)/.scratchpad
  • :ScratchPad daily: ~/.daily_scratchpad/YYY-MM-DD
  • :ScratchPad user: ~/.scratchpad

FlippingBinary avatar Dec 01 '23 17:12 FlippingBinary

That could definitely be useful. If I have some spare time I might try it, but feel free to throw together a PR if you're interested.

As to your suggested implementation, I personally would prefer an api where you set g:scratchpad_location with either a path, or git, daily or pwd, or even an arbitrary lua function with some more complex resolution strategy.

FraserLee avatar Dec 03 '23 19:12 FraserLee