Skip to content

Commit

Permalink
Enforce the EDITOR "kcr edit" value on connect
Browse files Browse the repository at this point in the history
As this looks like the most expected behavior, requiring the user to
configure it somehow looks wrong.

This enforce the value and make the connect command to works ootb
without additional configuration. Example:

:connect terminal nnn
  • Loading branch information
Stacy Harper committed May 2, 2022
1 parent 43d4276 commit 168aec4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions share/kcr/init/kakoune.kak
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ define-command -override connect -params 1.. -command-completion -docstring 'Run
export KAKOUNE_CLIENT=$2
shift 3

export EDITOR='kcr edit'

[ $# = 0 ] && set "$SHELL"

"$@"
Expand Down

0 comments on commit 168aec4

Please sign in to comment.