unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* wishlist: buffer completion for Eshell #<...> syntax?
@ 2024-09-10 21:39 Christopher Howard
  2024-09-10 22:23 ` Philip Kaludercic
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Christopher Howard @ 2024-09-10 21:39 UTC (permalink / raw)
  To: Emacs Devel Mailing List

Hi, I use eshell-command frequently to paste output from a command into a buffer. E.g.:

```
ls -1 *.jpg >> #<some-other-buffer>
```

It would be really cool if there was completion available so that I could type "#<so" <TAB> and get buffer name completion candidates. This doesn't seem to be a feature yet, at least not in the Emacs 30 branch. It will give some completion candidates from functions and such, but not buffer names.

-- 
📛 Christopher Howard
🚀 gemini://gem.librehacker.com
🌐 http://gem.librehacker.com

בראשית ברא אלהים את השמים ואת הארץ



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: wishlist: buffer completion for Eshell #<...> syntax?
  2024-09-10 21:39 wishlist: buffer completion for Eshell #<...> syntax? Christopher Howard
@ 2024-09-10 22:23 ` Philip Kaludercic
  2024-09-10 23:47 ` Jim Porter
  2024-09-11 17:59 ` Karthik Chikmagalur
  2 siblings, 0 replies; 7+ messages in thread
From: Philip Kaludercic @ 2024-09-10 22:23 UTC (permalink / raw)
  To: Christopher Howard; +Cc: Emacs Devel Mailing List

Christopher Howard <christopher@librehacker.com> writes:

> Hi, I use eshell-command frequently to paste output from a command into a buffer. E.g.:
>
> ```
> ls -1 *.jpg >> #<some-other-buffer>
> ```
>
> It would be really cool if there was completion available so that I
> could type "#<so" <TAB> and get buffer name completion
> candidates. This doesn't seem to be a feature yet, at least not in the
> Emacs 30 branch. It will give some completion candidates from
> functions and such, but not buffer names.

If I were you I'd report this as a bug/feature request.

-- 
	Philip Kaludercic on siskin



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: wishlist: buffer completion for Eshell #<...> syntax?
  2024-09-10 21:39 wishlist: buffer completion for Eshell #<...> syntax? Christopher Howard
  2024-09-10 22:23 ` Philip Kaludercic
@ 2024-09-10 23:47 ` Jim Porter
  2024-09-11 17:24   ` Christopher Howard
  2024-09-11 17:59 ` Karthik Chikmagalur
  2 siblings, 1 reply; 7+ messages in thread
From: Jim Porter @ 2024-09-10 23:47 UTC (permalink / raw)
  To: Christopher Howard, Emacs Devel Mailing List

On 9/10/2024 2:39 PM, Christopher Howard wrote:
> Hi, I use eshell-command frequently to paste output from a command into a buffer. E.g.:
> 
> ```
> ls -1 *.jpg >> #<some-other-buffer>
> ```
> 
> It would be really cool if there was completion available so that I could type "#<so" <TAB> and get buffer name completion candidates. This doesn't seem to be a feature yet, at least not in the Emacs 30 branch. It will give some completion candidates from functions and such, but not buffer names.
> 

This is already supported. See commit 9199fa00caa6 (and 69e8333210ae for 
some further enhancements on top).



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: wishlist: buffer completion for Eshell #<...> syntax?
  2024-09-10 23:47 ` Jim Porter
@ 2024-09-11 17:24   ` Christopher Howard
  0 siblings, 0 replies; 7+ messages in thread
From: Christopher Howard @ 2024-09-11 17:24 UTC (permalink / raw)
  To: Jim Porter; +Cc: Emacs Devel Mailing List

Jim Porter <jporterbugs@gmail.com> writes:

> On 9/10/2024 2:39 PM, Christopher Howard wrote:
> This is already supported. See commit 9199fa00caa6 (and 69e8333210ae
> for some further enhancements on top).
>

Thanks! I built master and gave this a try, and it seems to be working fine.

Life is getting a bit complicated, running three versions of Emacs on one system!

-- 
Christopher Howard



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: wishlist: buffer completion for Eshell #<...> syntax?
  2024-09-10 21:39 wishlist: buffer completion for Eshell #<...> syntax? Christopher Howard
  2024-09-10 22:23 ` Philip Kaludercic
  2024-09-10 23:47 ` Jim Porter
@ 2024-09-11 17:59 ` Karthik Chikmagalur
  2024-09-11 21:15   ` Christopher Howard
  2 siblings, 1 reply; 7+ messages in thread
From: Karthik Chikmagalur @ 2024-09-11 17:59 UTC (permalink / raw)
  To: Christopher Howard, Emacs Devel Mailing List

> Hi, I use eshell-command frequently to paste output from a command into a buffer. E.g.:
>
> ```
> ls -1 *.jpg >> #<some-other-buffer>
> ```
>
> It would be really cool if there was completion available so that I
> could type "#<so" <TAB> and get buffer name completion candidates.

In addition to this (now implemented) feature, you can insert a buffer
for redirection using `eshell-insert-buffer-name', bound to C-c M-b by
default in eshell.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: wishlist: buffer completion for Eshell #<...> syntax?
  2024-09-11 17:59 ` Karthik Chikmagalur
@ 2024-09-11 21:15   ` Christopher Howard
  2024-09-12  1:07     ` Karthik Chikmagalur
  0 siblings, 1 reply; 7+ messages in thread
From: Christopher Howard @ 2024-09-11 21:15 UTC (permalink / raw)
  To: Karthik Chikmagalur; +Cc: Emacs Devel Mailing List

Karthik Chikmagalur <karthikchikmagalur@gmail.com> writes:

> In addition to this (now implemented) feature, you can insert a buffer
> for redirection using `eshell-insert-buffer-name', bound to C-c M-b by
> default in eshell.

Great, thanks! I see this is part in Emacs 30. Very convenient. Thank you, dev people! 🫡

-- 
Christopher Howard



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: wishlist: buffer completion for Eshell #<...> syntax?
  2024-09-11 21:15   ` Christopher Howard
@ 2024-09-12  1:07     ` Karthik Chikmagalur
  0 siblings, 0 replies; 7+ messages in thread
From: Karthik Chikmagalur @ 2024-09-12  1:07 UTC (permalink / raw)
  To: Christopher Howard; +Cc: Emacs Devel Mailing List

>> In addition to this (now implemented) feature, you can insert a buffer
>> for redirection using `eshell-insert-buffer-name', bound to C-c M-b by
>> default in eshell.
>
> Great, thanks! I see this is part in Emacs 30. Very convenient. Thank you, dev people! 🫡

I believe this binding for `eshell-insert-buffer-name' goes back at least to Emacs 27.1. 



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-09-12  1:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-10 21:39 wishlist: buffer completion for Eshell #<...> syntax? Christopher Howard
2024-09-10 22:23 ` Philip Kaludercic
2024-09-10 23:47 ` Jim Porter
2024-09-11 17:24   ` Christopher Howard
2024-09-11 17:59 ` Karthik Chikmagalur
2024-09-11 21:15   ` Christopher Howard
2024-09-12  1:07     ` Karthik Chikmagalur

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).