:Telescope advanced_git_search {function_name}
or in lua
require('telescope').extensions.advanced_git_search.{function_name}()
Your usual telescope experience. See the individual commands for the grep behaviour.
The prompt is split on @
. Everything following the @
is the pattern for
the author name.
Opens a Telescope window with a list of local branches
<CR>
opens a diff for the current file with the selected branch
Opens a Telescope window with a list of previous commit logs with respect to selected lines
Note: First you have to select the lines in visual mode, then go back to normal mode and execute this command.
<CR>
opens a diff for the current file with the selected commit<C-o>
opens a the selected commit in the browser
Opens a Telescope window with a list of git commits that changed the current file (renames included)
<CR>
Opens a diff of the current file with the selected commit<C-e>
Opens an entire git diff of the selected commit<C-o>
Open the selected commit in the browser
Opens a Telescope window with a list of previous commit logs filtered on the
content
of the commits.
<CR>
opens a diff for the current file with the selected commit<C-o>
opens the selected commit in the browser
Opens a Telescope window with all reflog entries
<CR>
checkout the reflog entry
A telescope picker for all functions above.
With Lazy
{
"aaronhallaert/ts-advanced-git-search.nvim",
config = function()
require("telescope").load_extension("advanced_git_search")
end,
dependencies = {
"nvim-telescope/telescope.nvim",
-- to show diff splits and open commits in browser
"tpope/vim-fugitive",
},
}
With Packer
use({
"aaronhallaert/ts-advanced-git-search.nvim",
config = function()
require("telescope").load_extension("advanced_git_search")
end,
requires = {
"nvim-telescope/telescope.nvim",
-- to show diff splits and open commits in browser
"tpope/vim-fugitive",
},
})
- git
- vim-fugitive
- telescope.nvim