Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.
/ manix Public archive
forked from mlvzk/manix

A fast CLI documentation searcher for Nix.

License

Notifications You must be signed in to change notification settings

kulabun/manix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Manix

A fast CLI documentation searcher for Nix.

Supported sources:

  • Nixpkgs Documentation
  • Nixpkgs Comments
  • Nixpkgs Tree (pkgs., pkgs.lib.)
  • NixOS Options
  • Home-Manager Options

Usage

manix --help
manix mergeattr
manix --strict mergeattr
manix --update-cache mergeattr

rnix-lsp

If you want to use it in your editor, check ElKowar's rnix-lsp fork, which uses it to provide documentation on hover and autocompletion.

manix

fzf

manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | fzf --preview="manix '{}'" | xargs manix

Installation

nix-env

sudo nix-env \
	--option extra-substituters https://mlvzk.cachix.org/ \
	--option trusted-public-keys 'mlvzk.cachix.org-1:OxRv8xos92A++mh82CsgVo8J6cHGSVCOBFx7a6nhbWo=' \
	-i -f https://github.com/mlvzk/manix/archive/master.tar.gz

If you're a trusted user or you don't wanna use the cachix cache you can run it without sudo.

Nix with flakes enabled

$ nix run 'github:mlvzk/manix' mapAttrs

Kudos

The inspiration for this project came from nix-doc

About

A fast CLI documentation searcher for Nix.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 92.7%
  • Nix 7.3%