Closed justinbeaty closed 5 months ago
Currently, the left side is used to actually show when something is happening, e.g. notes got stored. 🤔
Normally, I'd say, you could implement that yourself with the help of https://www.qownnotes.org/scripting/methods-and-objects.html#registering-a-label.
But I'd even would look at a pull request in QOwnNotes, if you would want to work on that.
Some things that come to mind:
Currently, the left side is used to actually show when something is happening, e.g. notes got stored. 🤔
Qt actually handles this by using addWidget
instead of addPermanentWidget
. I tested it by reloading the scripting engine via the menu. Usage of showStatusBarMessage
will show the message for the timeout specified, and then it reverts back to displaying the file path.
But I'd even would look at a pull request in QOwnNotes, if you would want to work on that.
Some things that come to mind:
- Resetting of that label when no note or a new note is selected would need to work better
- There needs to be a new checkbox in the Editor settings to turn that feature on
It would maybe even nice to copy the path to the clipboard when double-clicking the note path
- This action should then also be shown as status text for a status text
I'll work on a PR with these ideas in mind.
Great! 😉
Do you need any help, @justinbeaty?
I have something more with this in mind, I think I'll do it myself 😊
Hey @pbek, I haven't even started working on it other than the patch in the first post. I'll be more than happy to defer back to you.
There now is a new release, could you please test it and report if it works for you?
Under Non-Windows OSes I replace the home-directory path by ~
to save space, do you think I should also do that under Windows or would that confuse people? 🤔
@pbek This works great, I really appreciate the feature.
I'd be okay with ~
since I'm used to the convention, but it would probably confuse others. I think it's okay how it is.
I see only one small cosmetic problem, the very first slash after the document root C:/Users/Justin/Documents/Notes
is black instead of dark grey.
Possible this only happens on Windows due to whatever method returning a trailing slash on one platform vs the other. Otherwise I tested absolute vs relative, long file names, etc, and all looked good.
Thank you, so I'll leave the full path.
slash
I did it in the foreground color on purpose to get another visual clue if the contrast (or eyesight) is not so good.
Got it, then it’s working perfect for me. Thank you again for the feature!
Great! I'm thinking about turning the showing of the path on by default in the next release (it's now off by default)... Would this annoy you if you hadn't wished for the feature yourself? 😊
😉
@pbek It wouldn't annoy me, and that sort of information used to be much more commonly displayed in status bars. Anyway with it being togglable, it shouldn't annoy anyone I wouldn't think.
Great, thank you. 😊
Is your feature request related to a problem? Please describe.
I use subfolders and it would be helpful to see the full file path of the note I currently have open. Sometimes I may have notes with the same filename in multiple folders.
Describe the solution you'd like
It would be beneficial to see the full file path in the status bar, or even the relative path to the notes root folder. Something like this:
I created a patch, but it's only a proof of concept.
Describe alternatives you've considered
Unsure of any alternatives.
Additional context
This should probably be behind a setting option. Also, if the setting is off, then the label shouldn't show in the status bar else there's an empty spot you can hover over and see the tooltip. Thus, I think changing this option may require QOwnNotes to reload so we can reinitialize
MainWindow::setupStatusBarWidgets
.Output from the debug section in the settings dialog
Expand