mvidner / ctoolu

Clipboard Tool, Universal
2 stars 1 forks source link

Chaining should be skipped where possible #7

Open aspiers opened 12 years ago

aspiers commented 12 years ago

If I select bnc#123456 then it will first pop up a menu offering only Bugzilla.Novell.Com or Cancel. If I select Bugzilla.Novell.Com then it expands the clipboard selection to the full URL, which causes a second pop-up menu with some available actions. In this case where the first step in the chain only has one option (or two including Cancel) then I think it should automatically skip to only displaying the second menu. However this should be done without disturbing the clipboard selection, in case I really want to copy and paste bnc#123456 rather than the expanded URL.

aspiers commented 12 years ago

Also, even without chaining between two popup menus, if a single menu is popped up manually (i.e. via ctoolu-activate) then if the menu only has one option (i.e. two including Cancel) then that action should be taken automatically instead of popping up the menu - in this case, the inconvenience of offering the user the chance to cancel outweighs the benefits.

aspiers commented 12 years ago

Skipping chaining is especially important when automatic activation is disabled, otherwise you need to invoke ctoolu-activate twice.