File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,18 @@ selected lines
79
79
80
80
_ Grep behaviour_ : filter on commit message.
81
81
82
- Note: First you have to select the lines in visual mode, then go back to normal
82
+ #### How to use
83
+
84
+ _ The following only applies when you use one of the commands below._
85
+
86
+ ``` vim
87
+ :Telescope advanced_git_search diff_commit_line
88
+ :lua require('telescope').extensions.advanced_git_search.diff_commit_line()
89
+ ```
90
+
91
+ First you have to select the lines in visual mode, then go back to normal
83
92
mode and execute this command.
84
- To make this a bit easier, you can wrap it in a user command and define a keybind:
93
+ To make a bit easier, you can wrap it in a user command and define a keybind:
85
94
86
95
``` lua
87
96
vim .api .nvim_create_user_command (
@@ -98,6 +107,8 @@ vim.api.nvim_set_keymap(
98
107
)
99
108
```
100
109
110
+ No extra setup is needed when you use ` :AdvancedGitSearch ` .
111
+
101
112
#### _ Keymaps_
102
113
103
114
- ` <CR> ` opens a diff for the current file with the corresponding file on the selected commit
You can’t perform that action at this time.
0 commit comments