Home Download Buy Blog Forum Support

Find Results double-click

Find Results double-click

Postby adzenith on Wed Mar 09, 2011 12:37 am

When you double-click on a result in the Find Results buffer, it sends you to the line in the specified file. Is there any way I can map this to a key command so I don't have to use the mouse? As far as I can tell it's not a real command, because nothing gets printed in the console when log_commands is True. It'd be even cooler if it were a first-class command and in the mousemap file and everything.
Thanks!
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Find Results double-click

Postby jps on Wed Mar 09, 2011 2:20 am

F4 should do what you want?
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Find Results double-click

Postby adzenith on Wed Mar 09, 2011 3:32 am

Well I'll be damned.



One quick request: the behavior of next_result is such that if the cursor is on a result line, next_result will go to the result after it. It looks like this might be because after next_result runs it selects part of the line to make it clear what happened, and so next_result would need to go to the result after the one with the selection on it. Could it be made a bit smarter, though? E.g. if the selection's empty, or if the selection is anything other than the hardbol through the colon after the number, etc, go to the current line's result?

Thanks! I was just impressed. :)
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Find Results double-click

Postby adzenith on Wed Mar 09, 2011 3:34 am

It'd also be really cool if next_result just previewed the file like Goto Anything does.
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 8 guests