Bug 410881 - Add option to let status bar not be hidden by search/goto/replace widgets
Summary: Add option to let status bar not be hidden by search/goto/replace widgets
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: search (show other bugs)
Version: 19.04.2
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2019-08-13 18:09 UTC by Alexander Potashev
Modified: 2022-03-23 14:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2019-08-13 18:09:37 UTC
SUMMARY
Cannot see current cursor coordinates when search bar is open. The search bar appears on top of status bar, it becomes totally hidden.

STEPS TO REPRODUCE
1. Press Ctrl+F
2. 
3. 

OBSERVED RESULT
No current line number on screen.

EXPECTED RESULT
Need current line number somewhere on screen.

SOFTWARE/OS VERSIONS
Operating System: Fedora 30
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.4
Kernel Version: 5.1.17-300.fc30.x86_64
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15,4 ГиБ

ADDITIONAL INFORMATION
Comment 1 Ahmad Samir 2019-08-15 15:42:09 UTC
If you only need the line number (and not the column number), try enabling Settings -> Configure kate -> Appearance -> Borders -> Show line numbers.
Comment 2 Dominik Haumann 2019-08-16 14:53:20 UTC
Alexander, we are aware of this and I'd argue this is by design. What is missing in your report is why do you need to know the line and column when you search for text? What is the use case?
Comment 3 Alexander Potashev 2019-08-16 18:44:05 UTC
I know I can enable the line numbers, but I prefer not to enable them because I'm too lazy to change the default settings.

Even after I enable line numbers, it won't be perfect UX because I'm used to looking at the status bar for the current line number, not at the column to the left of the editor.

Use case:
 1. I search for something in the file, then
 2. need to check the line number of either pattern occurrence or some other text.
 3. Don't want to spend my time on another "Ctrl-F + Esc" before seeing the current line number. (The Ctrl+F is necessary because I could unfocus by mouse click inside the editor - my habit, could be OCD.)
Comment 4 Nate Graham 2019-08-16 18:50:09 UTC
They are actually enabled by default now. :)
Comment 5 Ahmad Samir 2019-08-16 21:00:41 UTC
(In reply to Dominik Haumann from comment #2)
> Alexander, we are aware of this and I'd argue this is by design. What is
> missing in your report is why do you need to know the line and column when
> you search for text? What is the use case?
For me, trying to work on some ktexteditor/kate code that has to do with KTexteditor::Range/Cursor classes, where, when I am testing after compiling, I have to keep closing the searchbar (either the incremental or the power one) to see the column number...

(In reply to Alexander Potashev from comment #3)
[...]
>  3. Don't want to spend my time on another "Ctrl-F + Esc" before seeing the
> current line number. (The Ctrl+F is necessary because I could unfocus by
> mouse click inside the editor - my habit, could be OCD.)
FWIW, pressing Esc will close the search bar even if it doesn't have focus.
Comment 6 Dominik Haumann 2019-08-17 06:35:45 UTC
Ok, let's assume you have a point. How should the workflow be improved to resolve this?
Comment 7 Alexander Potashev 2019-08-18 21:36:28 UTC
(In reply to Dominik Haumann from comment #6)
> Ok, let's assume you have a point. How should the workflow be improved to
> resolve this?

Well, we could revive the previous behaviour: the search bar appears in a separate row above the statusbar, just like Okular and Konqueror do.
Comment 8 Christoph Cullmann 2019-08-24 15:02:55 UTC
Then we again waste space and for the one-liner variants your view jumps around on showing find/goto/....

The current behavior is there for some reason and I not really see the concrete need to change it.

Line numbers are now "on" per default.
Comment 9 Alexander Potashev 2019-08-24 20:57:40 UTC
I think this discussion needs feedback from UX experts.
Comment 10 Nate Graham 2019-08-24 22:23:36 UTC
Yeah, I think it would make sense to show and hide a separate search bar rather then replacing the contents of the status bar with the search field. Pretty much all other apps I use show and hide a separate search bar--including our own!
Comment 11 Christoph Cullmann 2019-08-24 22:31:44 UTC
Alone that showing search or goto doesn't resize my views is enough of a reason I will not alter this, sorry. We tuned that years ago to behave that well (the only issue is replace, that needs a two line widget).
Comment 12 Christoph Cullmann 2019-08-24 22:45:48 UTC
If somebody provides a patch to make it an configurable feature to have the status bar always visible and the other bottom widgets located "above" it (default off), I would be willing to accept that.

If nobody steps up, we can expire this request some when in the future.
Comment 13 Waqar Ahmed 2022-03-23 14:33:06 UTC
Fixed in 5.92