heyman / heynote

A dedicated scratchpad for developers
https://heynote.com
Other
3.86k stars 194 forks source link

Feature request: Open editor over fullscreen applications #178

Closed anthonybench closed 7 months ago

anthonybench commented 7 months ago

Have you searched existing Github issues to see if someone has already requested this feature? Yes

*TLDR When I open heynote (macos) in a virtual desktop hosting a fullscreen application window, it jumps back to an open desktop. There are other note apps that pop up the editor above anything/everything else, and that behavior allows for swift use, would be awesome here

Additional context Macos Sanoma

heyman commented 7 months ago

Yeah, having it popup on top sounds better. I'm not sure how that can be achieved though. I never use the fullscreen mode on Mac because of the extremely irritating "screen sliding" behaviour that seems to occur a lot.

anthonybench commented 7 months ago

@heyman do you mean when you have 1 or more fullscreen-app windows, and it jerks back to one with an open desktop when you run certain applications? Happens to me when i open zoom meetings, hate that.

Relevant to hear, looking through the feature request, I did see something effectively identical to this request, and the maintainer's response was to use a window manager, as this is only an issue on macos.

Even if it is only an issue on macos, it would still be amazing to implement out-of-the-box support for "float over everything" behavior. I implore anyone to fetch "Scrap Paper" from the app store and try it out and see what i mean, I'd go so far as to say that a key advantage/reason for having a note app is the ability to pull it up and hide it where ever you are, since the scenario of wanting to write something while you're reading from a fullscreen application is highly plausible.

I love this app, I saw it mentioned in Console news letter and loved it immediately, if they added this for mac users, I'd be thrilled.

heyman commented 7 months ago

I found this and managed to get Heynote to stay floating on top of a fullscreen window using the following code:

win.setVisibleOnAllWorkspaces(true, {visibleOnFullScreen: true})

However, when entering fullscreen, the Heynote window will automatically appear on top. And the only way to hide it is to either minimize or close the window (removing focus from the Heynote window by clicking on the fullscreen app would not hide Heynote).

I believe the visibleOnFullScreen feature was implemented for the use case of having a program that would always float on top of all other programs, which doesn't really match our use-case.

heyman commented 7 months ago

One option could be to add an "Always on top" option, which - when enabled - would make Heynote always stay floating on top of other windows. It would solve #38, but it would do more than just allow Heynote to appear on top of fullscreen workspaces.

heyman commented 7 months ago

I've implemented an "Always on top" setting in #179. Seems to work on Mac, but needs to be tested on Windows and Linux as well.

anthonybench commented 7 months ago

@heyman That's awesome, I see your ci/cd steps pass on it, will that make into an upcoming release?

heyman commented 7 months ago

It needs to be tested on Windows and Linux to see that it works and doesn't mess up showing/hiding Heynote using the global hotkey. Once that's done, I'll merge it, and it'll make it into a new version.

anthonybench commented 7 months ago

@heyman I just realized from your comment, is the global hotkey suppose to hide heynote on mac? It doesn't hide for me (Sonoma).

heyman commented 7 months ago

@anthonybench Interesting. If Heynote is focused, it's supposed to hide the app. It does for me on Ventura (13.5.1). Maybe I need to upgrade and test it out. Just to make sure, if you press the global hotkey multiple times, Heynote just opens the first time and then stays open?

anthonybench commented 7 months ago

@heyman For me: Hitting the global hotkey (made sure no other application is also mapped to that hotkey) brings focus to heynote. └▶ Hitting it again will bring focus back to the application that last had it.

Would be awesome if it hid/minimized heynote.

Love it though, already use it a ton!

heyman commented 7 months ago

Ah, that's the intended behaviour. With the "Always on top" setting turned on, it should hide though.

anthonybench commented 6 months ago

@heyman Hey I'm currently on 1.7.0 of heynote on MacOS Sonoma 14.3.1, and it still does not have the "on top / hide" behavior for full screen apps. Perhaps I read the release notes wrong for 1.7.0, and it's not suppose to be there yet?

anthonybench commented 6 months ago

For what it's worth, I power-cycled my mac too.