A Page Title To Window
This is a feature request for the MacOS app.
Please set the title of the window to the 'page' WorkFlowy is displaying.
This happens automatically in browsers, but when you've embedded a WebView in an app the developer has to handle setting the window title since the WebView doesn't know where it is.
It's pretty easy to do, you just have to add an observer to the webkit that will get called when ever the WebView title attribute changes. Here's a sample:
webView.addObserver(self, forKeyPath: #keyPath(WKWebView.title), options: .new, context: nil)
When the observer method gets called, just update your window's title.
I need this because I use a time tracking app that notes the title of the window that is open. In the WorkFlowy App's case, that is always 'WorkFlowy'. This makes it hard to know what I was actually working on when I spent an hour in WorkFlowy.
Thanks.
PS: Code snippet was #8 on this page. #13 might be relevant for you too.
https://www.hackingwithswift.com/articles/112/the-ultimate-guide-to-wkwebview
-
Hi Ron,
Thanks for all those details. This seems to be a very specific workflow on your part, and perhaps not something that would be used by other users?
You have noted that the browser app has what the desktop app is missing. I'm sure there's a good reason you're using the desktop app (offline?). Just a curiosity... is there anything prohibitive about the browser app that might serve your time-logging workflow/ needs? Is it a matter of better focus for you via the desktop app?
-
I like to have WorkFlowy open in its own window that isn't tied to my browser on a second screen. I guess I could use a different browser so things wouldn't be connected to each other. It is often distracting to have a browser open when I'm trying to focus on a project.
It isn't a huge thing to my workflow as I can often tell what project I was working on when WorkFlowy is in the front by what else I was doing, but titles would give me grandulary if I'm working on two things at a time in WF.
On the other had, the change to WF desktop on the Mac seems pretty simple and how people would expect it to work.
It won't stop me from using WF either way.
Ron
Please sign in to leave a comment.
Comments
2 comments