Completion for commands (starting with ":") in repl #361
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#361
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
When typing
:
innix repl
and pressing tab, the completion is the same with not typing anything and pressing tab, instead of a list of available commands. When typing:lo
and pressing tab, nothing happens.Describe the solution you'd like
Completions for these commands appear when prefixed with
:
Describe alternatives you've considered
Not displaying completion of any commands?
Additional context
I've opened an issue in https://github.com/NixOS/nix/issues/10509 but since I want to give lix a try, I'd like to also opening an issue here to see if I can get a response.
This shouldn't be too hard. The
:
commands currently are hardcoded (lol) insrc/libcmd/repl.cc
inNixRepl::processLine()
. We just need to shove the list of possible colon commands inNixRepl::completePrefix()
insrc/libcmd/repl.cc
behind aprefix.starts_with(":")
We are currently working on #306, but can tackle this after because this should really be a thing
we would love if there were a registry of repl commands, which would make this easier.
https://gerrit.lix.systems/c/lix/+/1367
This issue was mentioned on Gerrit on the following CLs: