From: Michael D. Lowis Date: Mon, 7 Jan 2019 03:57:03 +0000 (-0500) Subject: added logic to fetch to interpret numbers as line numbers and jump to them X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=e1305d71bfbe65e4f3f583c8f9819caa540de1dc;p=projs%2Ftide.git added logic to fetch to interpret numbers as line numbers and jump to them --- 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 },