mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
readme fixes
This commit is contained in:
parent
e6b71d6586
commit
f76f54fd57
@ -71,8 +71,7 @@ lua require("harpoon.term").gotoTerminal(1) -- navigates to term 1
|
||||
### Commands to Terminals
|
||||
commands can be sent to any terminal
|
||||
```lua
|
||||
" This will send to terminal 1 either the predefined command 1 in the terminal
|
||||
" config or "ls -la"
|
||||
lua require("harpoon.term").sendCommand(1, "ls -La") -- sends ls -La to tmux window 1
|
||||
```
|
||||
further more commands can be stored for later quick
|
||||
```lua
|
||||
@ -86,7 +85,7 @@ by simply switching `'term' with 'tmux'` like so
|
||||
|
||||
```lua
|
||||
lua require("harpoon.tmux").gotoTerminal(1) -- goes to the first tmux window
|
||||
lua require("harpoon.tmux").sendCommand(1, "ls -la") -- sends ls -La to tmux window 1
|
||||
lua require("harpoon.tmux").sendCommand(1, "ls -La") -- sends ls -La to tmux window 1
|
||||
lua require("harpoon.tmux").sendCommand(1, 1) -- sends command 1 to tmux window 1
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user