-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic window opening direction #727
Comments
Yes I was actually thinking of something similar for #725. To have a new "mode" where you can switch between vertical and horizontal for new window placement. But it makes total sense to extend this to e.g. above, below, right and left. |
Glad to hear that :) As, most of the time, the default behavior of
I think this solution is fine when opening a new window for the currently focused application. So it's worth adding it. But it has a drawback, I'm also using Switcher and in this case that does not work.
then Switcher can be invoked transparently, the window is opened at the right place and the placement is restored. |
SublimeText does something similar with (for lack of a better term) two-phase keyboard shortcuts. For example, to toggle the sidebar: The Helix editor also does this (I think Kakoune did it first) with So, this could work in PaperWM like this (for example):
In this circumstance, |
@distefam I'd be also very glad if we have a command window. Let's imagine that Shift+Super+p trigger something like: (very dumb proof of concept in html page.html.zip |
Just a note here that what you're describing above (two-phase shortcuts) are (AFAIK) outside the scope of Gnome extensions, mostly because extensions are run by gnome-shell process, and not a separate process (e.g. GTK or otherwise) like applications. Sounds cool, but I wouldn't be interested in implementing two-phase keybinds - the keybind / action system in PaperWM is already quite complex and there's complexities around key timing contexts, repeats, clash detection etc. Anyways, if someone would like to implement a different keybinding approach we'd consider any PRs that could be provided. The most that I would implement would be keybinds for setting the direction (e.g. left,right,above,below) and (maybe) a clickable icon, similar to the focus mode icon I implemented some time back. Otherwise the additional complexities involved wouldn't be justified by this feature for me (which I don't use very much). However, as I mentioned, if someone wants to give a different approach (e.g. something more than keybind shortcuts and an icon) - I'd happily consider their PR. |
I'm mostly of the same opinion as @jtaala While I also use multi phase shortcuts in Emacs with evil mode (so vim keybindings). They are mostly useful because that means you don't need to press multiple keys at once (like in normal emacs). But since we always have to press e.g. I also think that key chords don't have much benefit over adding another "mode" (like the window focus mode) and keybindings to switch it. Since they almost act the same. Except with a mode it would remember the last direction. Another approach for keybindings for the future could be that we expose them externally in some way so the actions can be triggered from outside of PaperWM. E.g. through DBus. Then you can use an external program for e.g. the section menu that was mentioned. |
I apologize if my last post was sounding like "you must do it this way". I'm really grateful for all the work you're doing.
For the user I am, that would be great.
At first thought, as most of the time the default behavior is fine, the fact that modes are not transient sounds like a drawback.
That would be a cool thing. Thanks a lot. |
Hey @bilboquet, I'm finding more and more instances of where this feature would come in handy. I'm working on an an early implementation similar to Note, I've just added an icon (next to Cheers. |
As this relates to #679 and #526 (@joeyh): does anyone use the I implemented them at the time since I thought "why not?" - but in practice I don't think they're very practical. Reason why I'm asking is that it would simplify things a lot if they were removed - e.g. having only Then we could have one shortcut keybind Alternatively, we could leave them and add two keybinds ( Thoughts? |
Although, I guess those options might be more useful given we will soon be able to switch quickly between them...? |
Another alternative is that could allow users to set (in advanced preferences) the modes that will be cycled through? By default we could just have |
Hey @jtaala |
No probs. P.S. I kept those two other settings ( See it in action here: Screencast.from.2024-04-19.08-06-43.webm |
I use very often
super+return
mostly for terminal and Firefox windows (since I'm using PaperWM I don't use tabs anymore and spawn and close windows when needed).Recently, an option to open the new window on the left was added #679. It's cool but too static for my workflow, most of the time opening to right is fine for me.
What I was about to suggest is to add a shortcut, let's say
super+shift+return
to open the new windows on the left.But maybe this idea can be generalized a bit:
and even solve Shortcut to open new window vertically #725
In any case, a user feedback about the "open direction" could be given like what has been done to show the user the current focus mode (aka an icon in the top bar)
Many thanks
The text was updated successfully, but these errors were encountered: