Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: nix repl history navigation via prefix string like fish shell #10167

Open
lolbinarycat opened this issue Mar 6, 2024 · 0 comments
Labels
feature Feature request or proposal

Comments

@lolbinarycat
Copy link

Is your feature request related to a problem? Please describe.
often when in nix repl you want to re-evaluate an expression. currently you have 3 options:

  • press up dozens of times until you reach the expression you want
  • retype the expression in full
  • use ^R (clunky, and has poor discoverability)

Describe the solution you'd like
the fish shell (and several other REPLs) have a solution for this:
when pressing up with a string already entered into the prompt, instead of just going back 1 step in history, it goes back until it finds a command starting with that string.

Describe alternatives you've considered
some way to set aliases for frequently used commands via something like :alias.

Additional context
bringing nixpkgs (or whatever nix expression i am working into scope of the repl often feels tedious, expecially with rapid iterative development.

:r should help with this slightly, but not as much if you have to leave the repl to do a git command or something.

Priorities

Add 👍 to issues you find important.

@lolbinarycat lolbinarycat added the feature Feature request or proposal label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal
Projects
None yet
Development

No branches or pull requests

1 participant