nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] Improve execute command prompt


From: David Ramsey
Subject: Re: [Nano-devel] [PATCH] Improve execute command prompt
Date: Wed, 6 Sep 2017 16:14:21 -0500

Benno Schulenberg:
> Do you mean just a command history during the current session? Or a
> history that is saved and reloaded just like the search and position
> histories?

Both.

> In either case: what are the commands that you execute time and again?
> I simply cannot imagine any command whose result I would want to use
> and insert into some file again and again and again.

My specific uses depend on the exact things I'm doing, but the most
common general cases for me are:

1. "ls" with specific command line options (such as --time-style=iso, so
that all files are shown with full dates instead of just non-recent
ones, so that in turn the file listing remains consistent no matter when
I make it).  Running it inside nano is much easier than opening up
another terminal or suspending nano and running "ls" separately, and
then having to copy and paste a listing that may take up much more than
one screenful.  When I have to run the same command again (or a variant
with only slight changes to the options), having to type it all again
with all the options takes up time unnecessarily.

2. "echo" piped through "bc", for similar reasons.  If I need to do some
arithmetic that I can't do easily in my head, running it inside nano is
much easier than the aforementioned alternatives, and, if I have to run
several formulas with only minor variations, having the formulas saved
in the history where I can edit them to make new formulas would, again,
save me the time I would otherwise spend retyping them.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]