fix(builtin): grep/treesitter push cursor on edit (#3175)
* fix(builtin.live_grep, builtin.treesitter): not adding jumps to jumplist Whenever a picker, that can jump to a different location in the same buffer does so it should have `push_cursor_on_edit` otherwise the jump won't be recorded. Maybe this affects other pickers too, but I only noticed it on grep and treesitter since I use those two a lot. * fix(builtin.grep_string): not adding jumps to jumplist
This commit is contained in:
@@ -180,6 +180,7 @@ files.live_grep = function(opts)
|
||||
map("i", "<c-space>", actions.to_fuzzy_refine)
|
||||
return true
|
||||
end,
|
||||
push_cursor_on_edit = true,
|
||||
})
|
||||
:find()
|
||||
end
|
||||
@@ -257,6 +258,7 @@ files.grep_string = function(opts)
|
||||
finder = finders.new_oneshot_job(args, opts),
|
||||
previewer = conf.grep_previewer(opts),
|
||||
sorter = conf.generic_sorter(opts),
|
||||
push_cursor_on_edit = true,
|
||||
})
|
||||
:find()
|
||||
end
|
||||
@@ -460,6 +462,7 @@ files.treesitter = function(opts)
|
||||
tag = "kind",
|
||||
sorter = conf.generic_sorter(opts),
|
||||
},
|
||||
push_cursor_on_edit = true,
|
||||
})
|
||||
:find()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user