I've recently been playing with libtermkey (http://www.leonerd.org.uk/code/libtermkey/
) and discovered
that, like a lot of terminals, quite a few key-combinations are
impossible to detect because they all
send the same sequence of bytes.
I ended up chatting with the author of the library, who has a proposal
to fix this particular problem
written up here: http://www.leonerd.org.uk/hacks/fixterms/
I'm curious as to what others, especially the devs, think about
supporting such a specification (which
is why I'm posting to the list and not just making it an Issue)
As long as we maintain backwards compatibility, or offer the choice
via some sort of config option, I
think it would be extremely beneficial to have the ability to
distinguish between various keycombos
hitherto impossible to detect.
I welcome your thoughts on the matter,
--Tom
I think this is a great idea. Does it work well in practice? Is it
being adopted by other terminal emulators?
There would probably be too many keybindings to try to define every
one individually, but I think it would be a fairly straightforward
code change. Please file a feature request for it.
On Sat, May 7, 2011 at 7:14 PM, Tom Feist <sha...@gmail.com> wrote:
> Hi all,
>
> I've recently been playing with libtermkey
> (http://www.leonerd.org.uk/code/libtermkey/) and discovered
But I guess this isn't really the forum to discuss the specifics.
--
Pelle Johansson
Actually, additional keys can be added after loading the preset, but I'm
half wondering if there should be some sort of confirmation dialog (or
undo)
when selecting a preset, since it does clean out your whole key-
profile. I've
done that accidentally more than once while testing the loading code.
Cheers,
Tom
Yeah, having an escape to swap between presets would be pretty cool.
I think we'd need a way to save presets as well though - at the moment
they obliterate everything that's already there, so the only way to use
them is to generate the plist manually, as my script does.
Actually, additional keys can be added after loading the preset, but I'm
half wondering if there should be some sort of confirmation dialog (or undo)
when selecting a preset, since it does clean out your whole key-profile. I've
I think in the long term it'd be nice to be able to save keybindings
independently of bookmarks,
like the colour settings, but I'm not sure I'm experienced enough yet
to write it. I'll maybe have
a go and try to clone the colour approach.
Do we have an easy way of generating confirmation dialogs? I seem to
recall seeing something like that
in the source, but I can't find it now, which is bugging me.
On a completely unlrelated note, the project dir is getting pretty
huge and disorganised, I'm wondering how
hard it would be to build some sort of subdir-modular structure,
although I have no idea how xcode would deal
with it. You can 'group' things there, but that doesn't seem to do
anything at all about their actual
filesystem location.
--Tom.
I think in the long term it'd be nice to be able to save keybindings independently of bookmarks,
like the colour settings, but I'm not sure I'm experienced enough yet to write it. I'll maybe have
a go and try to clone the colour approach.
Do we have an easy way of generating confirmation dialogs? I seem to recall seeing something like that
in the source, but I can't find it now, which is bugging me.
On a completely unlrelated note, the project dir is getting pretty huge and disorganised, I'm wondering how
hard it would be to build some sort of subdir-modular structure, although I have no idea how xcode would deal
with it. You can 'group' things there, but that doesn't seem to do anything at all about their actual
filesystem location.
Profiles
BookmarkListView
BookmarkModel
BookmarksController
BookmarksWindow
ITAddressBookMgr
iTermTerminalProfileMgr
Popups
Autocomplete
PasteboardHistory
Popup
Search
FindCommandHandler
FindView
FindViewController
iTermSearchField
GTM
GTM*
Expose
GlobalSearch
iTermExpose
DVR
DVR
DVRBuffer
DVRDecoder
DVREncoder
DVRIndexEntry
Window
FakeWindow
PTToolbarController
PTYWindow
PseudoTerminal
PTYTab
PTYTabView
Misc
ITViewLocalizer
NSDateFormatterExtras
NSStringITerm
Session
LineBuffer
LineBufferTest
PTYScrollView
PTYSession
PTYTask
PTYTextView
ScreenChar
SessionView
TextViewWrapper
Trouter
VT100Screen
VT100Terminal
Prefs
PreferencePanel
App
ProcessCache
iTermApplication
iTermApplicationDelegate
iTermController
iTermGrowlDelegate
iTermKeyBindingMgr
main
There are a few files that need to be split up: PreferencePanel.m, PseudoTerminal.m, PTYTextView.m, and iTermControlller.m are the first that come to mind.
This is something that's on my "to do when I have nothing more pressing list", and it's been there for a while :)