mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
Merge pull request #128 from pranavrao145/docs/navigation
docs(navigation): added documentation for nav_next and nav_prev functions
This commit is contained in:
commit
f43d782abc
@ -58,10 +58,14 @@ This will mark the file and add it to the end of the mark list.
|
|||||||
|
|
||||||
#### Navigate to file
|
#### Navigate to file
|
||||||
To navigate to any of the marked files simply call the navigation function with
|
To navigate to any of the marked files simply call the navigation function with
|
||||||
which index.
|
which index. There are also functions you can call to navigate to the next or
|
||||||
|
previous marks in the marks list.
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
:lua require("harpoon.ui").nav_file(3) -- This will navigate to file 3
|
:lua require("harpoon.ui").nav_file(3) -- This will navigate to file 3
|
||||||
|
|
||||||
|
:lua require("harpoon.ui").nav_next() -- This will navigate to the next mark
|
||||||
|
:lua require("harpoon.ui").nav_prev() -- This will navigate to the previous mark
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Manipulating current marks
|
#### Manipulating current marks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user