Skip to content

chambln/kakoune-interactively

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
rc
 
 
 
 
 
 

Interactively

This plugin makes various Kakoune 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.

asciicast

Suggested configuration:

# ~/.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 <final> 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

About

Makes some Kakoune commands more friendly and interactive

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published