shrs_manpages

Crates.ioshrs_manpages
lib.rsshrs_manpages
version0.0.6
sourcesrc
created_at2024-04-16 04:12:42.212478
updated_at2024-06-01 04:57:11.183488
descriptionkeybinding to open man page currently typed command
homepagehttps://mrpicklepinosaur.github.io/shrs/
repositoryhttps://github.com/MrPicklePinosaur/shrs
max_upload_size
id1209937
size58,269
Daniel Liu (MrPicklePinosaur)

documentation

README

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.6" }

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();

Commit count: 440

cargo fmt