Giter Club home page Giter Club logo

Comments (16)

justinbeaty avatar justinbeaty commented on June 26, 2024 1

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.

from qownnotes.

justinbeaty avatar justinbeaty commented on June 26, 2024 1

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.

from qownnotes.

pbek avatar pbek commented on June 26, 2024

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:

  • 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

from qownnotes.

pbek avatar pbek commented on June 26, 2024

Great! πŸ˜‰

from qownnotes.

pbek avatar pbek commented on June 26, 2024

Do you need any help, @justinbeaty?

from qownnotes.

pbek avatar pbek commented on June 26, 2024

I have something more with this in mind, I think I'll do it myself 😊

from qownnotes.

pbek avatar pbek commented on June 26, 2024

24.5.10

  • The absolute path of the current note will now be shown in the status bar
    (for #3023)
    • You can turn on and off the display of the path in the status bar in the
      Interface settings
      • There also is an option to only show the relative path of the note
    • Different shades are used for the note folder path, the subfolder path and
      the note file name
    • The text will be trimmed if there is not enough space to show the complete path
    • If you right-click the text, you will get a context menu to copy the absolute
      note path, the path of the note subfolder or the path of the note folder

from qownnotes.

pbek avatar pbek commented on June 26, 2024

There now is a new release, could you please test it and report if it works for you?

from qownnotes.

pbek avatar pbek commented on June 26, 2024

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? πŸ€”

image

from qownnotes.

justinbeaty avatar justinbeaty commented on June 26, 2024

@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.

image

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.

from qownnotes.

pbek avatar pbek commented on June 26, 2024

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.

from qownnotes.

justinbeaty avatar justinbeaty commented on June 26, 2024

Got it, then it’s working perfect for me. Thank you again for the feature!

from qownnotes.

pbek avatar pbek commented on June 26, 2024

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? 😊

from qownnotes.

pbek avatar pbek commented on June 26, 2024

24.6.0

  • The absolute path of the current note will now be shown in the status bar
    by default (for #3023)

πŸ˜‰

from qownnotes.

justinbeaty avatar justinbeaty commented on June 26, 2024

@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.

from qownnotes.

pbek avatar pbek commented on June 26, 2024

Great, thank you. 😊

from qownnotes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.