Kovid Goyal
fe94f4cbb4
Move type parsers for config into own module
2021-05-24 22:29:28 +05:30
Kovid Goyal
c827a29a7b
Use the new get_options() function
...
Nicer than carrying around opts objects everywhere
2021-05-24 12:29:11 +05:30
Kovid Goyal
eeaf67079a
DRYer
2021-05-11 10:33:01 +05:30
Kovid Goyal
dfbe1bd234
Add debug prints for mouse events
2021-05-11 10:22:30 +05:30
Kovid Goyal
1e89cdc055
Get middle click paste working and dont trigger when mouse is grabbed
2021-05-11 09:20:27 +05:30
Kovid Goyal
a7933018cb
Start work on intercepting mouse events
2021-05-10 07:16:43 +05:30
Kovid Goyal
ca0b42c3bd
oops
2021-05-10 06:28:03 +05:30
Kovid Goyal
cfd731c376
Merge branch 'background-process-always-inherit-env' of https://github.com/trygveaa/kitty
2021-05-10 06:11:31 +05:30
Trygve Aaberge
de1015f6ac
When running a background process, always inherit env
...
subprocess.Popen inherits the current environment if you pass env=None,
but only sets the environment you pass when you pass something else.
This causes an issue with using launch with --stdin-source and
--type=background, e.g. that DISPLAY is not set so you can't launch
graphical processes. Therefore, we have to include os.environ when we
pass an env to Popen.
Fixes #3602
2021-05-09 20:52:25 +02:00
Kovid Goyal
9a6c2aa1ea
Add a few more special command line arguments for launch
...
Now all ``KITTY_PIPE_DATA`` is also available via command line argument substitution
Fixes #3593
2021-05-09 07:46:37 +05:30
Kovid Goyal
bf462e535a
Fix focus changes not being sent to windows when focused window changes because of the previously focused window being closed
...
Fixes #3571
2021-05-05 14:45:57 +05:30
Kovid Goyal
5cf228e362
Fix tab activity tracking not working unless there is some other activity in tab bar as well
...
Fixes #3571
2021-05-05 14:30:16 +05:30
Kovid Goyal
8d743e9511
Fix is_self
2021-04-13 08:54:45 +05:30
Kovid Goyal
1e6fe7785a
Dont set the EDITOR env var in child processes
...
It isnt really needed, since the various kittens dont rely on it
anymore, instead calling get_editor() to get the path to the editor.
Has the nice side-effect of not needing to run the shell at startup
to read its environment. Now the shell is only run if the user calls
the edit config file kitten. Fixes #3426
2021-03-29 11:56:48 +05:30
Kovid Goyal
f70c9842f5
macOS: Allow opening script and command
...
Fixes #3366
2021-03-10 21:33:29 +05:30
Kovid Goyal
1ded78a98c
A new command to show the env vars of the kitty process
2021-03-03 16:04:08 +05:30
Kovid Goyal
b811976018
Ensure global shortcuts are never sent to children
...
This was happening with ctrl+tab and ctrl+shift+tab because cocoa eats
these and so glfw has a workaround to always send them. If they are
added as global shortcuts, for exmaple for next/previous tab they were
then being sent to children
2021-02-28 21:42:57 +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
Daniel Lee Harple
43fafd85f8
Allow cancellation of "detach_window ask"
2021-01-30 19:21:11 -05:00
Kovid Goyal
aa63bf71cf
macOS: Add menu items to close the OS window and the current tab
...
Fixes #3246
2021-01-17 06:49:25 +05:30
Kovid Goyal
027c5a57f1
Work on porting kittens to use new key infrastructure
...
Also move type definitions into their own module
2021-01-16 20:52:14 +05:30
Kovid Goyal
6b2ffc774f
Port shortcut and sequence matching code
2021-01-16 20:52:14 +05:30
Kovid Goyal
b94d2b27f4
Refactor single key config parsing to use a special type
2021-01-07 18:07:17 +05:30
Kovid Goyal
9ae198ef8f
Double clicking on empty tab bar area now opens a new tab
...
Fixes #3201
2021-01-02 11:45:18 +05:30
Kovid Goyal
3162d391cc
Start work on disk cache
2020-12-29 19:16:21 +05:30
Kovid Goyal
6760e38d93
Callback to create tempdir in cache
2020-12-29 10:00:34 +05:30
Kovid Goyal
85bc8b61df
Make wm_class/wm_name available in @ ls output
2020-12-26 10:46:07 +05:30
Kovid Goyal
c3c5a5446f
Add window_id and window_title fields to --match-tab
2020-12-20 19:39:09 +05:30
Kovid Goyal
14f5e10fd6
Fix mapping of remote_control not working for actions that yield generators
...
Fixes #3147
2020-12-07 16:15:44 +05:30
Kovid Goyal
ff96036f62
Better window title when choosing tabs/OS windows
2020-11-21 14:58:08 +05:30
Kovid Goyal
6409786f8d
Add a new mappable select_tab action to choose a tab to switch to even when the tab bar is hidden
...
Fixes #3115
2020-11-21 14:52:18 +05:30
Luflosi
e204cc8f12
Add comment on how to call send_test_notification()
2020-10-04 17:23:50 +02:00
Luflosi
7c4ad278d5
macOS: add ability to show subtitles in notifications
...
This used to be implemented before 4e3c6e52aad41b9deb98d052c806f4a84846b782, when the now deprecated notifications framework was still being used.
Implement it again for feature parity.
2020-10-03 16:04:32 +02:00
Kovid Goyal
de6528b7d8
Dispatch url actions once per event loop tick
...
This allows subsequent actions to act on the results of the previous
actions
2020-09-18 20:48:40 +05:30
Kovid Goyal
0d6bca3e5d
Allow specifying rules to perform arbitrary actions in kitty when opening URLs
2020-09-18 15:01:25 +05:30
Kovid Goyal
d6e27e776b
Start work on the remote_file kitten
...
Easy access to files over SSH
2020-09-12 06:36:41 +05:30
Kovid Goyal
4a75952fc7
Implement marking of hyperlinks
2020-09-10 10:47:27 +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
eca53bfab0
Add a new escape code to allow terminal programs to trigger desktop notifications
...
Fixes #1474
2020-08-21 20:29:54 +05:30
Kovid Goyal
4e3c6e52aa
macOS: Switch to the User Notifications framework
...
The current notifications framework has been deprecated in Big Sur. The new
framework only allows notifications from signed and notarized applications,
so people using kitty from HomeBrew/source are out of luck. And
notifications can only be displayed once the user grants permission. A
completely brain-dead design. Complain to Apple.
2020-08-20 13:03:00 +05:30
Kovid Goyal
2fe1ef4774
Mappable function to easily send test notification
2020-08-19 16:45:51 +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
1ef2880c6c
Also make the platform window id available via kitty @ ls
2020-07-24 08:47:13 +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
6ea5027bf6
Remote control close_tab should not ask for confirmation
2020-07-16 12:55:25 +05:30
Kovid Goyal
384ccb4fc7
Have the :opt:confirm_os_window_close option also apply when closing tabs with multiple windows
...
Fixes #2857
2020-07-16 12:51:19 +05:30
Kovid Goyal
a9e739e08d
Apply single instance BO override when different from current BO not when less than 1
2020-06-27 17:32:03 +05:30
Kovid Goyal
cc15ff73b7
Respect --override of background_opacity for --single-instance
...
Fixes #2806
2020-06-27 09:18:41 +05:30
Kovid Goyal
9a384c5045
Allow passing the current selection to kittens
...
Fixes #2796
2020-06-25 08:46:05 +05:30
Kovid Goyal
b15e58621c
Fix the kitty shell launched via a mapping needlessly requiring :opt:allow_remote_control to be turned on.
2020-06-20 12:43:46 +05:30