Page 1 of 1
Make cm_ commands "class based"
Posted: 2013-10-16, 20:28 UTC
by ZoSTeR
When looking at the INC file the commands aren't very logical.
E.g.:
cm_SelectFiles
cm_ExchangeSelection
cm_ClearAll
cm_SaveSelection
It might be more logical to use:
cm_Selection_Files
cm_Selection_Exchange
cm_Selection_ClearAll
cm_Selection_Save
I guess this might be hard to change but maybe some aliases won't hurt.
Posted: 2013-10-16, 20:36 UTC
by Balderstrom
Why not use: cm_CommandBrowser ?
Posted: 2013-10-16, 20:51 UTC
by ZoSTeR
When you select a command from the browser it makes sense but reading those commands elsewhere not so much (for non TC afiados).
Posted: 2013-10-16, 21:00 UTC
by Balderstrom
You know the command browser also has a filter at the bottom right? so say you want to see "selection", put that in the filter box.
Posted: 2013-10-16, 21:07 UTC
by ZoSTeR
Yeah I know i can find everything in the browser. This is about naming or "classing" the commands for their purpose.
E.g: cm_ClearAll
Does it clear my lister, my windows, my car or my c: drive?
*edit: the "easier to find" -> "more logical" in the first post
Posted: 2013-10-16, 21:37 UTC
by Balderstrom
Ah, well that would break existing installs/menus/scripts/etc. And TC/Mr.Ghisler is pretty fanatical about backwards compatibility -- possibly too much so, as I think many suggestions that in the end would improve the usability of TC are not considered.
Posted: 2013-10-16, 21:43 UTC
by ZoSTeR
That's why i suggested an alias system. I guess the "to find" was misplaced. See edit.