readme fixes

This commit is contained in:
Raafat Turki 2021-11-26 16:30:45 +03:00
parent e6b71d6586
commit f76f54fd57

View File

@ -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
```