Skip to content

Commit

Permalink
fix: ensure Telescope preserves original file order
Browse files Browse the repository at this point in the history
  • Loading branch information
bigzhu committed Aug 30, 2024
1 parent 14e0427 commit 729b5fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/obsidian/pickers/_telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ TelescopePicker.find_files = function(self, opts)
prompt_title = prompt_title,
cwd = opts.dir and tostring(opts.dir) or tostring(self.client.dir),
find_command = self:_build_find_cmd(),
sorter = require("telescope.sorters").fuzzy_with_index_bias(),
attach_mappings = function(_, map)
attach_picker_mappings(map, {
entry_key = "path",
Expand Down

0 comments on commit 729b5fc

Please sign in to comment.