[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [RFC] Improve nano's completion feature to use external
From: |
Brand Huntsman |
Subject: |
Re: [Nano-devel] [RFC] Improve nano's completion feature to use external sources of completion |
Date: |
Fri, 18 May 2018 15:17:54 -0600 |
On Fri, 18 May 2018 12:31:05 -0300
Marco Diego Aurélio Mesquita <address@hidden> wrote:
> Judging by
> https://lists.gnu.org/archive/html/nano-devel/2016-12/msg00016.html
> there is interest in an improved version of nano's completion feature
> to include external sources of completion.
>
> pletion grep $shard /usr/share/dict/words
Would be better if nano could load a ctags index, even if it only supports the
tagname (ignore everything on line after a tab). Scan up the directory tree for
a tags file and load if found. A syntax could also reference a ctags file
(generated from include files) that is always loaded in addition to the one
found. Allow the ctags command to be used multiple times in a syntax, to load
multiple tag files. It could easily reference a dictionary file as well, and a
symlink from a tags file (in directory tree) to a dictionary would also work.
From https://en.wikipedia.org/wiki/Ctags
"
The tags file is a list of lines, each line in the format:
{tagname}<Tab>{tagfile}<Tab>{tagaddress}
"
A later feature could add support for tagfile/tagaddress and a key to find word
under cursor and jump to it in current buffer or open its file in another
buffer.
And if nano's word completion walks a list it should be converted to a hash
table before adding ctags support.