1 unstable release

0.0.5 Apr 16, 2024

#476 in Command-line interface

Download history 126/week @ 2024-04-10 39/week @ 2024-04-17

165 downloads per month

MIT/Apache

37KB

shrs_manpages

keybinding to open man page currently typed command

crates.io MIT/Apache 2.0

This is a plugin for shrs.

Using this plugin

First add this plugin to your dependencies

shrs_manpages = { version = "0.0.5" }

Register your own keybinding with the manpage handler

use shrs::prelude::*;
use shrs_manpages::{open_manpage};

let keybinding = keybindings! {
    |state|
    "C-n" => ("Open manpage", { open_manpage(state); }),
};

let myshell = ShellBuilder::default()
    .with_keybinding(keybinding)
    .build()
    .unwrap();

myshell.run();

Dependencies

~15–32MB
~454K SLoC