Skip to content

new_os_window outside kitty shortcuts #1242

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

Closed
ggsalas opened this issue Dec 16, 2018 · 11 comments
Closed

new_os_window outside kitty shortcuts #1242

ggsalas opened this issue Dec 16, 2018 · 11 comments

Comments

@ggsalas
Copy link

ggsalas commented Dec 16, 2018

Hi, I would like to know if there is a way to create a new kitty window while I'm not using kitty.

The usual approach on macos is click the app icon on the dock and select "new window" but I see not option for that:
image

Alternative: Can I add a global shortcode to open a new kitty window?

Thanks

@Luflosi
Copy link
Contributor

Luflosi commented Dec 16, 2018

Yeah, that's not implemented currently. But you should be able to click on the kitty icon and use cmd+n to open a new window.

@ggsalas
Copy link
Author

ggsalas commented Dec 17, 2018

Oh, thanks for the clarification. I was trying to figure out a way to open a new window without need to go to the kitty app. I can wait then to the new feature. Thanks

@kovidgoyal
Copy link
Owner

Not sure what you are asking for, an item in the dock menu? You can use kitty --single-instance then running kitty --single-instance from any terminal will open a new os window in the existing kitty instance, automatically.

@ggsalas
Copy link
Author

ggsalas commented Dec 17, 2018

Hi @kovidgoyal let me explain better:
At this moment I'm using macos and I use many desktops. If I'm at desktop 3 and I need a new kitty window I need to:
1- go to kitty app (on desktop 1, for example)
2- create a new kitty window
3- move the kitty window to the desktop 3

My doubt is if currently there is a quicker way to do that.
Thanks

@kovidgoyal
Copy link
Owner

Just run kitty as

kitty --single-instance

then you can open new windows by running it again.

@Luflosi
Copy link
Contributor

Luflosi commented Dec 17, 2018

Or, while in desktop 3, click the kitty icon, press and hold the command key and press the n key. That should be easier than kitty --single-instance.

@jacwah
Copy link
Contributor

jacwah commented Dec 17, 2018

while in desktop 3, click the kitty icon, press and hold the command key and press the n key

This still opens the new window on desktop 1 on my machine. Is this a kitty bug? I tested with Firefox and Chrome and they both seem to open new windows on the current desktop instead.

@Luflosi
Copy link
Contributor

Luflosi commented Dec 17, 2018

Does it switch to desktop 1 right when you click the icon? We might have some settings set differently. I have the second checkbox in mission control not set. That option translates to something like "switch to space containing program when switching to it". @kovidgoyal With that option set I think it's currently impossible to do what @ggsalas would like to do. Do you know how to add an option to open a new window in that context menu?
This is what it looks like for my text editor:
screenshot

@ggsalas
Copy link
Author

ggsalas commented Dec 17, 2018

@kovidgoyal sorry my ignorance, but I don't know how execute this command without open a terminal. If I need go to the terminal I can do command+n

@Luflosi I see same behavior that @jacwah. For me for all apps when I press the app icon on the dock goes to the app (on the desktop that the app are)

The option "New Window" on the context menu would be great @Luflosi

@jacwah
Copy link
Contributor

jacwah commented Dec 17, 2018

I have disabled the mission control setting. The switch occurs when the window is opened. After noticing that it only happened with the app version, I realized that Options->Assign To This Desktop was set, causing all windows to be opened in desktop 1. Stupid me. Maybe the same for @ggsalas ?

A "New Window" option in the dock is pretty standard, I agree it makes sense. I'm working on a patch.

@ggsalas
Copy link
Author

ggsalas commented Dec 17, 2018

I have tried deactivating the second option of mission control and it works as expected. But not seems very comfortable to me. @jacwah I have not set kitty to a desktop, thanks.

jacwah added a commit to jacwah/kitty that referenced this issue Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants