Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of making notes about a set of files #346

Closed
jidanni opened this issue Mar 10, 2023 · 5 comments
Closed

Example of making notes about a set of files #346

jidanni opened this issue Mar 10, 2023 · 5 comments

Comments

@jidanni
Copy link

jidanni commented Mar 10, 2023

Here is an example of a use for less, that you might want to add to the man page:

The secretary is browsing all the files in the directory,
and is to note down which files need further investigation.
The boss needs a list of the suspect filenames. OK, here we go:

$ less -KiRXQe *

now page through the files with SPACEBAR,
and then when we are looking at a suspect file, do

!echo "%" >> ../suspects : need more nurfflehauser details. norfsburg will like this

Above, the colon (:) is just so we know where to start typing any notes we
might want to make. No shell metachars like apostrophe allowed though,
unless escaped with backslash.
OK, on any subsequent files we want to make a note about, do:

!^P

(not !!,) and then update any words we want to say.

P.S., it seems we will have to get used to !^P,
as e.g., it seems lesskey can only bind single commands to a key,
so won't be of any use in this example.

Hmm, maybe instead of colon, use \#, which should produce nice shell comments!

Note I was paging through a set of one page long documents.
That way I didn't need to hit ":n" to get to the next document,
that's why things seemed so easy.

@gwsw
Copy link
Owner

gwsw commented Mar 16, 2023

This seems to be a very specific use case. I don't think it would add anything generally useful to the man page.

@jidanni
Copy link
Author

jidanni commented Mar 17, 2023

Well okay, then perhaps have some other example of some usage of that symbol.

@gwsw
Copy link
Owner

gwsw commented Mar 17, 2023

Which symbol are you referring to?

@jidanni
Copy link
Author

jidanni commented Mar 17, 2023

%

@gwsw
Copy link
Owner

gwsw commented Sep 4, 2023

I don't think anything more needs to be done here. The % character is already documented in the description of the ! command.

@gwsw gwsw closed this as completed Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants