This patch adds a clear button to the interactive
search bar (labelled "<x") and turns the Find label (to
the right) into a button, activating a new search.
Since this new search uses the same callback as the
return key translation for the i-search text widget,
hold shift and clicking on the Find button will search
A sequence of mail at email@example.com, starting
2003-08-25, discussed this patch - here's the first
Subject: Mouse usage with the interactive search bar
From: Tony Balinski <ajbj () free ! fr>
Date: 2003-08-25 14:13:44
[Download message RAW]
Much as I like the ISearch bar, I am an inveterate
mouse user, and find that the ISearch could support
mouse use better. In particular:
- I want to paste selected words from the main
window into the search bar, replacing text already there
- I want to invoke a search without having to hit
To this end I patched NEdit so that the Find: label
becomes a button which invokes the "activate" action of
the text widget, and I added a clear button (labelled
"<x") to empty the content of the text widget without
disturbing the current selection nor invoking a search.
Now, while perusing a file, I can now select some text,
clear the ISearch text box then paste my selection into
it to find the next occurrence; then find the next etc,
all with the mouse. I find this makes the ISearch much
more usable than before.
I think this could be a useful enhancement for others;
I'll submit a patch soon.
The original patch was sent out on that list on
2003-08-25. There was some discussion of button
placement, text and ergonomics. I would like this patch
integrated into the main line code, maybe with minor
modifications, because it has proved very useful to me.
Log in to post a comment.