Crates.io | shrs_manpages |
lib.rs | shrs_manpages |
version | 0.0.6 |
source | src |
created_at | 2024-04-16 04:12:42.212478 |
updated_at | 2024-06-01 04:57:11.183488 |
description | keybinding to open man page currently typed command |
homepage | https://mrpicklepinosaur.github.io/shrs/ |
repository | https://github.com/MrPicklePinosaur/shrs |
max_upload_size | |
id | 1209937 |
size | 58,269 |
This is a plugin for shrs.
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();