mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00
Move tmux tip to tmux section.
This commit is contained in:
parent
202b6157d8
commit
063fb54773
17
README.md
17
README.md
@ -73,15 +73,6 @@ a new terminal is created.
|
|||||||
lua require("harpoon.term").gotoTerminal(1) -- navigates to term 1
|
lua require("harpoon.term").gotoTerminal(1) -- navigates to term 1
|
||||||
```
|
```
|
||||||
|
|
||||||
Once you switch to a terminal you can always switch back to neovim, this is a
|
|
||||||
little bash script that will switch to the window which is running neovim.
|
|
||||||
|
|
||||||
In your `tmux.conf` (or anywhere you have keybinds), add this
|
|
||||||
```bash
|
|
||||||
bind-key -r G run-shell "path-to-harpoon/harpoon/scripts/tmux/switch-back-to-nvim"
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
### Commands to Terminals
|
### Commands to Terminals
|
||||||
commands can be sent to any terminal
|
commands can be sent to any terminal
|
||||||
```lua
|
```lua
|
||||||
@ -109,6 +100,14 @@ lua require("harpoon.tmux").gotoTerminal("{down-of}") -- focus the pane direct
|
|||||||
lua require("harpoon.tmux").sendCommand("%3", "ls") -- send a command to the pane with id '%3'
|
lua require("harpoon.tmux").sendCommand("%3", "ls") -- send a command to the pane with id '%3'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Once you switch to a tmux window you can always switch back to neovim, this is a
|
||||||
|
little bash script that will switch to the window which is running neovim.
|
||||||
|
|
||||||
|
In your `tmux.conf` (or anywhere you have keybinds), add this
|
||||||
|
```bash
|
||||||
|
bind-key -r G run-shell "path-to-harpoon/harpoon/scripts/tmux/switch-back-to-nvim"
|
||||||
|
```
|
||||||
|
|
||||||
### Telescope Support
|
### Telescope Support
|
||||||
1st register harpoon as a telescope extension
|
1st register harpoon as a telescope extension
|
||||||
```lua
|
```lua
|
||||||
|
Loading…
x
Reference in New Issue
Block a user