George Joseph
d2288ee787
Add support for os_window_name in startup sessions.
...
You can now specify `os_window_name` in addition to `os_window_class` in
startup sessions. It works for the initial session as well as new sessions
started with `new_os_window`.
Updated documentation in overview.rst to add `os_window_name` in the
Startup Session examples.
Although not related to this feature. The documentation in launch.py
was updated to note that the `launch --type` `tab` and `os-window` options
aren't supported when launch is invoked from a startup script. There's
already a note to that effect in the "Startup Sessions" section in
overview.rst but if you're looking at the launch syntax page like I was,
you wouldn't realize the limitation. This was throwing me for a loop while
wotking on this PR.
Resolves : #8387
2025-03-02 14:10:17 -07:00
Kovid Goyal
da1626090a
Update codebase to Python 3.10 using pyupgrade
2025-02-03 10:56:50 +05:30
Kovid Goyal
b479089619
Fix a regression in the previous release that broke use of the cd command in session files
...
Fixes #7829
2024-09-06 14:50:15 +05:30
Kovid Goyal
f1d0d0949b
Run pyupgrade to update the codebase to python 3.9
...
Gets rid of a lot of typing ugliness by using type annotations on
builtin types
2024-07-31 07:55:27 +05:30
Kovid Goyal
681a2b7b28
Sessions: A new command focus_matching_window to shift focus to a specific window, useful when creating complex layouts with splits
2024-07-19 14:54:44 +05:30
Kovid Goyal
9be6b9c374
When using --single-instance allow creating sessions with only background processes
2024-06-17 08:01:43 +05:30
Kovid Goyal
88b7595929
Ignore startup_session when kitty is invoked with command line options specifying a command to run
2024-03-10 09:41:08 +05:30
Kovid Goyal
e656a75d5e
Move implementation of --hold into Child
...
DRYer. Also fixed use of --hold with launch --cwd=current
2024-01-06 13:14:48 +05:30
Kovid Goyal
3c4f2aa1b8
shlex.split -> shlex_split
2023-12-02 15:17:08 +05:30
Kovid Goyal
77292a16d6
Make shebangs consistent
...
Follow PEP 0394 and use /usr/bin/env python so that the python in the
users venv is respected. Not that the kitty python files are meant to be
executed standalone anyway, but, whatever.
Fixes #6810
2023-11-11 08:32:05 +05:30
Kovid Goyal
f098240ace
...
2023-10-20 08:43:45 +05:30
Kovid Goyal
4b997a961c
A new option single_window_padding_width to use a different padding when only a single window is visible
...
Fixes #6734
2023-10-20 08:37:45 +05:30
Kovid Goyal
0fb1f17af9
Have --hold wait at a shell prompt
2023-06-26 11:21:57 +05:30
Kovid Goyal
5ff1dadf0d
Allow using --session=none to override startup_session
...
Fixes #6131
2023-03-25 10:44:34 +05:30
Kovid Goyal
de188faf55
Fix #6048
2023-02-22 19:51:33 +05:30
pagedown
ba83ce7b10
macOS: Display the newly created OS window in specified state
...
Fix the maximized window can't occupy full screen space when window
decoration or title bar is hidden.
Fix resize_in_steps being applied even when window is maximized.
Allows to specify `os_window_state` in startup session file.
2023-02-18 14:02:19 +08:00
Kovid Goyal
60791bb57b
Session files: Expand environment variables
2023-01-23 17:34:53 +05:30
Kovid Goyal
6b8e5ea225
Rename kitty-tool to kitten
...
It's easier to type, and cuter.
Also, most, if not all of the TUI parts of
kitty's kittens will eventually be re-written into kitten.
The only downside I can see is that we cant tab complete kitty
anymore, but hopefully there will be less reason to run kitty
from the shell as command line tools migrate to kitten.
Meowrrrr!!!
2023-01-14 15:44:52 +05:30
Kovid Goyal
7fe5d7b58f
Replace isort with ruff
2023-01-09 16:47:42 +05:30
Kovid Goyal
f5d2c35755
Move implementation of +hold to Go
...
No need to pay python interpreter startup cost for --hold
2022-12-01 22:34:56 +05:30
Kovid Goyal
6741ac2087
Sessions: Allow controlling which OS Window is active via the focus_os_window directive
2022-09-10 08:27:36 +05:30
Kovid Goyal
f15a2f0c1f
Change --session to resolve relative paths from the kitty config dir
2022-08-09 12:36:16 +05:30
Kovid Goyal
646a524c8e
Sort imports
2022-06-14 20:06:12 +05:30
Kovid Goyal
f8d01d2c4f
Use the same parser for resize_window actions and session setting
2022-06-14 20:03:21 +05:30
Kovid Goyal
1d846f3744
Cleanup previous PR
...
Merge branch 'session-resize-window' of https://github.com/sirno/kitty
2022-06-14 19:59:01 +05:30
Nicolas Ochsner
6bbe58f876
Change to pass window specs.
2022-06-14 12:28:41 +02:00
Nicolas Ochsner
36719fb086
Cleanup.
2022-06-14 11:23:35 +02:00
Nicolas Ochsner
78fd7a8458
Enable resizing in session files.
2022-06-14 11:09:26 +02:00
Kovid Goyal
c9ef4aa8c8
Sessions: Fix os_window_size and os_window_class not applying to the first OS Window
...
Fixes #4957
2022-04-12 21:38:29 +05:30
Kovid Goyal
72b1996423
Allow different kinds of cwd requests
2022-03-17 10:24:34 +05:30
Kovid Goyal
8f77cc65e2
Use a full window object rather than a child PID to get cwd
...
This allows implementation of more sophisticated algorithmhs
for getting the cwd
2022-03-15 07:58:57 +05:30
Kovid Goyal
6546c1da9b
run pyupgrade to upgrade the codebase to python3.6
2021-10-21 12:43:55 +05:30
Kovid Goyal
166ea9deb9
A new watcher option for kitty.conf that replaces the old --watcher cli flag
...
Applies to all windows, not just initial ones.
2021-09-29 14:01:30 +05:30
Kovid Goyal
2d7032973c
Change the semantics of --title slightly
...
Now it no longer overrides the titles of windows/tabs created in the
session. This allows windows/tabs to have their own titles while fixing
the OS Window's title.
2021-08-03 09:51:53 +05:30
Kovid Goyal
6d7df1c5e8
Refactor configuration file parsing
...
Now the time for importing the kitty.config module has been halved, from
16ms from 32ms on my machine. Also, the new architecture will eventually
allow for auto generating a bunch of python-to-C boilerplate code.
2021-05-31 17:40:49 +05:30
Kovid Goyal
5470dd74bd
Move options code into its own directory
2021-05-31 17:40:48 +05:30
Kovid Goyal
d7aa9952d8
Fix a regression that caused using the `title` command in session files to stop working
...
Fixes #3676
2021-05-31 09:31:29 +05:30
Kovid Goyal
fe94f4cbb4
Move type parsers for config into own module
2021-05-24 22:29:28 +05:30
Kovid Goyal
cbf33fa14b
Fix #3523
2021-04-23 16:23:13 +05:30
Kovid Goyal
35517d3e6f
Allow using the full launch command in session files
...
Note this is slightly backward incompatible.
2021-01-31 11:37:00 +05:30
Kovid Goyal
26974b1f3a
Dont ignore --title when using an empty session
...
Fixes #3055
2020-10-25 18:53:57 +05:30
Kovid Goyal
392c31f5fe
Allow specifying watchers in session files and via a command line argument
2020-08-23 10:41:36 +05:30
Kovid Goyal
4b0724530e
Fix #2912
2020-08-11 14:19:32 +05:30
Kovid Goyal
55e15dc79e
Properly type check os window initial size function
...
Also use the sizes specified int he session file in preference to those
specified on the command line. Fixes #2909
2020-08-11 09:28:53 +05:30
Kovid Goyal
f6ece6522e
Fix a regression that broke specifying OS window size in the session file
...
Fixes #2908
2020-08-10 21:55:54 +05:30
Kovid Goyal
8093d70643
Allow setting the class for new OS windows in a session file
2020-07-18 12:11:41 +05:30
Kovid Goyal
50d9718c68
Start work on refactoring management of windows
2020-05-12 22:43:53 +05:30
Kovid Goyal
c69b8870d2
Allow individually setting margins and padding for each edge (left, right, top, bottom)
2020-04-19 09:36:26 +05:30
Kovid Goyal
1f1b52b580
Fix specifying options for layouts in the startup session file not working
...
Fixes #2520
2020-04-09 12:40:09 +05:30
Kovid Goyal
382c31ddf2
Use a stub rather than TYPE_CHECKING
2020-03-15 13:27:40 +05:30