diff options
| author | Mathieu Ablasou <alexherbo2@gmail.com> | 2020-10-20 16:25:55 +0200 |
|---|---|---|
| committer | Mathieu Ablasou <alexherbo2@gmail.com> | 2020-10-20 16:25:55 +0200 |
| commit | 2800c6a4dfdf149813fd9d460565a240ecb332fd (patch) | |
| tree | 2bd1e467fb23a5c08a47775e27eb75eaedfd7d23 | |
| parent | ce8aec57a6b4438d8873364d1f1f80d498569999 (diff) | |
Add usage to :edit
| -rwxr-xr-x | rc/connect/commands/:edit | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/rc/connect/commands/:edit b/rc/connect/commands/:edit index c604bc3..86689d2 100755 --- a/rc/connect/commands/:edit +++ b/rc/connect/commands/:edit @@ -1,11 +1,21 @@ #!/bin/sh +# Open files. +# +# Usage: +# +# :edit <file> +# :edit +<line> <file> +# :edit +<line>:<column> <file> +# +# Note: Order matters. + . "$KAKOUNE_PRELUDE" # Skip options [ "$1" = '--' ] && shift -# Open files +# Open files at the given position (line and column) if specified. commands=$( while [ "$1" ]; do case "$1" in |
