* dired-do-shell-command needs minibuffer completion
@ 2008-04-07 1:44 jidanni
2008-04-08 21:34 ` Johan Bockgård
2008-04-11 16:22 ` Drew Adams
0 siblings, 2 replies; 4+ messages in thread
From: jidanni @ 2008-04-07 1:44 UTC (permalink / raw)
To: bug-gnu-emacs
! runs the command dired-do-shell-command
Well, it could certainly use the same completion list for command
names as comint-dynamic-complete. Currently TAB at its prompt just
does self-insert-command.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dired-do-shell-command needs minibuffer completion
2008-04-07 1:44 dired-do-shell-command needs minibuffer completion jidanni
@ 2008-04-08 21:34 ` Johan Bockgård
2008-04-11 16:22 ` Drew Adams
1 sibling, 0 replies; 4+ messages in thread
From: Johan Bockgård @ 2008-04-08 21:34 UTC (permalink / raw)
To: bug-gnu-emacs
jidanni@jidanni.org writes:
> ! runs the command dired-do-shell-command
>
> Well, it could certainly use the same completion list for command
> names as comint-dynamic-complete. Currently TAB at its prompt just
> does self-insert-command.
dired-read-shell-command and dired-smart-shell-command in dired-x.el
need some love too.
--
Johan Bockgård
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: dired-do-shell-command needs minibuffer completion
2008-04-07 1:44 dired-do-shell-command needs minibuffer completion jidanni
2008-04-08 21:34 ` Johan Bockgård
@ 2008-04-11 16:22 ` Drew Adams
1 sibling, 0 replies; 4+ messages in thread
From: Drew Adams @ 2008-04-11 16:22 UTC (permalink / raw)
To: jidanni, bug-gnu-emacs
> From: jidanni@jidanni.org Sent: Sunday, April 06, 2008 6:45 PM
>
> ! runs the command dired-do-shell-command
> Well, it could certainly use the same completion list for command
> names as comint-dynamic-complete. Currently TAB at its prompt just
> does self-insert-command.
What you want is to be able to complete against the history of shell commands
used in Dired, `dired-shell-command-history': to reuse a previous command,
possibly editing it first. Right?
That's easy to do, and it need not be limited to shell commands or Dired.
With Icicles, you can, during any minibuffer input, use `M-o' to complete
against the current history. In this case, the history is
`dired-shell-command-history', so you complete against shell commands previously
used for `!' in Dired. This comes for free; it's not something designed
specifically for shell invocation in Dired.
If you want to do the same thing without Icicles, it's not hard. See command
`icicle-insert-history-element', which is bound to `M-o' in all minibuffer
keymaps. It uses a recursive minibuffer, passing `minibuffer-history-variable'
to `completing-read' as the completion alist.
I proposed this feature for Emacs, but who knows what will come of that. See my
March 15 and 16 mails to the thread "Usability suggestion : completion for M-:"
on emacs-devel@gnu.org.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dired-do-shell-command needs minibuffer completion
[not found] <mailman.10270.1207930958.18990.bug-gnu-emacs@gnu.org>
@ 2008-04-11 22:25 ` jidanni
0 siblings, 0 replies; 4+ messages in thread
From: jidanni @ 2008-04-11 22:25 UTC (permalink / raw)
To: bug-gnu-emacs
>> ! runs the command dired-do-shell-command
>> Well, it could certainly use the same completion list for command
>> names as comint-dynamic-complete. Currently TAB at its prompt just
>> does self-insert-command.
DA> What you want is to be able to complete against the history of
DA> shell commands used in Dired, `dired-shell-command-history': to
DA> reuse a previous command, possibly editing it first. Right?
No, not that fancy: all I know is that the first word entered when
using ! (dired-do-shell-command) must be a file on $PATH, so hitting
TAB should expand on all the executable filenames in /usr/bin/ etc.
for that first word.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-11 22:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-07 1:44 dired-do-shell-command needs minibuffer completion jidanni
2008-04-08 21:34 ` Johan Bockgård
2008-04-11 16:22 ` Drew Adams
[not found] <mailman.10270.1207930958.18990.bug-gnu-emacs@gnu.org>
2008-04-11 22:25 ` jidanni
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.