[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: A smarter command history
From: |
Drew Adams |
Subject: |
RE: A smarter command history |
Date: |
Sun, 26 Jan 2014 10:53:04 -0800 (PST) |
> > > For example, in grep's case the command history would look
> > > like this after the fix:
> > > (let ((default-directory "/home/me/projx"))
> > > (grep "grep -n -i test"))
> >
> > That could also be problematic if the user wants to run the same
> > grep in various directory.
>
> Deleting things is easy and in my experience in most of the
> cases I want to run the same grep query in the same directory.
Sounds like a reason _not_ to implement what you asked for:
YAGNI, if you typically run the same grep query in the same dir.
Your reason for the request was that it is a nuisance to change
directory:
>> This is useful to repeat a previous grep command later,
>> but you have to switch to the directory first if you want
>> to run grep in the same directory as previously.
FWIW, I'd suggest that Emacs command `cd' provide a reasonable
minibuffer history list: the directory names previously entered
from the minibuffer. That is not the case currently - all
entered file and directory names are in the history.
(To change to a subdir, `cd' completion is quick.)