Bookmark and navigate between your favorite files in neovim.
Plug 'slarwise/interesting-files.nvim'
require "interesting_files".setup({
locations = { "interesting-files", } -- A list of file paths to read from
})
Can be used as a Telescope extension by doing
require('telescope').load_extension('args')
Add a file called interesting-files
to your current working directory. Add
file names to it. Now you can navigate to them using Telescope by doing
:Telescope interesting_files
Pressing enter on a file goes to that file. The usual Telescope mappings for
file pickers such as <C-x>
for opening a file in a horizontal split work as
usual.
To go to the nth file in interesting-files
, do
require"interesting_files".navigate(n)
To map it, you can do
nnoremap <space> <cmd>lua require"interesting_files".navigate(vim.v.count1)<CR>
This lets you go to the nth interesting file by pressing a number and then
space, for example 3<space>
takes you to the third file. If you don't prefix
it with a number, it goes to the first file.