nvim-orgmode / telescope-orgmode.nvim

Neovim plugin. Telescope.nvim extension that adds orgmode.nvim integration.
MIT License
10 stars 5 forks source link

Make initial picker mode consistent and configuragle #21

Closed bi0ha2ard closed 1 month ago

bi0ha2ard commented 2 months ago

current, next states were set based on the iteration order of the titles table, which seemed to have put "orgfiles" in current, but the picker was always set to finders.headlines. the first toggle mode bind would therefore not work consistently.

This passes the default initial state ("headlines") explicitly. Additionally it exposes it as an option for telescope:

:Telescope orgmode search_headings mode=orgfiles

will open the picker directly in the orgfiles mode.

dtvillafana commented 1 month ago

I created a separate PR for just the fix that we need: PR

seflue commented 1 month ago

@bi0ha2ard Thanks for this fix, looks good to me. The bug actually already annoyed me, but I didn't found the time to look into it.

seflue commented 1 month ago

Btw, sorry for my late response. I will hopefully react faster in the future, now that I should get notification emails from GitHub. :sweat_smile: