Add basic logic for opening program manpages#111
Merged
Artturin merged 5 commits intonix-community:masterfrom Feb 12, 2026
Merged
Add basic logic for opening program manpages#111Artturin merged 5 commits intonix-community:masterfrom
Artturin merged 5 commits intonix-community:masterfrom
Conversation
Contributor
Author
|
Maybe instead of a CLI flag it should be a subcommand, so it more closely replicates how man is used without comma, for example: If for some reason a user wants to run |
Contributor
Author
|
Let me know which is preferred. |
Member
|
We already have -s for the shell, so -m is probably good enough for displaying the man page and I would not special case man subcommand. |
|
|
rszyma
reviewed
Nov 12, 2025
Artturin
reviewed
Nov 27, 2025
Otherwise only `out` is passed
```
$ RUST_LOG=TRACE cargo run -- man znapzend
updating cache entry for command 'znapzend': CacheEntry { derivation: "znapzend.out", path: None }
run nix command arguments: "nix" "--extra-experimental-features" "nix-command flakes" "shell" "-f" "<nixpkgs>" "znapzend.out" "--command" "man" "znapzend"
No manual entry for znapzend
```
```
$ nix shell "nixpkgs#znapzend" --command man znapzend
$ nix shell "nixpkgs#znapzend.out" --command man znapzend
No manual entry for znapzend
```
Artturin
reviewed
Feb 12, 2026
Member
|
Thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the
comma -marg, which allows comma to open manpages for you. Example usage:which then opens the ripgrep manpage.
I tested it on my machine and it seems to work fine.