https://github.com/chambln/kakoune-interactively
Makes some Kakoune commands more friendly and interactive
https://github.com/chambln/kakoune-interactively
kakoune plugin
Last synced: 5 months ago
JSON representation
Makes some Kakoune commands more friendly and interactive
- Host: GitHub
- URL: https://github.com/chambln/kakoune-interactively
- Owner: chambln
- License: unlicense
- Created: 2019-11-28T15:11:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-29T13:31:00.000Z (over 6 years ago)
- Last Synced: 2025-04-08T14:53:00.319Z (about 1 year ago)
- Topics: kakoune, plugin
- Homepage:
- Size: 19.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Interactively
This plugin makes various [Kakoune](https://kakoune.org) commands more
friendly and interactive by asking questions such as ‘save changes?’ and
‘ignore write protection?’. In particular, `i-quit` saves you the
trouble of hunting down modified buffers to save (or discard) before
quitting.
[](https://asciinema.org/a/F5UXtFxv6PjCnZnU05EFSxIzJ)
Suggested configuration:
``` kak
# ~/.config/kak/kakrc
plug chambln/kakoune-interactively config %{
alias global cd i-change-directory
alias global db i-delete-buffer
alias global q i-quit
alias global w i-write
set-option global yes_or_no_instant true
}
```
If `yes_or_no_instant` is truthy then `yes-or-no` prompts will not wait
for ret to be pressed.
You can use `yes-or-no` to create your own interactions. Prompts happen
asynchronously, so Kakoune won’t wait for the prompt to be dismissed
before continuing with the next line of the script. To work around this,
`yes-or-no` accepts an optional parameter `` which it evaluates
after a yes or no answer is given. If the prompt is dismissed with
Esc, nothing is evaluated.
## Bugs and notes
- You can’t pass a filename to `i-write`