-
Notifications
You must be signed in to change notification settings - Fork 207
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
Keep line numbers in Find All dialog always visible #918
Comments
Question to everyone who is interested in this feature. @HamRusTal. If line numbers stay put at the left side of the Find All menu, (while the text still can be scrolled horizontally), it will be very natural to collapse (and restore) the column with line numbers. It is even imaginable to resize this column, because why not.
P.S. @alabuzhev, please assign this issue to me. |
I suggest that we approach this from the UI perspective of a multi-column menu. We already have one menu in Far where there are multiple togglable columns (UI-wise, regardless of the actual under-the-hood implementation) — Drives menu. It uses Moreover, we could use e.g. |
Thank you for the ideas. I think that semantically, and visually, Find All menu with line numbers fixed in the left column is very different than Drive menu. In the latter, we have so many columns, each of which can be toggled on and off independently of others, and there is no resize. In Find All, we have exactly two columns, the left one can be collapsed, the right one cannot. As for the resizing, when there are exactly two panes (or columns) there is no point in resizing either of them. The user-perceived action is shifting the separator between the panes. I see it similar to Windows Explorer window with directory tree in the left pane and file list in the right one. The widths of the panes cannot be adjusted, but the separator bar can be moved left and right (within limits). Thus, I think that we need only one accelerator to enter resize mode, then we can use Let me prototype the functionality with some accelerator key, so that we can get the feeling of the actual behavior and better understanding of how it will be more natural to control. |
If you want an ad-hoc UX solution for the Find All menu rather than a more general one for multi-column menus, then I see no point in character-wise resizing at all. All a user might need in this regard is to hide line numbers (to get more content width) and show them again. One hotkey is enough to toggle this state, and IMHO that should be In any case I'd like to hear opinions of other people involved in FAR development (I hope they'll notice this discussion). P.S. |
You nailed it before I've had a chance to explain. :) That was exactly what I had in mind while talking about resizing. Shrinking line numbers and column numbers to the actual minimal required width is rather expensive in the current implementation, because we accumulate menu lines as we find the pattern, and we format everything into a single string every time we found the pattern. To allot exact number of characters would require two passes. Given that even now The tri-state toggle sound interesting and will cover all scenarios I need personally. I'll prototype it. Are you strong on |
It's a fair tradeoff.
I don't have any really strong feelings on this, but let me explain why I suggested |
Following up the side discussion in #789:
@HamRusTal said:
@MKadaner said:
Now I am considering the third option. Stay tuned.
The text was updated successfully, but these errors were encountered: