]> git.mdlowis.com Git - projs/tide.git/commitdiff
added logic to fetch to interpret numbers as line numbers and jump to them
authorMichael D. Lowis <mike@mdlowis.com>
Mon, 7 Jan 2019 03:57:03 +0000 (22:57 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Mon, 7 Jan 2019 03:57:03 +0000 (22:57 -0500)
TODO.md
config.h

diff --git a/TODO.md b/TODO.md
index 5d0835a87873cbb9c6383bc5098534659018d7c8..2c1d1a00a1b6320a326f3434633d1c6f0efc7e0a 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -13,6 +13,8 @@
 * tide: Kill - add a 'Kill' tag to kill the most recent job
 * tide: gap buffer does not handle UTF-8 currently
 * edit: hangs after launching an empty tide instance then trying to open already open file
+* script: jump between header and source
+* script: grep to a new window/tag region
 
 ## BACKLOG
 
index f0325c577c0e8298d01691821667dfae1f50a0d9..32fb3186bcc8f7d2cb5d3e9dbd5677bd8e140c30 100644 (file)
--- a/config.h
+++ b/config.h
@@ -97,6 +97,12 @@ static Rule* BuiltinRules[] = {
         { LAUNCH, "edit \"$M0\"", NULL },
         { COMPLETE, NULL, NULL }
     },
+    (Rule[]){ /* Open addresses in the current file */
+        { MATCHES, "data", "^:?([0-9]+)" },
+        { ISFILE, "$file", NULL },
+        { LAUNCH, "edit \"$file:$M1\"", NULL },
+        { COMPLETE, NULL, NULL }
+    },
     (Rule[]){ /* If it's an existing text file, open it with editor */
         { ISSET, "EDITOR", NULL },
         { ISFILE, "$data", NULL },