Re: [code] [textadept] automatically fill the Find field with selected text for Ctrl-F

From: Ziegenlippe <ziegenlippe.att.googlemail.com>
Date: Wed, 4 Nov 2015 13:21:32 +0100

it works great.
but still its an additional feature. wouldn't it be possible to
auto-fill the Find field?
Thank,
David

On 04.11.2015 12:23, Gabriel Dubatti wrote:
> Hi David,
>
> There are a couple of examples in the wiki
> (http://foicica.com/wiki/goto-nearest-occurrence) from where I took
> the base code for a seach alternative and adjusted to my taste (more
> like Ultraedit).
>
> You can download my version from:
> https://github.com/gabdub/ta-tweaks/blob/master/goto_nearest.lua
>
> The code remember the last searched text even if you change
> buffers. But if you prefer to have a different last search in each
> buffer, follow the instructions in the top of the file.
>
> Key bindings:
> |* F3 goto nearest occurrence FORWARD * CTRL+F3: goto nearest
> occurrence BACKWARD * ALT+F3: goto nearest occurrence CHOOSE SEARCH
> OPTIONS * SHIFT+F3: ASK + goto nearest occurrence FORWARD *
> CTRL+SHIFT+F3: goto nearest occurrence TOGGLE SEARCH OPTIONS (soft <->
> strict) |
>
> /Optional:/
>
> --replace CTRL+F with SHIFT+F3
> keys.cf = keys.sf3
> |Check https://github.com/gabdub/ta-tweaks for a how-to install. |
>
> Best wishes,
> Gabriel
>
> El 04/11/2015 a las 05:47, Ziegenlippe escribió:
>> Hello,
>> after long search I found this cool editor for Linux.
>>
>> The only thing that traps me all the time is the search short cut
>> (Ctrl-F). From the other editors I usually use (notepad++, eclipse)
>> I'm used to get the Find field automatically filled with the selected
>> text of the editor area.
>> Loads of times I fail to search for text because I didn't notice that
>> the Find field wasn't filled with the selection as I expected.
>> I did not find a solution so far. Is there a way - perhaps a lua
>> config snippet - to get the selection automatically inserted into the
>> Find field?
>>
>> Thanks,
>> David
>

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 04 Nov 2015 - 07:21:32 EST

This archive was generated by hypermail 2.2.0 : Thu 05 Nov 2015 - 06:48:14 EST