MikeySteel / mobileterminal

Automatically exported from code.google.com/p/mobileterminal
0 stars 0 forks source link

Shortcut Menu order #236

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. using the Shortcut Menu
2.
3.

What is the expected output? What do you see instead?
Shortcuts appear in order added.  Requesting enhancement to allow order 
sorting.  Was possible back when there was an XML menu.plist.  New plist format 
is beyond user editing.

What version of the product are you using? On what operating system?
Not listed anywhere in mobileTerminal; iOS4.2.1 on iTouch 2G

Please provide any additional information below.
Using XML plists for the Shortcut Menu and Gestures would allow for savvy 
users' fixing / editing.

Original issue reported on code.google.com by paul.w.palm@gmail.com on 19 Dec 2010 at 5:04

GoogleCodeExporter commented 8 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

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago

Original comment by allen.po...@gmail.com on 9 Jan 2011 at 4:41