orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

feat(refile): improve ux by matching files more fuzzily

Open BreitbandModem opened this issue 1 year ago • 2 comments

Hi, I really like this project!

I'm using the org-roam plugin, and it will prefix every file with the current timestamp to make sure it's unique (e.g. 20241013095846-helloworld.org). Refiling to such files is really inconvenient as I need to circle through all filenames with the TAB key. Searching for it is really cumbersome as I'd have to type in the exact timestamp of this orgfile.

My suggestion is to remove the anchor (^) from the file pattern matching, and allow the search string to be anywhere in the filename. This way I can just type hello or even world to quickly select the refile target.

BreitbandModem avatar Oct 18 '24 15:10 BreitbandModem

Hm, tests with nightly are failing. But I like to see this improved. Update: Failing nightly tests are not your fault, seems to be a problem on master. @kristijanhusak Do you know, what is wrong with the nightly tests?

May I also recommend telescope-orgmode.nvim to you? It also implements refiling to files and headlines and embraces the full fuzziness of Telescope.

seflue avatar Oct 18 '24 16:10 seflue

@seflue tree-sitter was updated on master and it broke some of the functionality. I created an issue to track that https://github.com/nvim-orgmode/orgmode/issues/813. If other versions are passing we are ok.

kristijanhusak avatar Oct 18 '24 19:10 kristijanhusak

Thanks!

kristijanhusak avatar Oct 21 '24 03:10 kristijanhusak