aca / elvish-bash-completion

Elvish completion from bash completion
6 stars 0 forks source link

journalctl _AUDIT_FIELD_A0= #1

Closed aca closed 2 years ago

aca commented 2 years ago
rok@rok-te3 $ journalctl _AUDIT_FIELD_A0=
1b  22  23  24  25  28  3   4   5   9   f

not working on elv

aca commented 2 years ago

Need to fix COMP_WORDS from

[0]: journalctl
[1]: ADDRESS=

to

[0]: journalctl
[1]: ADDRESS
[2]: =

Currently COMP_WORDS is set through

COMP_WORDS=($COMP_LINE)

Need to find how bash does

aca commented 2 years ago
       COMP_WORDS
              An array variable (see Arrays below) consisting of the individual words
              in  the current command line.  The line is split into words as readline
              would split it, using COMP_WORDBREAKS as described above.   This  vari‐
              able  is  available only in shell functions invoked by the programmable
              completion facilities (see Programmable Completion below).