mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-22 05:23:23 +00:00
Compare commits
1 Commits
7b1f1c40c0
...
e3ce1b977b
Author | SHA1 | Date | |
---|---|---|---|
e3ce1b977b |
@ -43,29 +43,5 @@ The notification. The properties are defined in the link above.
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
## hilbish.cd
|
+ `hilbish.vimAction` -> actionName, args > Sent when the user does a "vim action," being something
|
||||||
Sent when the current directory of the shell is changed (via interactive means.)
|
like yanking or pasting text. See `doc vim-mode actions` for more info.
|
||||||
If you are implementing a custom command that changes the directory of the shell,
|
|
||||||
you must throw this hook manually for correctness.
|
|
||||||
|
|
||||||
#### Variables
|
|
||||||
`string` **`path`**
|
|
||||||
Absolute path of the directory that was changed to.
|
|
||||||
|
|
||||||
`string` **`oldPath`**
|
|
||||||
Absolute path of the directory Hilbish *was* in.
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
## hilbish.vimAction
|
|
||||||
Sent when the user does a "vim action," being something like yanking or pasting text.
|
|
||||||
See `doc vim-mode actions` for more info.
|
|
||||||
|
|
||||||
#### Variables
|
|
||||||
`string` **`actionName`**
|
|
||||||
Absolute path of the directory that was changed to.
|
|
||||||
|
|
||||||
`table` **`args`**
|
|
||||||
Table of args relating to the Vim action.
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
@ -22,6 +22,5 @@ commander.register('cd', function (args, sinks)
|
|||||||
sinks.out:writeln(err)
|
sinks.out:writeln(err)
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
bait.throw('cd', path, oldPath)
|
|
||||||
bait.throw('hilbish.cd', fs.abs(path), oldPath)
|
bait.throw('hilbish.cd', fs.abs(path), oldPath)
|
||||||
end)
|
end)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user