Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Add Post Open File Hooks To Neovim Telescope

I switched to using Neovim for my Grimoire with the help of the Telescope plugin. I wrote a custom Telescope extension that calls out to Meilisearch and provides some extra filtering to help prevent doxing myself on stream.

One feature I'm still working on is the history file that shows a revers chronological list of the files I open from the Grimoire.

I think I've got an approach which involves hacking into the Telescope plugin source code directly. There's a file in the plugin at :

telescope.nvim/lua/telescope/actions/set.lua

To variables that get defined with functions in there are :

lua
action_set.select 
and
action_set.edit

I put a marker in each of them with the [TODO: Code shorthand span ] plug in. They both fire every time I open a file from Telescope. That's a good start, but I need them to only fire when I open a file in the Grimoire to avoid the history file filling up with everything I open.

That's the next thing to look into