diff --git a/doc.go b/doc.go index e7c15e45..99e2819a 100644 --- a/doc.go +++ b/doc.go @@ -209,11 +209,13 @@ The following special shell commands are used to customize the behavior of lf wh The following commands/keybindings are provided by default: - Unix Windows - cmd open &$OPENER "$f" cmd open &%OPENER% %f% - map e $$EDITOR "$f" map e $%EDITOR% %f% - map i $$PAGER "$f" map i !%PAGER% %f% - map w $$SHELL map w $%SHELL% + Unix Windows + cmd open &$OPENER "$f" cmd open &%OPENER% %f% + map e $$EDITOR "$f" map e $%EDITOR% %f% + map i $$PAGER "$f" map i !%PAGER% %f% + map w $$SHELL map w $%SHELL% + cmd doc $$lf -doc | $PAGER cmd doc !%lf% -doc | %PAGER% + map doc map doc The following additional keybindings are provided by default: diff --git a/docstring.go b/docstring.go index 1c1c5e27..759260c2 100644 --- a/docstring.go +++ b/docstring.go @@ -213,11 +213,13 @@ when defined: The following commands/keybindings are provided by default: - Unix Windows - cmd open &$OPENER "$f" cmd open &%OPENER% %f% - map e $$EDITOR "$f" map e $%EDITOR% %f% - map i $$PAGER "$f" map i !%PAGER% %f% - map w $$SHELL map w $%SHELL% + Unix Windows + cmd open &$OPENER "$f" cmd open &%OPENER% %f% + map e $$EDITOR "$f" map e $%EDITOR% %f% + map i $$PAGER "$f" map i !%PAGER% %f% + map w $$SHELL map w $%SHELL% + cmd doc $$lf -doc | $PAGER cmd doc !%lf% -doc | %PAGER% + map doc map doc The following additional keybindings are provided by default: diff --git a/lf.1 b/lf.1 index e749bfea..97f64605 100644 --- a/lf.1 +++ b/lf.1 @@ -234,11 +234,13 @@ The following special shell commands are used to customize the behavior of lf wh The following commands/keybindings are provided by default: .PP .EX - Unix Windows - cmd open &$OPENER "$f" cmd open &%OPENER% %f% - map e $$EDITOR "$f" map e $%EDITOR% %f% - map i $$PAGER "$f" map i !%PAGER% %f% - map w $$SHELL map w $%SHELL% + Unix Windows + cmd open &$OPENER "$f" cmd open &%OPENER% %f% + map e $$EDITOR "$f" map e $%EDITOR% %f% + map i $$PAGER "$f" map i !%PAGER% %f% + map w $$SHELL map w $%SHELL% + cmd doc $$lf -doc | $PAGER cmd doc !%lf% -doc | %PAGER% + map doc map doc .EE .PP The following additional keybindings are provided by default: