From e1305d71bfbe65e4f3f583c8f9819caa540de1dc Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Sun, 6 Jan 2019 22:57:03 -0500 Subject: [PATCH] added logic to fetch to interpret numbers as line numbers and jump to them --- TODO.md | 2 ++ config.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/TODO.md b/TODO.md index 5d0835a..2c1d1a0 100644 --- 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 diff --git a/config.h b/config.h index f0325c5..32fb318 100644 --- 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 }, -- 2.52.0