kakounedotcom / connect.kak

Connect a program to Kakoune clients
https://kakoune.org
The Unlicense
88 stars 18 forks source link

Changed expected order of line:column and file in :edit #32

Closed useredsa closed 3 years ago

useredsa commented 3 years ago

Now it respects Kakoune's man page.

Solves #31

alexherbo2 commented 3 years ago

Thanks!

I documented a bit the :edit command, next to your commit, so it is immediately clear what the script does now without reading in the details.

# Open files.
#
# Usage:
#
# :edit <file>
# :edit +<line> <file>
# :edit +<line>:<column> <file>
#
# Note: Order matters.

...

# Open files at the given position (line and column) if specified.
commands=$(
  ...
)

...