E Text Editor | The Power of Textmate on Windows

 
Author Message

Index  >  New Feature Ideas / Requests  ~  Enhancement to Ctrl-0 tab-list popup

charlesroper
Posted: Wed Nov 04, 2009 7:50 am Reply with quote
Registered User Joined: 06 Mar 2007 Posts: 1211 Location: UK
I've added a new feature request to Uservoice:

http://etexteditor.uservoice.com/pages/4047-e-text-editor/suggestions/374295-hit-ctrl-0-multiple-times-to-switch-tabs?ref=title

This must be fairly easy to implement surely?

_________________
Charles Roper
twitter.com/charlesroper
View user's profile Send private message Visit poster's website
adamv
Posted: Wed Nov 04, 2009 7:58 pm Reply with quote
Registered User Joined: 10 Dec 2007 Posts: 156
If I had a dollar for every user request that included the phrase "...must be easy..."...
View user's profile Send private message MSN Messenger
RyanJ
Posted: Thu Nov 05, 2009 2:02 pm Reply with quote
Registered User Joined: 27 Jul 2009 Posts: 10
As my boss (not a SW guy) would sometimes say: "It's easy... it's just software!"
View user's profile Send private message
adamv
Posted: Thu Nov 05, 2009 3:03 pm Reply with quote
Registered User Joined: 10 Dec 2007 Posts: 156
http://github.com/adamv/e/commit/7b335f036f1c6fd46e50115286181899b2579f53
View user's profile Send private message MSN Messenger
charlesroper
Posted: Thu Nov 05, 2009 7:29 pm Reply with quote
Registered User Joined: 06 Mar 2007 Posts: 1211 Location: UK
Nice one Adam, that was quick work.

I thought it might be relatively easy because I perhaps naively assumed that controlling up/down behaviour with an additional set of keys would be a case of binding those new keys to whatever existing functions there are. Obviously it's a little trickier than that. Smile

_________________
Charles Roper
twitter.com/charlesroper
View user's profile Send private message Visit poster's website
adamv
Posted: Thu Nov 05, 2009 7:38 pm Reply with quote
Registered User Joined: 10 Dec 2007 Posts: 156
The technical reason for that is that "printable characters" send different events from control characters (including escape, keypad arrows, etc.)

So you end up with one path of code to handle some keypresses, and another path of code to handle other keypresses... I suppose there's some duplication in that code that could be reduced, but eh, maybe later.
View user's profile Send private message MSN Messenger

Display posts from previous:  

All times are GMT
Page 1 of 1
Post new topic

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum