about summary refs log tree commit diff
path: root/src/nix/edit.cc
AgeCommit message (Collapse)AuthorFilesLines
2019-02-05 Revert "Restore parent mount namespace before executing a child process"Eelco Dolstra1-5/+0
This reverts commit a0ef21262f4d5652bfb65cfacaec01d89c475a93. This doesn't work in 'nix run' and nix-shell because setns() fails in multithreaded programs, and Boehm GC mark threads are uncancellable. Fixes #2646.
2018-11-13 Restore parent mount namespace before executing a child processEelco Dolstra1-0/+5
This ensures that they can't write to /nix/store. Fixes #2535.
2018-04-17 Handle arguments in $EDITOREelco Dolstra1-2/+2
Fixes #2079.
2017-12-14 edit: Catch stoi exceptions from line number parsingBen Gamari1-1/+6
2017-08-29 nix edit / log: Operate on a single InstallableEelco Dolstra1-28/+26
2017-08-29 nix run: Flush the progress bar before starting the commandEelco Dolstra1-0/+3
2017-07-30 Replace Unicode quotes in user-facing strings by ASCIIJörg Thalheim1-3/+3
Relevant RFC: NixOS/rfcs#4 $ ag -l | xargs sed -i -e "/\"/s/’/'/g;/\"/s/‘/'/g"
2017-05-08 Add "nix edit" commandEelco Dolstra1-0/+75
This is a little convenience command that opens the Nix expression of the specified package. For example, nix edit nixpkgs.perlPackages.Moose opens <nixpkgs/pkgs/top-level/perl-packages.nix> in $EDITOR (at the right line number for some editors). This requires the package to have a meta.position attribute.