-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PATCH] Mouse click on column heading sorts panel on that column #397
Comments
Patch to screen.c to allow sorting on panel columns via mouse click |
|
|
Replying to bnh (#397):
It's a semi-solution. In addition to mouse, the shortcut should be provided. |
|
|
|
reated branch 397_mouse_click_column_heading
initial [dac1c1c21fcff330582c4d66cd13dcbd2fab45ac]
review, please. |
|
See [45c0931f997eeddb327a7defe9a8ffa48ae2c59e]
Added function and key binding for toggle sort types.
For review, you may change mc.keymap:
|
|
Fix toogle sort after select sort type from dialog. |
Work complete.
For example, you may change mc.keymap like:
Feel free to review and vote.
After vote branch will have 'on hold' status until release out 4.7.0-pre3. |
PanelSelectSortOrder does not change sort order and sometimes show incorrect sort order.
PanelToggleSortOrderPrev and PanelToggleSortOrderNext works good (but order of changes looks strange). |
Now all fixed. See:
Review, please. |
|
new commits into branch:
Review. |
|
|
|
I'm not sure if using the &Hotkey for the indicator in the top left corner is the best choice. Hotkey is choosen for it's uniqueness in dialog and sometimes it is not quite representative.
Something else: in screen.c line 1329, panel_paint_sort_info()
hotkey[1] = '\0';
doesn't seem to me very UTF-8 safe. |
I'm not sure if using the &Hotkey for the indicator in the top left corner is the best choice.
In second variant need to inform all translators about one symbol in *.po files (what this mean).
How better? Is someone have third variant?
All ok. in previous line:
'id' will not transform into UTF-8 and never translated. This is id of field. For example, see line 436, 448 etc. In these lines 'id' - it's a first string constant. |
Reopen because need to fix indicator of sort types. |
|
Created branch 397_i18n_sort_indicator
Initial [7088ee899ae8c1a85ae74b49ee7c3689c3aa7c95]
Review, please. |
It's ugly solution that violate DRY principle, and require |
Changeset for rebase:6a3b517a955d07c44377b3626c9e362bd4fdc97d
dmartina, if this not hard for you: review too, please. Is branch contain good way?
iNode: is you have solution? |
Replying to slavazanko:
I would vote for the second one.
See this in args.c. The comment gets into po files so that translators don't have to read source.
I trust you! |
Replying to slavazanko:
I have no time to compile and full check it now... I took a look at the patch and it seems OK
TRANSLATORS: this is indicator for 'Change time' sort mode
I would remark the one character length. Something as : |
[d88182b5d99e1b2ab7cfec93591f288885527ba9]
This code now removed as deprecated. :)
Yepp, this works as well in my patches too.
After merge branch into 'master', I'll update all *.po files directly into master (to avoid lot of possible conflicts in merge). |
|
|
There is missing line in one of structs:
|
Replying to slavazanko:
Too many trailing ", it won't build:
|
Replying to slyfox:
Fixed directly in master. [e2e549d] |
|
|
|
If asking for one character translations may seem a bit weird, a context may be given. I'm attaching the patch. Anyway, I don't dislike the actual solution. Advice for translators should stay in any case. |
In this ticket, I dislike the double i18n stuff. For example:
I wonder, is there any way to avoid that? |
Replying to andrew_b:
Trim any '&' after runtime translation. But keep in mind that these single word translations may cause trouble when used in different contexts (ie.: different shortcuts or even available length in a menu or in a dialog), so more use of the Q_ macro would be quite convenient. |
I have tried to change the sort indicators to have up/down arrows instead of tildes and it looks really nice. ¿What would be the best choice? ¿System or user skins? I think it might at least be included as part of the double-lines skin. |
Hm... Totally I agree with this. 'Standart' skin must be untouched (or must contain very simple skin for show on many systems as this possible). In opposite, 'double-lines' skin will contain enhanced skin as example of usage.
I think, need to rename 'double-lines' skin into 'featured'... or need to create new repo-inside file... what better? :) |
|
I created tickets:
Therefore this ticket is closed. |
|
Important
This issue was migrated from Trac:
bnh
(bnhunsaker@….com)i18n
Attached patch that adds the following 2 enhancements:
1) Using the mouse to click on a panel column heading re-sorts
2) added a button "." next to "v" that toggles the display
Note
Original attachments:
bnh
(bnhunsaker@….com) onJun 9, 2009 at 21:00 UTC
dmartina
(dhmartina@….es) onOct 12, 2009 at 9:34 UTC
The text was updated successfully, but these errors were encountered: