Comments (6)
Yeah I guess I can see the argument for having help
as the entry point for looking up documentation.
There are some approaches (not an exhaustive list):
- Map
help
tolf -help
- Rename
doc
tohelp
- Map both
doc
andhelp
tolf -doc
Changing this would be pretty easy, but I think it's better to see if anyone else has any comments before doing anything - I'm somewhat unwilling to make such a decision on my own.
from lf.
I did a quick search of the history, it was added to address #100 so you can have a look at it for more details.
Regarding the name choice, I guess doc
was chosen to reflect the difference between the -doc
and -help
command line flags, where the lf -doc
displays the full documentation, but lf -help
displays only the basic command line usage.
from lf.
Thanks for the history ;-)
A new help
command could display the same text than lf -help
and also indicate that a "longer" version can be obtain with the doc
command.
from lf.
The command doc
could also be simply listed with the other commands that have a default shortcut.
Currently, it is only indicated at the top of the documentation. In a first view, I hadn't see it at the top of the documentation because I'm simply "searching (to quickly perhaps ;-) what are the available commands".
from lf.
No problem!
from lf.
Maybe it was a mistake to use the name doc
instead of help
but I'm not sure if it is worth a breaking change at this point. The other two options (i.e. help
for lf -help
or doc
) sounds more plausible to me. At some point, I had also considered adding a help command with a search argument by default to resemble the behavior in vim
(e.g. cmd help $lf -doc | less +/$1
), but I wasn't sure it was a good idea so I eventually forgot.
from lf.
Related Issues (20)
- [HELP]: how to toggle hidden when in certain directories HOT 2
- cmd-delete-unix-word doesn't stop at word separators that aren't white space HOT 2
- r31 changelog HOT 13
- [question] path on windows HOT 2
- `select` command always selects top file when `dircache` option is disabled HOT 4
- File size displayed incorrectly after copy HOT 6
- gpm support HOT 3
- new lfcd in zsh tmux HOT 10
- [Feature] Search within marks in free text HOT 2
- Newest build from git and statfmt HOT 2
- [Feature] Filter by date and size HOT 2
- Recreating a folder with the same name shows files from the "old" folder HOT 8
- r32 changelog (preview)
- halted mpv playback in tty session HOT 1
- Sixel previews don't work HOT 3
- How to browse/operate on connected Android devices via MTP? HOT 2
- Possible bug after remote select HOT 3
- [Feature request] Equivalent of Range's `set draw_borders separators` setting HOT 6
- [bug] lf somehow causes a fatal error which crashes chromium-based web utilities HOT 2
- mapped copy command to other keybindings and get error message HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lf.