Skip to content

Commit 10ea8e6

Browse files
committed
Update README for diff_commit_line
Signed-off-by: Aaron Hallaert <[email protected]>
1 parent cd1039b commit 10ea8e6

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,18 @@ selected lines
7979

8080
_Grep behaviour_: filter on commit message.
8181

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
8392
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:
8594

8695
```lua
8796
vim.api.nvim_create_user_command(
@@ -98,6 +107,8 @@ vim.api.nvim_set_keymap(
98107
)
99108
```
100109

110+
No extra setup is needed when you use `:AdvancedGitSearch`.
111+
101112
#### _Keymaps_
102113

103114
- `<CR>` opens a diff for the current file with the corresponding file on the selected commit

0 commit comments

Comments
 (0)