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)
|
map("i", "<c-space>", actions.to_fuzzy_refine)
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
|
push_cursor_on_edit = true,
|
||||||
})
|
})
|
||||||
:find()
|
:find()
|
||||||
end
|
end
|
||||||
@@ -257,6 +258,7 @@ files.grep_string = function(opts)
|
|||||||
finder = finders.new_oneshot_job(args, opts),
|
finder = finders.new_oneshot_job(args, opts),
|
||||||
previewer = conf.grep_previewer(opts),
|
previewer = conf.grep_previewer(opts),
|
||||||
sorter = conf.generic_sorter(opts),
|
sorter = conf.generic_sorter(opts),
|
||||||
|
push_cursor_on_edit = true,
|
||||||
})
|
})
|
||||||
:find()
|
:find()
|
||||||
end
|
end
|
||||||
@@ -460,6 +462,7 @@ files.treesitter = function(opts)
|
|||||||
tag = "kind",
|
tag = "kind",
|
||||||
sorter = conf.generic_sorter(opts),
|
sorter = conf.generic_sorter(opts),
|
||||||
},
|
},
|
||||||
|
push_cursor_on_edit = true,
|
||||||
})
|
})
|
||||||
:find()
|
:find()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user