:open REPL command to open the result of a derivation #1205
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
awaiting
author
awaiting
contributors
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
diagnostics
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
Feature/S3
Importance
High
Importance
Low
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
Release Blocking
Non-urgent
Release Blocking
Urgent
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
Urgency
High
Urgency
Low
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/lix#1205
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.
Using the REPL, I often want to explore the resulting file/directory of a derivation. While for files it's possible to "hijack"
:editto do that, 1) you have to know in advance that the result is a file, and 2) it obviously doesn't work for directory.Describe the solution you'd like
A specific command for opening the result of a derivation, named something like
:open/:oor:explore/:x(/:ex?), which would:Describe alternatives you've considered
Currently, I do this by building the derivation in the REPL with
:build, copying the resulting path that's displayed, then opening a new terminal andcd'ing to it (or usingfileornanodepending on the derivation). This kind of sucks, and given how many commands in the REPL are... specialized tools (:bvs:blvs:ivs:shvs:u), I feel like this is a common enough scenario that it'd be reasonable to add another command.