[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Feature Request: Allow each completion to have their own wordbreaks
From: |
konsolebox |
Subject: |
Feature Request: Allow each completion to have their own wordbreaks |
Date: |
Sat, 18 Dec 2021 09:43:01 +0000 |
Right now I'm trying to perfect this completion script for rake
(https://git.io/JDaSA), but the problem is it has to rely on modifying
the COMP_WORDBREAKS variable so it doesn't contain '=' and ':'. This
conflicts with git's completion script at least which prefers `:` to
be assigned, and I'm not sure how it affects other scripts that may
want `=` not removed.
Either way the best solution in my opinion is to have Bash add a new
feature that allows each completion have their own COMP_WORDBREAKS,
probably through a new complete option, or a global associative array
variable that can contain the name of the completion as the key and
the value as the word break characters.
--
konsolebox
- Feature Request: Allow each completion to have their own wordbreaks,
konsolebox <=