Open GoogleCodeExporter opened 9 years ago
Indeed, we have a TODO in the code, but using an issue to track this is a great
idea. The gesture defaults actually do come from a .plist that you can edit.
(Note, really savvy users can just recompile their own binary ;) )
// TODO(allen): Put defaults values in an XML file. Maybe using an XML file
// would have been better than using NSUserDefaults.
[menuSettings addMenuItem:[MenuItem itemWithLabel:@"ls" andCommand:@"ls"]];
[menuSettings addMenuItem:[MenuItem itemWithLabel:@"ls -l" andCommand:@"ls -l\n"]];
[menuSettings addMenuItem:[MenuItem itemWithLabel:@"ssh" andCommand:@"ssh "]];
[menuSettings addMenuItem:[MenuItem itemWithLabel:@"locate" andCommand:@"locate"]];
[menuSettings addMenuItem:[MenuItem itemWithLabel:@"ping www.google.com" andCommand:@"ping www.google.com\n"]];
[menuSettings addMenuItem:[MenuItem itemWithLabel:@"^C" andCommand:@"\x03"]];
Original comment by allen.po...@gmail.com
on 19 Dec 2010 at 6:33
[deleted comment]
Note that I said "savvy," not "really savvy." I'm definitely the former and
don't have the knowledge to recompile binary. I can tweak the crap out of a
plist though.
So, what's the path to the Gestures plist?
Original comment by paul.w.palm@gmail.com
on 20 Dec 2010 at 4:34
Definitely! Compiling a binary is too difficult for most folks -- editing a
.plist is not.
To consider this fixed i'll say that we should:
1) Move the defaults to a .plist like GestureDefaults.plist and
GestureInputActions.plist
2) Add a wiki page that documents how to change the file.
One problem is that we don't use the XML file for long term storage, just for
original details when no prior settings are available. Simply moving the
defaults probably will not achieve what you want without some additional
changes. Perhaps it can check the modification timestamp on the defaults file
or something to be smart about when to read from it.
Original comment by allen.po...@gmail.com
on 2 Jan 2011 at 6:08
Or mobileterminal could just use the plist for long-term storage.
Don't forget the Shortcuts. It has more issues (that I've experienced) than
the Gestures.
Original comment by paul.w.palm@gmail.com
on 3 Jan 2011 at 4:58
Original comment by allen.po...@gmail.com
on 9 Jan 2011 at 4:41
Original issue reported on code.google.com by
paul.w.palm@gmail.com
on 19 Dec 2010 at 5:04