[mini.clue] Show bookmark and g clues from mini.files(revisited) #2531
abeldekat
started this conversation in
Show and tell
Replies: 1 comment
Sorry, it's a bit too much to look deeply into. If it works, it works 👍 What I can say is:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
mini_files_in_mini_clue.mp4
My previous post about the topic became too full with ideas and examples.
The new code uses
vim.b.miniclue_configand buffer-local mappings. No monkey-patching, nor changes in global state that need to be managed. See this feedback.By design,
MiniClueprovides no hook to restrict the number of clues when inside a special buffer, like fromMiniFiles. It is possible though to change the descriptions, in order to emphasize the clues specific toMiniFiles.The extra actions needed when inside explorer:
', make buffer-local mappings from all MiniFiles bookmarks, and overrideMiniClue.gen_clues.marks()g, make buffer-local mappings from all "global only"gmappings, and overrideMiniClue.gen_clues.g()There are two generic parts:
attachandoverride, in order to easily add similar mappings. Thegclue is opt-in.The code in my config:
@echasnovski I hope that you are willing to have another look at the code.
All reactions