Commit Graph
188 Commits
Author SHA1 Message Date
Kovid Goyal 2170d4e21a DRYer 2022-01-16 09:47:44 +05:30
Kovid Goyal 2538e94390 Use a single SGR regex pattern cache 2022-01-16 09:46:52 +05:30
Kovid Goyal a155b081b7 Make hold_till_enter re-useable 2022-01-07 12:13:20 +05:30
Kovid Goyal 37fe98fdec Fix failure on older python 2022-01-02 09:39:05 +05:30
Kovid Goyal 0fcc446298 Avoid extra type checking import of re 2022-01-02 09:26:52 +05:30
pagedown a3e9e0f010 Use the already imported subprocess 2022-01-01 21:29:46 +08:00
pagedown 98e44a8907 Unify resolution of absolute paths or config dir paths 2021-12-09 20:43:07 +08:00
Kovid Goyal 5f744368dd A new option exe_search_path to modify the locations kitty searches for executables to run 2021-12-09 12:13:26 +05:30
Kovid Goyal 77b15bf73f ... 2021-12-09 11:51:10 +05:30
pagedown 5d1f58427e ... 2021-12-09 11:57:17 +08:00
pagedown 02a7316342 Use the unified PATH search function 2021-12-09 11:32:30 +08:00
Kovid Goyal 50ce698524 oops 2021-12-08 22:21:15 +05:30
Kovid Goyal 32768e7939 Unify the PATH searching algorithm for launch and running children 2021-12-08 20:10:34 +05:30
Kovid Goyal e68debc94e Handle blocking io errors when writing all to an fd 2021-11-17 11:45:15 +05:30
Kovid Goyal 4841502959 Use a single kitty invocation for manual shell integration 2021-11-08 11:27:10 +05:30
Kovid Goyal 336c7ddca8 DRYer 2021-10-31 15:41:19 +05:30
Kovid Goyal 22673ebd90 ... 2021-10-31 14:06:02 +05:30
Kovid Goyal b1c0398bba Avoid unnecessary CPU churn when reading from stdin for @ send-text 2021-10-31 14:04:07 +05:30
Kovid Goyal 2443dc135c Use a faster implementation of the Color type
Now implemented in C
2021-10-28 11:15:13 +05:30
Kovid Goyal d090db380f Add more type annotations 2021-10-27 13:26:18 +05:30
Kovid Goyal 4494ddd8ff mypy: Turn on return value checks
Its a shame GvR is married to "return None"
https://github.com/python/mypy/issues/7511
2021-10-26 22:39:14 +05:30
Kovid Goyal 6546c1da9b run pyupgrade to upgrade the codebase to python3.6 2021-10-21 12:43:55 +05:30
Kovid Goyal 8057c420d9 Fix resize-os-window slightly incorrect on high DPI
Caused by premature clamping of a floating point number
2021-10-12 19:40:02 +05:30
Kovid Goyal 85db87a121 A shader to draw a single seven segment number over a kitty window 2021-10-11 11:13:29 +05:30
Kovid Goyal 3bc7b5bad9 Remote file transfer: Fix transfer not working is custom ssh port or identity is specified on the SSH command line
Fixes #4067
2021-09-27 10:58:40 +05:30
Kovid Goyal aafd8a8da4 When expanding vars allow using $$ for literal $ 2021-08-31 17:24:19 +05:30
Kovid Goyal 42dcecde14 More work on file transmission 2021-08-22 13:01:43 +05:30
Kovid Goyal 5a92d3f312 Fix a regression that broke the edit action in the remote file kitten 2021-08-13 16:59:40 +05:30
Kovid Goyal 5a47e0d2e4 Make reload_conf_in_all_kitties re-useable 2021-08-08 09:38:29 +05:30
Kovid Goyal 6f83f76d41 Make reading shell environment a bit more robust
Now ensure that --login flag is not duplicated. Also
run the shell in --interactive as well as --login mode.
2021-07-29 11:12:09 +05:30
Kovid Goyal 419cf78984 A new remote control command to resize OS Windows 2021-07-25 22:57:00 +05:30
Kovid Goyal 00828cb804 More reloading work for various options 2021-06-07 09:30:15 +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 f7db9e3527 Move deprecated parsers into utils 2021-05-31 17:40:48 +05:30
Kovid Goyal 09093c8f3e Cleanup PR 2021-05-30 12:47:00 +05:30
Fredrick Brennan 3041ff8d25 Downgrade libstartup-notification-1.so non-existence to warning
I'm not sure how common this library actually is. On my system, an Arch
Linux system with 2,170 packages installed, including KDE (Plasma), I
didn't have it.

It's downgraded to a warning instead of printing a traceback.
2021-05-30 03:05:42 -04:00
Kovid Goyal b169831810 remove unused import 2021-05-25 09:00:54 +05:30
Kovid Goyal fe94f4cbb4 Move type parsers for config into own module 2021-05-24 22:29:28 +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 7eb8e1df79 Use importlib to load the shaders 2021-02-16 10:23:18 +05:30
Kovid Goyal fe07306ff1 Use a nicer decorator for functions that only need to be run once 2021-02-05 10:40:52 +05:30
Kovid Goyal 0e483f81ac Compat for python < 3.8 2021-02-05 09:23:54 +05:30
Kovid Goyal af94e07618 Cache exe lookups 2021-02-04 11:36:59 +05:30
Kovid Goyal 9cf5348c36 Modify ImageMagick wrapper to handle animated images 2021-02-01 14:12:26 +05:30
Kovid Goyal c1b7023e3a Look in ~/.local/bin preferentially 2020-12-29 11:50:11 +05:30
Kovid Goyal 65361d56c4 Use find_exe() for resolving editor as well
Avoids having to exec the shell in most cases
2020-12-29 11:33:42 +05:30
Kovid Goyal a7e9030c12 Make finding ImageMagick a bit more robust on macOS 2020-12-29 10:48:26 +05:30
Kovid Goyal c440470276 Entry point to edit config file 2020-11-04 16:30:29 +05:30
Kovid Goyal be1ff61e4a Improve some utility functions
Make expandvars accept both $VARNAME and ${VARNAME} now matches
the behavior of posixpath.expandvars

Allow overriding the environment variables to_cmdline expands against
2020-09-18 13:25:59 +05:30
Kovid Goyal be29c4a243 Move class definition to utils so can be used from multiple kittens easily 2020-09-15 10:34:37 +05:30