ag.el icon indicating copy to clipboard operation
ag.el copied to clipboard

editable default

Open wbolster opened this issue 7 years ago • 2 comments

it would be great if ag.el had a customizable option to make the default "dwim" that uses the word at point as a default actually editable when i call (ag) and related commands like (ag-project).

right now it's like this:

Search string (default foo):

which is great if you want to type something yourself.

the option i would like to have would change this to

Search string: foo

i.e. 'foo' is already filled in and editable.

this breaks some workflows so a customizable flag makes sense.

thoughts? i may come up with a pr if you agree this is a useful add-on to this otherwise awesome package.

wbolster avatar Sep 21 '16 11:09 wbolster

This should already be possible: press M-n. It's not very discoverable I know.

Striking the right balance between allowing editing of the input, and minimising keystrokes, is tricky. There's an open issue to try to improve further.

Wilfred avatar Sep 21 '16 12:09 Wilfred

see also #112 where i posted a hack that sort-of implements this.

wbolster avatar Sep 28 '16 20:09 wbolster