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 to Terminals
commands can be sent to any terminal commands can be sent to any terminal
```lua ```lua
" This will send to terminal 1 either the predefined command 1 in the terminal lua require("harpoon.term").sendCommand(1, "ls -La") -- sends ls -La to tmux window 1
" config or "ls -la"
``` ```
further more commands can be stored for later quick further more commands can be stored for later quick
```lua ```lua
@ -86,7 +85,7 @@ by simply switching `'term' with 'tmux'` like so
```lua ```lua
lua require("harpoon.tmux").gotoTerminal(1) -- goes to the first tmux window 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 lua require("harpoon.tmux").sendCommand(1, 1) -- sends command 1 to tmux window 1
``` ```
@ -131,16 +130,16 @@ global_settings = {
### Preconfigured Terminal Commands ### Preconfigured Terminal Commands
to preconfigure terminal commands for later use to preconfigure terminal commands for later use
```lua ```lua
projects = { projects = {
-- Yes $HOME works -- Yes $HOME works
["$HOME/personal/vim-with-me/server"] = { ["$HOME/personal/vim-with-me/server"] = {
term = { term = {
cmds = { cmds = {
"./env && npx ts-node src/index.ts" "./env && npx ts-node src/index.ts"
}
} }
} }
} }
}
``` ```
## ⇁ Logging ## ⇁ Logging