Kakoune: shortcut to kakrc

Created on 2 Dec 2017  路  4Comments  路  Source: mawww/kakoune

i made this command to open quickly my conf

def edit-config -command-completion -docstring "Edit config file kakrc" %{
e .config/kak/kakrc
}

and also an alias :ec, it could be edit-kakrc also. I found it very handy, maybe we could insert it in core.

Most helpful comment

I am not keen on having an hard coded shortcut for that, however we could have an expand for kakoune's config directory. Currently %val{runtime} ($kak_runtime in shells) expands to the runtime directory (usually /usr/share/kak), we could have a similar %val{config} that would expand to the configuration directory (which is ${XDG_CONFIG_HOME:-${HOME}/.config}). Your shortcut could then be implemented in a robust fashion with edit "%val{config}/kakrc".

All 4 comments

@valerdi How about #1742?

I think we could have both, i got the idea from spacemacs where you press "SPC fed" to open the config but i like #1742 because i also found myself editing autoload files so a shortcut in way ~~/ comes really handy.

I'm using ,d Not sure if it's really needed in core since it's easy to write it yourself.

I am not keen on having an hard coded shortcut for that, however we could have an expand for kakoune's config directory. Currently %val{runtime} ($kak_runtime in shells) expands to the runtime directory (usually /usr/share/kak), we could have a similar %val{config} that would expand to the configuration directory (which is ${XDG_CONFIG_HOME:-${HOME}/.config}). Your shortcut could then be implemented in a robust fashion with edit "%val{config}/kakrc".

Was this page helpful?
0 / 5 - 0 ratings

Related issues

a12l picture a12l  路  3Comments

lenormf picture lenormf  路  3Comments

abitofalchemy picture abitofalchemy  路  3Comments

basbebe picture basbebe  路  4Comments

hwmack picture hwmack  路  4Comments