Completion for commands (starting with ":") in repl #361
	
		Labels
		
	
	
	
	No labels
	
		
			
	
	Affects/CppNix
		
			Affects/Nightly
		
			Affects/Only nightly
		
			Affects/Stable
		
			Area/build-packaging
		
			Area/cli
		
			Area/evaluator
		
			Area/fetching
		
			Area/flakes
		
			Area/language
		
			Area/lix ci
		
			Area/nix-eval-jobs
		
			Area/profiles
		
			Area/protocol
		
			Area/releng
		
			Area/remote-builds
		
			Area/repl
		
			Area/repl/debugger
		
			Area/store
		
			bug
		
			Context
contributors
		
			Context
drive-by
		
			Context
maintainers
		
			Context
RFD
		
			crash 💥
		
			Cross Compilation
		
			devx
		
			docs
		
			Downstream Dependents
		
			E/easy
		
			E/hard
		
			E/help wanted
		
			E/reproducible
		
			E/requires rearchitecture
		
			Feature/S3
		
			imported
		
			Language/Bash
		
			Language/C++
		
			Language/NixLang
		
			Language/Python
		
			Language/Rust
		
			Needs Langver
		
			OS/Linux
		
			OS/macOS
		
			performance
		
			regression
		
			release-blocker
		
			stability
		
			Status
blocked
		
			Status
invalid
		
			Status
postponed
		
			Status
wontfix
		
			testing
		
			testing/flakey
		
			Topic/Large Scale Installations
		
			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…
	
	Add table
		Add a link
		
	
		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 repland pressing tab, the completion is the same with not typing anything and pressing tab, instead of a list of available commands. When typing:loand 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.ccinNixRepl::processLine(). We just need to shove the list of possible colon commands inNixRepl::completePrefix()insrc/libcmd/repl.ccbehind 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: