From 8440e8a68dbe30d2af47e460ed9bf5eb66c970b2 Mon Sep 17 00:00:00 2001 From: Mattias Wadman Date: Sat, 11 Sep 2021 14:05:58 +0200 Subject: [PATCH] doc: Cleanup todo and dev a bit --- doc/TODO.md | 4 ++-- doc/dev.md | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/TODO.md b/doc/TODO.md index 06579a19..1f916ccc 100644 --- a/doc/TODO.md +++ b/doc/TODO.md @@ -2,7 +2,6 @@ #### CLI -- `--arg`, `--argjson` support - `--args` support - Reset color at prompt? context cancel @@ -11,12 +10,13 @@ - ctxstack index cancel wrong order, should just skip? - Pager for long output. Configurable? `$PAGER`? only explicit with some kind of syntax? `.. | less` but how? - Nicer context cancel message -- `dump` cancel output of large root value, ex: `.frames`. Problem is dump is done by parent repl. +- `dump` cancel output of large root value, ex: `.frames`. Problem is dump is done by parent repl. - Error position "^" pointer? - Configurable history file/name? - Auto complete $variables - Auto complete keys that need escaping, now just filtered out - Auto complete add "." just one and is object +- Use JQ_COLORS but extended to allow name= also? #### Language diff --git a/doc/dev.md b/doc/dev.md index 0ed0d112..6d9ec9a2 100644 --- a/doc/dev.md +++ b/doc/dev.md @@ -3,8 +3,7 @@ - fq uses a gojq fork that can be found at https://github.com/wader/gojq/tree/fq (the "fq" branch) - cli readline uses raw mode so blocks ctrl-c to become a SIGINT - TODO: `scope` and `scopedump` functions used to implement REPL completion -- TODO: Custom object interface used to traverse fq's field tree and to allowing a terse -syntax for comparing and working with fields, accessing child fields and special properties like `_range`. +- TODO: Custom object interface used to traverse fq's field tree and to allowing a terse syntax for comparing and working with fields, accessing child fields and special properties like `_range`. ## Decoder implementation help @@ -26,7 +25,7 @@ decoder code be a bit ugly over producing a tree that is hard to understand. Send `log` package output and stderr to a file that can be `tail -f`:ed: ```sh -LOGFILE=/tmp/log go run main.go ... 2>/tmp/log +LOGFILE=/tmp/log go run main.go ... 2>>/tmp/log ``` gojq execution debug: