summaryrefslogtreecommitdiff
path: root/rc/connect/commands/:edit
diff options
context:
space:
mode:
Diffstat (limited to 'rc/connect/commands/:edit')
-rwxr-xr-xrc/connect/commands/:edit12
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