nvim-neorg / neorg-telescope

Telescope.nvim integration for Neorg
GNU General Public License v3.0
187 stars 24 forks source link

Add find_norg_files picker #28

Closed znschaffer closed 1 year ago

znschaffer commented 1 year ago

Often times when I use find_linkables I'm mostly looking for a way to quickly jump to a file in my norg workspace when I'm somewhere else. The clutter of seeing every heading in all my files and journals adds visual noise.

Having a simple file picker that just iterates over all .norg files in your current workspace simplifies this task.

This just uses the builtin find_files with search_dirs set to the current neorg workspace

max397574 commented 1 year ago

closes https://github.com/nvim-neorg/neorg-telescope/issues/27

max397574 commented 1 year ago

I just realized this will search all the files in the workspace and not just norg files I can't tell you rn how to do this I'd have to look it up

max397574 commented 1 year ago

I guess it could be done like this https://github.com/nvim-neorg/neorg-telescope/blob/40ac4d0fa1eb8ebc9b372b46ce83d20191688940/lua/telescope/_extensions/neorg/insert_file_link.lua#L23