Kovid Goyal
04807453ec
version 0.24.1
2022-01-06 10:40:59 +05:30
Kovid Goyal
1b7582e85c
Merge branch 'patch-1' of https://github.com/Silent-Crafter/kitty
2022-01-06 10:03:45 +05:30
Silent Crafter
e106562ef1
Bash: for loop array iteration fix
...
the array iteration wasn't implemented correctly for KITTY_SHELL_INTEGRATION variable. the i variable in for loop wasn't iterating through all the elements of that array
2022-01-06 09:52:59 +05:30
Kovid Goyal
d3a20f00d6
Add a comment explaining where we use PS2 marks
2022-01-06 09:25:41 +05:30
Kovid Goyal
de5443a4db
Add a reference to the discussion of using custom tab bar themes to the docs
2022-01-06 09:16:22 +05:30
Kovid Goyal
e8b19e08fa
Fix non-renderable combining chars causing some text to not be rendered on Linux
...
The test for non-renderable chars was broken and the variation selectors
were not included in the test. Fixes #4444
2022-01-05 22:33:53 +05:30
Kovid Goyal
a574081012
Merge branch 'zsh-integration' of https://github.com/romkatv/kitty
2022-01-05 21:29:30 +05:30
Roman Perepelitsa
4f06ce9d72
Once again start embedding marks in PS2 on zsh
2022-01-05 16:36:00 +01:00
Kovid Goyal
6713580455
Explicitly turn off aliases in a more functions
...
Not really needed, but I like to be explicit
2022-01-05 21:04:27 +05:30
Kovid Goyal
86f6c946b3
Merge branch 'zsh-integration-aliases' of https://github.com/romkatv/kitty
2022-01-05 20:49:08 +05:30
Roman Perepelitsa
9194d1db6b
Disable aliases when patching functions in zsh integration
2022-01-05 16:16:18 +01:00
Kovid Goyal
420a1b018a
Fix #4448
2022-01-05 20:14:23 +05:30
Roman Perepelitsa
8009b85073
Make writing to the TTY more robust in zsh integration
...
See https://github.com/kovidgoyal/kitty/issues/4440 .
2022-01-05 09:55:19 +01:00
Kovid Goyal
2a58af2be9
Ignore all errors rendering /etc/issue
2022-01-05 14:04:56 +05:30
Roman Perepelitsa
4decac26f6
Fix a typo in _ksi_debug_print
2022-01-05 09:22:00 +01:00
Roman Perepelitsa
a6b74f190f
Revert "Get _ksi_debug_print working again"
...
This reverts commit ff63e58f95 .
2022-01-05 09:20:33 +01:00
Kovid Goyal
bfbe60c90e
Update changelog
2022-01-05 09:05:20 +05:30
Kovid Goyal
384b2f8462
Add roundtrip and cursor positioning tests for all three zero width chars
2022-01-05 08:57:14 +05:30
Kovid Goyal
d875615c03
Fix a regression in the handling of some combining characters such as zero width joiners
...
Fixes #4439
2022-01-05 08:50:55 +05:30
Kovid Goyal
9aefcfe56f
Make --hold a bit more robust
2022-01-05 08:14:22 +05:30
Kovid Goyal
266e70222f
Avoid hooking LE widgets at all when using no-cursor
2022-01-05 07:46:20 +05:30
Kovid Goyal
d4639e2aea
Merge branch 'zsh-integration' of https://github.com/romkatv/kitty
2022-01-05 07:40:10 +05:30
Roman Perepelitsa
ca8975891b
Replace add-zle-hook-widget with a series of hacks in zsh integration
2022-01-04 19:56:57 +01:00
Kovid Goyal
bed3d2eb50
Fix #4434
2022-01-04 23:38:58 +05:30
Kovid Goyal
78495a7f64
spelling
2022-01-04 20:35:21 +05:30
Kovid Goyal
f66914f7bb
...
2022-01-04 20:29:53 +05:30
Kovid Goyal
58e1f6ee1f
Use ctermid() for tty_name
2022-01-04 20:25:16 +05:30
Kovid Goyal
0625035202
oops forgot to re-order second tab group
2022-01-04 20:18:49 +05:30
Kovid Goyal
f8fc272f58
Make loading IssueData more robust
...
Fixes #4424
2022-01-04 19:57:23 +05:30
Kovid Goyal
6d61de8a8f
Merge branch 'fladson/fix-documentation-typo' of https://github.com/fladson/kitty
2022-01-04 19:52:27 +05:30
Kovid Goyal
4c08709df1
Use same orders for all tab groups
2022-01-04 19:49:55 +05:30
Fladson Gomes
58a28da94d
Fix documentation typo
2022-01-04 14:46:25 +01:00
Kovid Goyal
26b976d17d
Merge branch 'fix-mouse-scroll' of https://github.com/page-down/kitty
2022-01-04 18:01:30 +05:30
pagedown
3141fc3f05
Update mouse cursor position when scrolling without OS window focus
2022-01-04 19:39:36 +08:00
Kovid Goyal
a45d6c8b55
Fix #4421
2022-01-04 16:21:00 +05:30
Kovid Goyal
dadf496a68
remove leftover debug print
2022-01-04 12:01:23 +05:30
Kovid Goyal
dae8ae33f0
hints kitten: Fix matching of filenames enclosed in quotes or brackets not stripping the surrounding quotes properly. Fixes #4419
2022-01-04 10:58:31 +05:30
Kovid Goyal
b6254e4a67
version 0.24.0
2022-01-04 08:21:17 +05:30
Kovid Goyal
53431c7ba8
Merge branch 'refactor' of https://github.com/page-down/kitty
2022-01-03 14:31:16 +05:30
pagedown
afa0bb4c1d
Avoid using the same variable name in different scopes
...
Variable names such as a and b are also used in the MIN and MAX macros.
2022-01-03 16:11:20 +08:00
pagedown
9ae2579dcb
The window width and height are always greater than zero here
2022-01-03 16:05:24 +08:00
Kovid Goyal
37fe98fdec
Fix failure on older python
2022-01-02 09:39:05 +05:30
Kovid Goyal
fe91b74ba7
...
2022-01-02 09:38:14 +05:30
Kovid Goyal
0fcc446298
Avoid extra type checking import of re
2022-01-02 09:26:52 +05:30
Kovid Goyal
e228f5105e
Merge branch 'refactor' of https://github.com/page-down/kitty
2022-01-02 09:23:25 +05:30
Kovid Goyal
719760fd7b
Remove unused UNUSED
2022-01-02 09:19:40 +05:30
Kovid Goyal
d3e87bcd4f
Another shadowed global variable
2022-01-02 09:04:26 +05:30
Kovid Goyal
be771456e1
Dont shadow global variable name
2022-01-02 08:59:34 +05:30
Kovid Goyal
8514782ad2
Remove unused code
...
icat already scales images to fit the screen in process_image() so dont
have to consider the case of the image being wider than the screen in
set_cursor()
2022-01-02 08:56:17 +05:30
pagedown
a3e9e0f010
Use the already imported subprocess
2022-01-01 21:29:46 +08:00
pagedown
15615a4cd1
Avoid defining variables with the same name that already exist
...
Avoid using existing parameter names for local variables.
Avoid using variable names from upper level for nested loops.
Avoid local variables hiding existing global variables.
2022-01-01 21:29:32 +08:00
pagedown
7246fb347c
Remove the unused function
2022-01-01 21:29:06 +08:00
pagedown
f1b6fb397b
Remove redundant variable assignment
2022-01-01 21:28:55 +08:00
pagedown
49fbeb9a56
Remove the always true conditions
...
Unsigned integers are always greater than or equal to zero.
The else branch is always the opposite.
2022-01-01 21:27:01 +08:00
Kovid Goyal
f17d71454a
...
2021-12-31 22:51:16 +05:30
Kovid Goyal
59ea7485e4
Fix loading of kitty completions broken by unfunctioning of kitty-integration
2021-12-31 22:49:09 +05:30
Kovid Goyal
ff63e58f95
Get _ksi_debug_print working again
2021-12-31 22:38:39 +05:30
Kovid Goyal
79ec8b60b9
Fix visual select window sometimes showing stale window titles
2021-12-31 21:08:20 +05:30
Kovid Goyal
846c774ac2
DRYer
2021-12-31 20:58:06 +05:30
Kovid Goyal
940e311c74
Add a section to the changelog showcasing major recent new features
2021-12-31 20:38:50 +05:30
Kovid Goyal
251667a30e
...
2021-12-31 09:44:00 +05:30
Kovid Goyal
e45697f78a
Fix a regression that broke rendering of unicode regional indicators
...
At some point, unicode regional indicators became combining chars in the
unicode standard, which broke the handling of them in draw_codepoint().
The fix has the added advantage of improving performance in the common
case by only checking for combining chars. The flag check happens only
if the first check matches.
Fixes #4407
2021-12-31 09:28:47 +05:30
Kovid Goyal
ea63efa522
Merge branch 'refactor-dry' of https://github.com/page-down/kitty
2021-12-31 06:42:46 +05:30
pagedown
60839cdb47
DRYer: Use gl_size to convert coordinates
2021-12-31 09:04:47 +08:00
Kovid Goyal
a867b4444d
Clamp border rects to pixels
...
This uses the same co-ord calculation for border rects as for text
cells. DRYer and avoids borders and blank rects being drawn at haf pixel
offsets.
2021-12-31 06:20:57 +05:30
Kovid Goyal
072fe91518
...
2021-12-30 20:44:30 +05:30
Kovid Goyal
07e6171dc5
DRYer
2021-12-30 20:32:17 +05:30
Kovid Goyal
9a80fcee37
Ensure sizes for window number decorations are correct
2021-12-30 19:05:06 +05:30
Kovid Goyal
7731a558f0
Merge branch 'fix-shell.nix-on-macOS-arm' of https://github.com/Luflosi/kitty
2021-12-30 17:50:19 +05:30
Luflosi
7ea4c1e47f
shell.nix: add dependency needed on Apple silicon
...
shell.nix is missing a depencency on the UserNotifications framework on macOS with Apple silicon. Unfortunately we can't just unconditionally include this dependency because Nixpkgs uses a different macOS SDK version for macOS on an Intel processor compared to macOS on Apple silicon. The older SDK version 10.12 on Intel does not have the UserNotifications framework, which would lead to an "attribute missing" error when trying to execute `nix-shell`. The condition can be dropped when the macOS SDK version for Intel processors is finally updated. See https://github.com/NixOS/nixpkgs/issues/101229 for progress on that.
See https://github.com/NixOS/nixpkgs/pull/137512 for more context.
Closes https://github.com/kovidgoyal/kitty/issues/4352 .
2021-12-28 15:35:16 +01:00
Kovid Goyal
f6b748712c
Clamp positions of window numbers/titles to nearest pixel
...
Avoids jaggies in rendering
2021-12-26 11:05:16 +05:30
Kovid Goyal
93abedd93f
Replace the screenshot on the landing page with a video
2021-12-24 13:26:34 +05:30
Kovid Goyal
872cd7b2d5
Fix unfunctioning ofkitty-integration in docs
...
It has to be unfunctioned after being run once
2021-12-24 10:26:02 +05:30
Kovid Goyal
a7e03f9c63
Merge branch 'docs' of https://github.com/page-down/kitty
2021-12-24 10:23:46 +05:30
pagedown
f53dfb27e2
Docs: Add macOS mouse wheel scrolling and title bar options changes
2021-12-24 12:37:54 +08:00
pagedown
36b4e0edd2
Docs: Also fixed the input issue in toggling non-traditional fullscreen
2021-12-24 12:29:08 +08:00
pagedown
9081947751
Docs: Prefer semi-bold on macOS only
2021-12-24 12:11:02 +08:00
pagedown
f58013f2c6
Docs: Cross-platform IME integration improvements
2021-12-24 12:06:41 +08:00
pagedown
ae35507f80
Use the lowercase kitty
2021-12-24 12:02:54 +08:00
pagedown
73ff508b51
Docs: unfunction kitty-integration
2021-12-24 11:46:08 +08:00
pagedown
b0ccf74029
Docs: Replace Unicode left single quote with ASCII single quote
2021-12-24 11:44:58 +08:00
Kovid Goyal
6046dc8598
Merge branch 'zsh-integration' of https://github.com/romkatv/kitty
2021-12-24 07:55:07 +05:30
Roman Perepelitsa
9bba38bd11
Unfunction kitty-integration in zsh
2021-12-23 19:09:09 +01:00
Kovid Goyal
59505d17d5
Update docs for new zsh integration code
2021-12-23 20:40:46 +05:30
Kovid Goyal
bcecc61b67
Merge branch 'zsh-integration' of https://github.com/romkatv/kitty
2021-12-23 20:06:44 +05:30
Kovid Goyal
f9af273150
Try to convince mypy to play nice
2021-12-23 10:18:42 +05:30
Kovid Goyal
8699f90fa4
Now have sphinx types on dev machine
2021-12-23 10:13:16 +05:30
Kovid Goyal
0a9ba1bc08
...
2021-12-23 08:11:16 +05:30
Roman Perepelitsa
37741ac808
Add a comment within zsh integration related to cursor shape changes
2021-12-22 15:04:31 +01:00
Roman Perepelitsa
6d790237c3
Rewrite zsh integration
...
Note:
- Very lightly tested.
- Docs not updated.
2021-12-22 14:04:40 +01:00
Kovid Goyal
70d5a5134f
Log a nicer error message when failing to read cwd of a process
2021-12-22 16:22:33 +05:30
Kovid Goyal
ee166c5555
Retry the Linux ARM build as it is pretty flaky
2021-12-22 07:45:10 +05:30
Kovid Goyal
b965fb4806
Launcher: Fix UB when failing to launch because resolving the EXE fails
2021-12-22 07:32:28 +05:30
Kovid Goyal
e49b20bfa7
Merge branch 'feat-titlebar-opt-err' of https://github.com/page-down/kitty
2021-12-21 15:25:57 +05:30
pagedown
8abfb50aed
Ignore invalid title bar color
2021-12-21 17:51:00 +08:00
Kovid Goyal
10e0077a6f
Merge branch 'feat-macos-titlebar-opt' of https://github.com/page-down/kitty
2021-12-21 13:40:52 +05:30
pagedown
278477b387
Add light and dark to the macOS title bar option
2021-12-21 15:14:08 +08:00
Kovid Goyal
58b7fb41d9
Update how it works for zsh integration
...
In light of the recent changes by @romkatv
2021-12-21 10:44:45 +05:30
Kovid Goyal
f71e0a6ee8
...
2021-12-21 10:39:06 +05:30
Kovid Goyal
b59e42c9cc
Fix animations getting paused when switching to alternate screen and back
2021-12-21 08:24:43 +05:30
Kovid Goyal
57888af4ea
Merge branch 'zsh-integration' of https://github.com/romkatv/kitty
2021-12-20 20:11:52 +05:30
Kovid Goyal
90f2ba474c
Fix icat for GIF images broken
2021-12-20 17:54:55 +05:30
Roman Perepelitsa
09d025d88f
Minor robustness improvements to zsh shell integration
2021-12-20 13:20:38 +01:00
Kovid Goyal
e18ac4f0f5
...
2021-12-20 10:47:33 +05:30
Kovid Goyal
63ab35ec7c
Add a note about patched NERD fonts to the FAQ entry on fonts
2021-12-20 08:19:42 +05:30
Kovid Goyal
d65ed5993c
New bypy CLI for export
2021-12-19 22:42:36 +05:30
Kovid Goyal
6436dfaf14
Bump the bundled libxml2 version
2021-12-19 22:05:06 +05:30
Kovid Goyal
0c4bd96f87
Merge branch 'fix-mouse-scroll' of https://github.com/page-down/kitty
2021-12-17 22:15:55 +05:30
pagedown
6afabf7e2a
Fix mouse scrolling kitty window without OS window focus
2021-12-17 23:57:38 +08:00
Kovid Goyal
a4d4cf5819
Fix #4367
2021-12-17 17:35:13 +05:30
Kovid Goyal
1be7425186
Another mypy 0.920 fix
2021-12-17 06:15:10 +05:30
Kovid Goyal
8f0825bc5c
Various fixes for mypy 0.920
2021-12-17 05:56:19 +05:30
Kovid Goyal
6a657eec33
New CLI for bypy
2021-12-16 20:37:46 +05:30
Kovid Goyal
ae952605d3
Note about exe_search_path in launch docs
2021-12-16 19:48:17 +05:30
Kovid Goyal
81753706d3
oops
2021-12-15 20:30:11 +05:30
Kovid Goyal
4120be3e2d
Allow using "tab" colors in the title template
...
Fixes #4360
2021-12-15 20:09:23 +05:30
Kovid Goyal
832f73fde9
Fix incorrect example in tab template docs
...
Should be fmt.bg.default not fmt.bg.normal
Fixes #4360
2021-12-15 19:37:17 +05:30
Kovid Goyal
99d06f0714
See if 0 makes Apple happy
2021-12-15 13:14:02 +05:30
Kovid Goyal
e973c45968
Fix build on XCode 13.1
...
Apple go on making it harder and harder to support multiple
versions of their pathetic operating system in one code base.
kIOMainPortDefault is the "non-deprecated" replacement for
kIOMasterPortDefault. However, it is now marked as being available only
on macOS 12 and later so it refuses to build in a codebase designed to
run on earlier versions of macOS. Le bubbling sigh.
According to https://developer.apple.com/documentation/iokit/kiomasterportdefault?language=objc
passing NULL has the same effect and avoids the stupid warning.
Hopefully this will work till Apple decides to spend their trillion
dollars doing more stupid shit.
2021-12-15 12:57:46 +05:30
Kovid Goyal
4dbf0c89c3
Suppress warning about sphinx_inline_tabs not being marked for parallel reads
2021-12-15 12:11:32 +05:30
Kovid Goyal
1f264ffec5
Fix push/pop of colors not updating colors on screen until a dynamic color is also changed.
...
Fixes #4351
2021-12-13 11:17:54 +05:30
Kovid Goyal
547e4a3d7e
Merge branch 'fix-fullscreen' of https://github.com/page-down/kitty
2021-12-13 08:38:06 +05:30
pagedown
d0fa0516f5
macOS: Fix keyboard input not working after toggling full screen
2021-12-13 08:58:52 +08:00
Kovid Goyal
2c13005e0f
Shutdown the Linux VMs after building
2021-12-12 12:42:29 +05:30
Kovid Goyal
b52990cb39
Merge branch 'docs-enable-kbd-xform' of https://github.com/page-down/kitty
2021-12-12 08:07:09 +05:30
pagedown
0a1390a7f6
Docs: Enable kbd transform when building dirhtml with sphinx
2021-12-12 00:06:28 +08:00
Kovid Goyal
5084f843c9
Merge branch 'fix-rc-scroll-win' of https://github.com/page-down/kitty
2021-12-11 12:40:18 +05:30
pagedown
42b5b1cbf7
Fix remote control scroll-window argument parsing
2021-12-11 14:47:57 +08:00
Kovid Goyal
832f7a862b
Merge branch 'docs-kittens' of https://github.com/page-down/kitty
2021-12-10 18:06:05 +05:30
pagedown
0d4a62ccb5
Fix unicode-input docs redirect
2021-12-10 20:29:09 +08:00
Kovid Goyal
3d98501e57
Move custom kitten back
...
Its not the most interesting thing to read and hence should not be at
the top.
2021-12-10 17:23:12 +05:30
Kovid Goyal
a4fff7abe3
Merge branch 'docs-kittens' of https://github.com/page-down/kitty
2021-12-10 17:22:42 +05:30
Kovid Goyal
f51779d93a
Forgot to build ARM binary in publish
2021-12-10 17:12:17 +05:30
pagedown
121d86fb1c
Docs: Put custom kitten docs at the top instead of in the middle
2021-12-10 17:35:10 +08:00
pagedown
5956639082
Add unicode-input docs redirect
2021-12-10 17:34:39 +08:00
pagedown
7e449dec4f
Docs: Use underscores in kitten document filenames
2021-12-10 17:30:51 +08:00
Kovid Goyal
a938b01246
Build binaries for Linux ARM64
2021-12-10 12:49:58 +05:30
Kovid Goyal
a4cd10c6fb
...
2021-12-10 12:29:49 +05:30
Kovid Goyal
5fd17b4b99
Merge branch 'docs-shortcuts' of https://github.com/page-down/kitty
2021-12-10 12:18:09 +05:30
pagedown
8ae0ae2c93
Docs: use the action name of the shortcut in several places
2021-12-10 14:36:16 +08:00
pagedown
59957a913a
List kitten names in the kitten default shortcuts list
2021-12-10 14:33:29 +08:00
Kovid Goyal
49d284cd16
Merge branch 'fix-dbg-dump-lines' of https://github.com/page-down/kitty
2021-12-10 10:32:54 +05:30
pagedown
dedbd14ace
Fix action dump_lines_with_attrs
2021-12-10 12:22:21 +08:00
Kovid Goyal
2c6d888b3d
...
2021-12-10 07:36:09 +05:30
Kovid Goyal
9b0a5d6465
Merge branch 'abs-conf-path' of https://github.com/page-down/kitty
2021-12-10 07:32:36 +05:30
Kovid Goyal
32c4f4ccaa
location for linux installers has changed with recent bypy changes
2021-12-10 07:23:12 +05:30
Kovid Goyal
8e435dff16
Update the version of Ubuntu the kitty binaries are built on to Bionic
...
The upgrade was needed as I couldn't get Xenial to boot in the QEMU VM.
In any case Bionic is now three years old and comes with GLIBC 2.27
released on 2018-02-01 which will be almost four years old when the next
version of kitty is released.
2021-12-09 22:28:11 +05:30
pagedown
98e44a8907
Unify resolution of absolute paths or config dir paths
2021-12-09 20:43:07 +08:00
Kovid Goyal
060362bee2
Fix #4332
2021-12-09 13:26:47 +05:30
Kovid Goyal
6bfe9bfe9a
Merge branch 'fix-action-paste' of https://github.com/page-down/kitty
2021-12-09 12:52:03 +05:30
pagedown
b4f7cd94a1
Fix paste mappable action
2021-12-09 15:02:27 +08:00
Kovid Goyal
74f21ec774
Add an issue reference
2021-12-09 12:18:48 +05:30
Kovid Goyal
5899e06b6b
Merge branch 'fix-docs-scroll' of https://github.com/page-down/kitty
2021-12-09 12:14:06 +05:30
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
pagedown
a4a9290577
Docs: fix conflicts caused by smooth scrolling in Chrome
2021-12-09 14:31:54 +08:00
Kovid Goyal
77b15bf73f
...
2021-12-09 11:51:10 +05:30
Kovid Goyal
f41584c83b
Ignore virtual-machines.conf used to specify build VM locations
2021-12-09 11:44:21 +05:30
Kovid Goyal
892b8c03eb
Cleanup previous PR
2021-12-09 11:44:13 +05:30
Kovid Goyal
ecdf901c19
Merge branch 'feat-path-search' of https://github.com/page-down/kitty
2021-12-09 11:41:37 +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
3d59e4eac1
Add links to other implementations of the keyboard protocol
2021-12-09 07:18:12 +05:30
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
62dbc1129c
When setting the OS Window title strip out CSI escape codes
...
Fixes #4325
2021-12-08 16:04:23 +05:30
Kovid Goyal
3d0d987984
Merge branch 'docs-url' of https://github.com/page-down/kitty
2021-12-08 15:18:20 +05:30
pagedown
2c78a22270
Docs: generate relative url with link text in document
2021-12-08 17:20:52 +08:00
pagedown
4a7ae0f524
Docs: use pygments styles official website url
2021-12-08 17:20:13 +08:00
Kovid Goyal
bc25e5a8a2
DRYer
2021-12-07 15:52:06 +05:30
Kovid Goyal
4af2526f54
Add a few more default responses for confirmations
2021-12-06 17:41:03 +05:30
Kovid Goyal
8f688fb33b
When confirming close restore global state if the ask kitten is aborted without output
...
Fixes #4320
2021-12-06 17:25:27 +05:30
Kovid Goyal
6e351cd945
Restore ability to use foreground color unchanged for selections
2021-12-06 05:23:41 +05:30
Kovid Goyal
2d66e37dcb
Fix selection_forground=none not being respected
2021-12-05 22:00:43 +05:30
Kovid Goyal
2da25d9187
Fix #4318
2021-12-05 20:50:28 +05:30
Kovid Goyal
11badac95d
Ensure cell start position is clamped to a pixel
2021-12-05 18:26:25 +05:30
Kovid Goyal
b4024bf7f2
DRYer
2021-12-05 18:21:00 +05:30
Kovid Goyal
759feac95b
Make the gl pixel clamping functions more widely available
2021-12-05 18:16:36 +05:30
Kovid Goyal
33de23d01d
Remove unused code
2021-12-05 18:03:37 +05:30
Kovid Goyal
3f0ecbb241
Use the new async response framework when setting background/logo images via RC. Avoids having to use --no-response
2021-12-05 18:02:09 +05:30
Kovid Goyal
e91c008357
...
2021-12-05 17:42:54 +05:30
Kovid Goyal
7a2003c371
Allow ~/ expansion when specify image paths for @ set-(background|logo)
2021-12-05 17:16:17 +05:30
Kovid Goyal
a7eb9850b7
clamp logo position to nearest pixel
2021-12-05 15:53:20 +05:30
Kovid Goyal
f01446ff25
...
2021-12-05 13:26:06 +05:30
Kovid Goyal
525a32be51
better conversion of logo width/height to gl values
...
Map the naive value back to an integer using the same algorithm as for
the scissor test and adjust the value if they dont match
2021-12-05 13:21:04 +05:30
Kovid Goyal
73386bd67f
Use scissor limits as pixel extents in cell render data
...
More accurate since that is the actual content area
2021-12-05 13:04:43 +05:30
Kovid Goyal
d1cf88e942
Make the window geometry in pixels available in CellRenderData
2021-12-05 12:29:33 +05:30
Kovid Goyal
c11da595ef
Move calculation of window render data into native code
...
There was no reason to do it in python
2021-12-05 12:21:24 +05:30
Kovid Goyal
2546afb7aa
Use a struct to pass around cell render data
2021-12-05 11:57:22 +05:30
Kovid Goyal
56edb5cdbe
Merge branch 'feat-nth-os-window' of https://github.com/page-down/kitty
2021-12-05 10:12:16 +05:30
Kovid Goyal
bca3179a6d
Forgot that draw_cells() is called with a NULL window when drawing the tab bar
...
Fixes #4317
2021-12-05 07:44:51 +05:30
pagedown
1f3d86a434
Add a new mappable action nth_os_window to focus OS window
2021-12-04 20:45:01 +08:00
Kovid Goyal
0456399ce5
Fix leak when changing window logo
2021-12-04 14:01:05 +05:30
Kovid Goyal
799881af2d
free then clear hash tables
2021-12-04 13:57:25 +05:30
Kovid Goyal
14047588ae
Remote control command to set window logo
2021-12-04 13:55:13 +05:30
Kovid Goyal
9d9840a6d8
...
2021-12-04 12:53:16 +05:30
Kovid Goyal
b36d8d6469
Fix logo rendering under wayland, which requires premult
2021-12-04 12:50:48 +05:30
Kovid Goyal
254ba401d4
Allow specifying window logos in the launch command
2021-12-04 12:37:14 +05:30
Kovid Goyal
3035ba08c3
Interpret relative logo paths relative to conf dir
2021-12-04 07:34:30 +05:30
Kovid Goyal
16201ac873
Use a logo for the kitty shell window
2021-12-03 20:25:07 +05:30
Kovid Goyal
42a2493286
Fade the window logo by a configurable amount
2021-12-03 18:05:59 +05:30
Kovid Goyal
6f48dda8b9
Fix storage of window logos
...
Store by id not pointer since the pointers are not stable. And use two
hash maps by path and by id for fast lookup.
2021-12-03 17:43:45 +05:30
Kovid Goyal
b8b495ac31
Fix text not rendered when showing window logo
2021-12-03 13:54:28 +05:30
Kovid Goyal
bd1276d079
Update window logos on config reload
2021-12-03 13:47:14 +05:30
Kovid Goyal
bfb87854df
Python API to change window logo
2021-12-03 13:38:42 +05:30
Kovid Goyal
f4aba9fc41
Update changelog with new window_logo setting
2021-12-03 13:23:49 +05:30
Kovid Goyal
757c7900d9
Dont draw the window logo during a live resize
2021-12-03 13:20:57 +05:30
Kovid Goyal
3d2877eeb9
More work on per window logo
2021-12-03 13:19:10 +05:30
Kovid Goyal
e04919098f
Start work on a per window logo
2021-12-02 11:14:17 +05:30
Kovid Goyal
5d05aeaace
...
2021-12-02 07:28:27 +05:30
Kovid Goyal
142b6fcc00
Use symbolic names
2021-12-01 22:57:02 +05:30
Kovid Goyal
91c0f4e2d9
Document more tmux breakage
2021-12-01 22:38:23 +05:30
Kovid Goyal
89a93af1d5
GitHub says checkouting out HEAD^2 for merge commits is no longer needed for CodeQL
2021-12-01 20:20:58 +05:30
Kovid Goyal
ef07e2941c
Fix clamping of background image
2021-12-01 20:12:31 +05:30
Kovid Goyal
0c3a8dadf6
bg uniforms should be reset when options are reloaded
2021-12-01 16:43:15 +05:30
Kovid Goyal
6425715daf
Merge branch 'docs-opt-values' of https://github.com/page-down/kitty
2021-12-01 14:11:12 +05:30
pagedown
be110fb38c
Docs: wrap long document lines
2021-12-01 15:46:16 +08:00
pagedown
d743206b8c
Docs: add valid option values
2021-12-01 15:03:35 +08:00
Kovid Goyal
af7a104f5b
Fix typo causing actions to be run multiple times with combine
2021-12-01 10:39:02 +05:30
Kovid Goyal
c0b73986cb
Fix #4302
2021-11-30 20:47:16 +05:30
Kovid Goyal
c48049a3bb
Merge branch 'docs' of https://github.com/page-down/kitty
2021-11-30 16:59:48 +05:30
pagedown
1cb6250f14
Remove duplicate imports
2021-11-30 18:54:44 +08:00
pagedown
8ed6ee97b2
Docs: replace http url with https, use ripgrep project url and fix typo
2021-11-30 18:53:58 +08:00
pagedown
1d88371604
Docs: separate and wrap each choices
2021-11-30 18:41:20 +08:00
pagedown
8685558a2a
Docs: fix remote control launch command description
2021-11-30 18:35:36 +08:00
Kovid Goyal
d372b27ccd
Ensure active window is updated when taking over a tab
2021-11-30 14:28:50 +05:30
Kovid Goyal
88410e032f
Merge branch 'fix-rc-detach' of https://github.com/page-down/kitty
2021-11-30 12:07:04 +05:30
pagedown
622885853d
Fix remote control detach-tab detach-window
2021-11-30 12:38:19 +08:00
Kovid Goyal
0d3c7a64e2
...
2021-11-30 07:45:49 +05:30
Kovid Goyal
0c274a9a0b
Parse actions on demand
...
This removes the startup cost of parsing hundreds of default actions
when action_alias or kitten_alias are used. Although the cost is on the
order of 1ms, this design feels cleaner and gives nicer debug config
output.
2021-11-29 21:51:42 +05:30
Kovid Goyal
0e5f51f195
Add a note about not copying the kitty binary out of the installation folder
2021-11-29 21:45:30 +05:30
Kovid Goyal
49369d6279
Preserve definition location when resolving
2021-11-29 19:38:38 +05:30
Kovid Goyal
bd288bd18f
Linux: Fix release event for the final key in a compose sequence not being reported. Fixes #4285
2021-11-29 19:26:16 +05:30
Kovid Goyal
cdb1138465
...
2021-11-29 12:42:02 +05:30
Kovid Goyal
c8c6f8691f
Store the shell_integration option as a set
2021-11-29 12:41:25 +05:30
Kovid Goyal
9441cf15c3
Move the bash integration script into its own dir
...
This matches the other shells and might be useful someday
if bash ever gets a way for the invoking process to inject code
into it.
Also use KITTY_INSTALLATION_DIR when loading the bash integration code.
2021-11-29 12:30:10 +05:30
Kovid Goyal
276ed7263c
Forgot to use env rather than os.environ when checking for ZDOTDIR
2021-11-29 12:22:33 +05:30
Kovid Goyal
6b38ca3bd2
add verification for parsing shell_integration
2021-11-29 12:04:19 +05:30
Kovid Goyal
c7bf54807e
Fix capitalization
2021-11-29 11:49:58 +05:30
Kovid Goyal
b28811846a
Fix on creation IME update not being applied because render data was not yet set
2021-11-28 22:57:09 +05:30
Kovid Goyal
5561aa1d37
Allow forcing IME update
2021-11-28 22:53:45 +05:30
Kovid Goyal
8c0111cb08
Merge branch 'issue4292' of https://github.com/ctrlcctrlv/kitty
2021-11-28 22:38:56 +05:30
Fredrick Brennan
0dc8bd5520
Make the GPU selection FAQ item not require root
2021-11-28 11:59:26 -05:00
Kovid Goyal
acdf06bf5d
Tell cocoa the previous character range is invalid when updating IME position
...
Without this IME popup position is sometimes incorrect, for instance, at
startup
2021-11-28 22:11:21 +05:30
Kovid Goyal
5e78b1c23e
Merge branch 'fix-ime' of https://github.com/page-down/kitty
2021-11-28 21:21:35 +05:30
pagedown
088b7cde4f
Update IME status when window lost focus
2021-11-28 23:09:35 +08:00
Kovid Goyal
6a8aeb2501
Merge branch 'fix-cmd-output' of https://github.com/page-down/kitty
2021-11-28 19:41:52 +05:30
pagedown
9c326397d0
Update the last visited command output position after unscrolling
2021-11-28 21:59:58 +08:00
Kovid Goyal
28d89bdd53
Cleanup previous PR
2021-11-28 19:03:52 +05:30
Kovid Goyal
69ba419afd
Merge branch 'issue4292' of https://github.com/ctrlcctrlv/kitty
2021-11-28 18:57:25 +05:30
Fredrick Brennan
afbaa36fd3
Document GPU power saving affecting kitty startup
2021-11-28 08:10:45 -05:00
Kovid Goyal
346ea8c8a0
Forgot to ad dmethod in previous commit
2021-11-28 12:01:09 +05:30
Kovid Goyal
4448444d4b
Fix #4289
2021-11-28 11:47:25 +05:30
Kovid Goyal
daefb926d9
Fix zsh kitty completion when the matching style includes anchor based matchers
...
Debian apparently adds these by default.
2021-11-28 11:02:03 +05:30
Kovid Goyal
0a5c73dee4
Ignore errors when getting screen size for zsh completion output serialization
2021-11-28 10:35:44 +05:30
Kovid Goyal
cb09ae3e84
...
2021-11-28 10:23:32 +05:30
Kovid Goyal
3d76c916a5
Simplify zsh shell integration code
...
Use the add-zsh-hook and add-zle-hook-widget functions
2021-11-28 08:45:53 +05:30
Kovid Goyal
0a5ffe9b73
Add a note about _ksi_first_run
2021-11-28 08:14:16 +05:30
Kovid Goyal
325603bf41
Shell integration zsh: Handle the case when a function that breaks prompt marking is installed after _ksi_precmd
...
We now install the real precmd hook only in the first run of the precmd
hook. This ensures that our precmd and preexec hooks are run last,
unless something else uses this trick, which is unlikely, and at that
point, the user is on their own.
Also ensure that the integration script is run only once even if the
user tries to source it twice with setting of KITTY_SHELL_INTEGRATION
each time.
2021-11-27 12:24:19 +05:30
Kovid Goyal
3e3744753d
DRYer
2021-11-27 11:13:26 +05:30
Kovid Goyal
5bc2fa187c
Change the order of file checks since .zshrc is most likely to exist
2021-11-27 10:27:51 +05:30
Kovid Goyal
0a9005f5ce
Allow zsh-newuser-install to run
...
Shell integration wont be turned on for an unconfigured zsh
2021-11-27 10:21:39 +05:30
Kovid Goyal
5d491b8067
Fix include path for new kitty.zsh location
2021-11-27 08:03:43 +05:30
Kovid Goyal
16b4a4fa80
Forgot to change test for new zsh shell integration code
2021-11-27 07:49:32 +05:30
Kovid Goyal
f6e0eb4005
Shell integration: Dont modify ~/.zshrc
...
Instead use the ZDOTDIR env var to load the shell integration code
2021-11-27 07:19:59 +05:30
Kovid Goyal
a3370a1d18
Document the delta transmission protocol
2021-11-26 15:08:18 +05:30
Kovid Goyal
2770a853f6
Merge branch 'docs-kbd' of https://github.com/page-down/kitty
2021-11-26 07:54:47 +05:30
pagedown
bd4399b5fc
...
2021-11-26 09:26:07 +08:00
Kovid Goyal
432df2089c
Merge pull request #4277 from kovidgoyal/imgbot
...
[ImgBot] Optimize images
2021-11-25 11:14:43 +05:30
ImgBotApp
d9d922546f
[ImgBot] Optimize images
...
*Total -- 1,755.23kb -> 1,446.79kb (17.57%)
/logo/kitty.svg -- 8.90kb -> 5.57kb (37.39%)
/docs/screenshots/transfer.png -- 31.21kb -> 22.24kb (28.73%)
/docs/screenshots/themes.png -- 139.72kb -> 110.23kb (21.1%)
/logo/beam-cursor@2x.png -- 1.47kb -> 1.19kb (18.76%)
/docs/screenshots/screenshot.png -- 1,178.10kb -> 958.20kb (18.67%)
/docs/screenshots/remote_file.png -- 54.77kb -> 45.50kb (16.93%)
/docs/screenshots/hints_mode.png -- 61.53kb -> 52.64kb (14.45%)
/docs/screenshots/unicode.png -- 87.86kb -> 75.63kb (13.92%)
/docs/screenshots/panel.png -- 11.81kb -> 10.49kb (11.21%)
/docs/screenshots/diff.png -- 131.05kb -> 118.51kb (9.57%)
/docs/screenshots/splits.png -- 42.34kb -> 40.15kb (5.17%)
/logo/kitty-framed.svg -- 6.49kb -> 6.45kb (0.59%)
Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com >
2021-11-25 05:39:11 +00:00
Kovid Goyal
00167cd9ab
Merge branch 'docs-kbd' of https://github.com/page-down/kitty
2021-11-25 10:58:29 +05:30
pagedown
1692516955
...
2021-11-25 13:24:46 +08:00
Kovid Goyal
0bcf73f980
...
2021-11-25 10:35:53 +05:30
Kovid Goyal
e68914f46b
Rationalize usage of :kbd:
2021-11-25 10:34:25 +05:30
Kovid Goyal
fd331480fc
...
2021-11-25 10:11:12 +05:30
Kovid Goyal
ccf4a0e5e5
Merge branch 'docs-modifier-keys' of https://github.com/page-down/kitty
2021-11-25 10:10:47 +05:30
pagedown
77aa3e7e11
Use Unicode characters for modifier keys
2021-11-25 12:00:36 +08:00
pagedown
716d588ba9
Add command modifier key full name and unicode for ctrl and shift
2021-11-25 11:57:26 +08:00
Kovid Goyal
83041b1c97
Fix #4273
2021-11-25 08:02:49 +05:30
Kovid Goyal
e6311edf53
...
2021-11-24 19:52:22 +05:30
Kovid Goyal
617316e8d9
Linux: Use copy_file_range for defrag of the disk cache which should give even better performance on filesystems that support it
2021-11-24 19:42:00 +05:30
Kovid Goyal
bd21b79959
Only malloc the buffer for fast file copy when needed
2021-11-24 18:20:37 +05:30
Kovid Goyal
732ff7ee58
Move copy between files into its own module
2021-11-24 16:42:52 +05:30
Kovid Goyal
f081d6a421
Fix #4270
2021-11-24 16:37:27 +05:30
Kovid Goyal
3592a94517
Document the handling of links in the file transfer protocol
2021-11-24 09:03:59 +05:30
Kovid Goyal
e5de16bb01
Use fid_abs prefix for absolute symlinks
2021-11-24 08:41:16 +05:30
Kovid Goyal
a62e831932
Clear prompt markings when erasing the display
...
Fixes prompt detection failing after ctrl+l
2021-11-24 08:17:04 +05:30
Kovid Goyal
b35dd5a869
Mention updated packager notes in changelog
2021-11-24 08:05:10 +05:30
Kovid Goyal
ec28bd93c3
Minor updates to file transfer protocol docs
2021-11-23 22:29:30 +05:30
Kovid Goyal
c44b5bb03f
Allow aliases to apply to default shortcuts as well
...
The extra reparse costs 0.5ms at startup on my machine and is only incurred if
at least one alias is actually defined.
2021-11-23 20:24:12 +05:30
Kovid Goyal
313add715c
Use original definition for no-op
2021-11-23 19:51:25 +05:30
Kovid Goyal
56ea741126
Nicer repr for key definitions
2021-11-23 18:19:34 +05:30
Kovid Goyal
9dbdd58311
Avoid spurious exception printed to stderr when terminating a key sequence with an invalid key
2021-11-23 16:29:10 +05:30
Kovid Goyal
2ca13e886a
Avoid cyclic infinite recursion
...
Note that this means that any alias is only expanded once per action
2021-11-23 15:36:58 +05:30
Kovid Goyal
314efe4f68
Ignore empty alias
2021-11-23 15:10:59 +05:30
Kovid Goyal
ebd2de042d
Merge branch 'docs-conf-fmt' of https://github.com/page-down/kitty
2021-11-23 15:07:28 +05:30
Kovid Goyal
c46c551fee
...
2021-11-23 15:07:03 +05:30
Kovid Goyal
cecca854c0
Forgot to port parsing of open actions to use the new action_alias infra
2021-11-23 15:02:19 +05:30
Kovid Goyal
d7df4fa5dc
Leave kitten_alias documented
2021-11-23 14:48:45 +05:30
pagedown
3651a101d0
Append long_text only if at least one documented option exists
2021-11-23 17:15:58 +08:00
Kovid Goyal
a97a05b1ec
Allow action_alias to work with any action
2021-11-23 14:43:36 +05:30
Kovid Goyal
ee2520e036
Also prevent infinite recursion in kitten_alias
2021-11-23 07:53:40 +05:30
Kovid Goyal
88150b2012
Dont document kitten_alias as it is deprecated
2021-11-22 23:04:59 +05:30
Kovid Goyal
9161c71b51
Show the user an error message when pressing a key results in an exception
2021-11-22 23:01:44 +05:30
Kovid Goyal
d7f569b341
Add a test for recursion
2021-11-22 22:54:21 +05:30
Kovid Goyal
5dfa02b45f
Better fix for infinite recursion
2021-11-22 22:44:41 +05:30
Kovid Goyal
45e629c56b
Avoid infinite recursion for action_alias
2021-11-22 22:43:06 +05:30
Kovid Goyal
ee437ca2d7
Add a note about kitten invocation
2021-11-22 22:38:56 +05:30
Kovid Goyal
0293d957b2
When using combine to perform multiple actions, perform subsequent actions on event loop ticks, so that they can operate on the result of the previous action
...
This brings combine into line with open_actions
2021-11-22 22:20:28 +05:30
Kovid Goyal
89069407d2
Make action_alias recursive
2021-11-22 22:15:04 +05:30
Kovid Goyal
495b29bf21
Make nth_window focus the last window for numbers larger than the number of windows
...
Fix #4262
2021-11-22 22:02:07 +05:30
Kovid Goyal
ec5165d958
Fix action_alias not working when used with arguments
2021-11-22 21:41:55 +05:30
Kovid Goyal
1da8ad3839
Fix some type errors
2021-11-22 21:16:09 +05:30
Kovid Goyal
e97afb3433
Make the repr of SingleKey shorter
2021-11-22 20:40:42 +05:30
Kovid Goyal
a824a45602
Merge branch 'docs-conf-fmt' of https://github.com/page-down/kitty
2021-11-22 20:17:47 +05:30
pagedown
20e546b496
Formatting config options that are not added to default
2021-11-22 22:39:19 +08:00
Kovid Goyal
bf8e18441a
Map action URLs automatically for all actions
2021-11-22 20:05:27 +05:30
Kovid Goyal
c5af9613fd
Fix building of docs
2021-11-22 20:02:18 +05:30
Kovid Goyal
9ce807069a
Replace kitten_alias with action_alias in docs
2021-11-22 19:57:54 +05:30
Kovid Goyal
aa4fa4cc85
Allow defining aliases for more general actions, not just kittens
...
Fixes #4260
2021-11-22 19:52:43 +05:30
Kovid Goyal
727c69ffdd
Mark :code: in CLI help output
2021-11-21 22:44:43 +05:30
Kovid Goyal
b7a28afe7e
missed a couple of options
2021-11-21 22:41:30 +05:30
Kovid Goyal
12bcee3b78
Fix #4258
2021-11-21 22:39:36 +05:30
Kovid Goyal
f3376601f2
Mark various options in text correctly
2021-11-21 22:37:11 +05:30
Kovid Goyal
ecea1ba241
...
2021-11-21 10:05:47 +05:30
Kovid Goyal
81467c2e7e
...
2021-11-20 07:36:52 +05:30
Kovid Goyal
889f2fce6d
Avoid deprecation warning from Apple
...
Apparently Apple invent half-assed language extensions like @available
and then dont implement them properly
2021-11-20 06:08:30 +05:30
Kovid Goyal
ae6318cb5a
Forgot to add definitions of the notification constants for old SDKs
2021-11-20 04:58:53 +05:30
Kovid Goyal
19e653ef1b
Fix building on older macOS SDKs
2021-11-20 04:42:01 +05:30
Kovid Goyal
d6949a7a3c
...
2021-11-19 22:52:57 +05:30
Kovid Goyal
5050a01856
Update shell integration features list
2021-11-19 22:51:40 +05:30
Kovid Goyal
564f865a63
Fix the :italic: role used for CLI docs not being rendered correctly in the HTML docs
2021-11-19 14:28:05 +05:30
Kovid Goyal
c1cb196365
Set the media role when playing the bell sound to "event"
...
Fixes #4256
2021-11-19 14:14:50 +05:30
Kovid Goyal
ca0fcada42
Merge branch 'feat-macos-notif-snd' of https://github.com/page-down/kitty
2021-11-19 12:33:34 +05:30
pagedown
8e87b639fa
Use macOS 11.0 version number
2021-11-19 14:41:19 +08:00
pagedown
fccba24f0b
Allow macOS notification to play sound
2021-11-19 14:41:18 +08:00
Kovid Goyal
62e32ea108
More clarification on windows' file permissions
2021-11-19 10:10:14 +05:30
Kovid Goyal
b17fe747fc
Document the representation of file metadata
2021-11-19 10:02:52 +05:30
Kovid Goyal
ccc2d7d2da
Document file compression
2021-11-19 09:21:09 +05:30
Kovid Goyal
a528b45d60
More transfer protocol docs
2021-11-19 09:09:01 +05:30
Kovid Goyal
0c84285473
Note chunk size in both modes
2021-11-18 23:04:07 +05:30
Kovid Goyal
1df7400ad5
And an example serialization
2021-11-18 23:01:35 +05:30
Kovid Goyal
1cb65438fe
...
2021-11-18 22:54:55 +05:30
Kovid Goyal
cd5dd131d5
Explain shortening of key names during serialization
2021-11-18 22:54:35 +05:30
Kovid Goyal
f0e8ab8f31
Drop support for python 3.6
...
It is being EOLed next month (https://www.python.org/dev/peps/pep-0494/ )
which is when I expect the next kitty release as well
2021-11-18 22:44:41 +05:30
Kovid Goyal
bfdb09d29f
...
2021-11-18 22:34:58 +05:30
Kovid Goyal
a81e5dd8a5
More documentation of the file transfer protocol
2021-11-18 22:33:25 +05:30
Kovid Goyal
ddb1fcf430
Forgot to end receive sessions
2021-11-18 22:31:05 +05:30
Kovid Goyal
646726b385
...
2021-11-18 21:23:20 +05:30
Kovid Goyal
d47a80c8e8
Document the escape code format for the file transmission protocol
2021-11-18 21:19:56 +05:30
Kovid Goyal
5f4e326985
Start work on documenting the file transfer protocol
2021-11-18 20:33:06 +05:30
Kovid Goyal
18e747babf
Merge branch 'ibus_move_overlay_linefeed' of https://github.com/martinetd/kitty
2021-11-18 12:29:28 +05:30
Kovid Goyal
a3ec988d07
Old python compat
2021-11-18 12:28:03 +05:30
Dominique Martinet
b992a448b1
screen_linefeed: add missing MOVE_OVERLAY_LINE_WITH_CURSOR
...
fixes ibus positioning problem when shell outputs text with pre-edit
overlay open as per suggestion in this comment:
https://github.com/kovidgoyal/kitty/issues/1000#issuecomment-972550266
2021-11-18 14:31:57 +09:00
Kovid Goyal
c29f50b0d6
Use shorter field names when serializing file transmission commands to reduce overhead
2021-11-18 10:55:57 +05:30
Kovid Goyal
d30ba9654f
Nicer formatting of mappings in the comment conf file
2021-11-18 09:21:24 +05:30
Kovid Goyal
3e3dc26e3f
Dont duplicate help text
2021-11-18 08:50:43 +05:30
Kovid Goyal
a78138ab61
Add a reference to ctrl+shift+right click in the overview
2021-11-18 08:42:30 +05:30
Kovid Goyal
8fd5f184b7
Merge branch 'feat-cmd-output-mouse-pager' of https://github.com/page-down/kitty
2021-11-18 08:27:11 +05:30
pagedown
fe075ea795
Unset the last visited command output position
2021-11-17 23:00:27 +08:00
pagedown
37b6677608
...
2021-11-17 22:34:45 +08:00
pagedown
b91809eaa4
Allows to open the command output in pager by mouse click
2021-11-17 22:25:49 +08:00
Kovid Goyal
ca214ffe78
transfer receive: ensure open files are closed
2021-11-17 15:45:13 +05:30
Kovid Goyal
715925795f
Ignore errors in various finalizers during exit
...
This was needed for tui loop to exit cleanly when terminal i/o breaks
2021-11-17 15:43:26 +05:30
Kovid Goyal
17a48f6b9f
TUI: exit cleanly when I/O to terminal fails
2021-11-17 15:33:23 +05:30
Kovid Goyal
5c7a1d1b05
Fix typo
2021-11-17 15:19:17 +05:30
Kovid Goyal
46e51811e8
Dont rise an exception in patchfile close()
...
This allows partial transfers, by overwriting the dest file with the
tempfile even if the transfer was not completed
2021-11-17 14:34:14 +05:30
Kovid Goyal
34df7f6bc8
More docs on file transfer
2021-11-17 14:29:06 +05:30
Kovid Goyal
e8331b23d9
More file transfer docs
2021-11-17 14:12:10 +05:30
Kovid Goyal
1a92f99831
...
2021-11-17 13:55:33 +05:30
Kovid Goyal
6c95828e6e
Add a screenshot of the transfer kitten
2021-11-17 13:26:22 +05:30
Kovid Goyal
14142c320a
fix incorrect repeat counts
2021-11-17 13:24:35 +05:30
Kovid Goyal
727260e69b
...
2021-11-17 13:16:50 +05:30
Kovid Goyal
ad804cc01e
Redraw progress bar on resize
2021-11-17 13:04:07 +05:30
Kovid Goyal
dab51d33f5
...
2021-11-17 12:40:06 +05:30
Kovid Goyal
77d7a6180f
unicode input kitten: Also allow using ctrl+number to switch tabs and pressing any modifier with the function keys
2021-11-17 12:17:46 +05:30
Kovid Goyal
185669ec72
Use a shorter random id for transfers
...
Reduces overhead and we dont actually need protection against malicious
actors, only accidental collisions
2021-11-17 11:47:46 +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
18ed56b639
Handle all failed using rsync while waiting for path confirmation
2021-11-17 11:28:19 +05:30
Kovid Goyal
dc2bac0068
Only print rsync stats if some data was transferred
2021-11-17 11:18:31 +05:30
Kovid Goyal
005ab58b15
Fix single file transfer path name mapping for receive
2021-11-17 11:07:50 +05:30
Kovid Goyal
c0ff12a7de
...
2021-11-17 10:46:33 +05:30
Kovid Goyal
b11b04ef67
Start documenting the file transfer kitten
2021-11-17 10:33:37 +05:30
Kovid Goyal
c8aba303e8
Merge branch 'docs-ksi' of https://github.com/page-down/kitty
2021-11-16 22:25:18 +05:30
pagedown
555efa4b70
Docs: scrolling to the last jumped position
2021-11-17 00:31:03 +08:00
Kovid Goyal
da3c6945ae
There is no need to modify metadata.json when submitting a new theme as that is done by the gen-metadata.py script when merging
2021-11-16 21:46:46 +05:30
Kovid Goyal
12c8fe32d5
Merge branch 'doc/contributing-themes' of https://github.com/erincerys/kitty
2021-11-16 21:42:54 +05:30
Kovid Goyal
053d9df0fe
...
2021-11-16 21:41:21 +05:30
Kovid Goyal
595ab448be
Merge branch 'doc/build-deps' of https://github.com/erincerys/kitty
2021-11-16 21:39:50 +05:30
Kovid Goyal
86fec106e0
Document the new ways to browse command output
2021-11-16 21:37:08 +05:30
erin
b9b50bf7b4
Improve doc on building from source
...
- Reformat build-time dependency list for readability
- Add build-time package dep of librsync-dev
2021-11-16 07:58:02 -08:00
erin
9abd5bf743
Improve theming doc's contriubting section
...
- Add link to metadata file
- Add link to working with pull requests
- Elaborate on the minutiae of steps involved
2021-11-16 07:52:21 -08:00
Kovid Goyal
31bf212a60
Merge branch 'feat-cmd-output-mouse-sel' of https://github.com/page-down/kitty
2021-11-16 21:21:26 +05:30
Kovid Goyal
624ef272fd
Merge branch 'nvim_move_overlay_line' of https://github.com/pjm0616/kitty
2021-11-16 21:18:28 +05:30
Park, Jeongmin
7c59afbca9
Also move overlay line for CSI ECH,DCH
...
Without this Neovim banner might not be properly cleared when overlay
text is active.
2021-11-17 00:27:13 +09:00
Kovid Goyal
67a92d7dc2
Fix iterating over nested directories of depth > 1
2021-11-16 20:50:09 +05:30
pagedown
369f4125e1
...
2021-11-16 20:56:57 +08:00
pagedown
aebf654e15
Add command output mouse selection
2021-11-16 18:15:53 +08:00
Kovid Goyal
d936ede790
Finish up rsync for file receives
2021-11-16 15:10:37 +05:30
Kovid Goyal
cd4ded6132
More type checkable code
2021-11-16 14:33:37 +05:30
Kovid Goyal
1603b4b522
More work on rsync based receive
2021-11-16 14:21:42 +05:30
Kovid Goyal
0eac514e52
More rsync integration work
2021-11-16 13:06:16 +05:30
Kovid Goyal
63399fe975
Start work on rsync integration for receiving files
2021-11-16 10:58:32 +05:30
Kovid Goyal
bc03b4dff6
Add a screenshot of the themes kitten
2021-11-15 19:16:24 +05:30
Kovid Goyal
cb2a99bd0e
Merge branch 'def-conf-shortcuts' of https://github.com/page-down/kitty
2021-11-15 17:15:44 +05:30
Kovid Goyal
2cc3922108
Resizing the screen does not cause multiple consecutive output start anymore
2021-11-15 15:17:34 +05:30
Kovid Goyal
e771e1ea8a
Do not call range_line_() with unsafe parameters in find_cmd_output
2021-11-15 15:17:34 +05:30
Kovid Goyal
6afaec1d62
Use a single function for getting command output
2021-11-15 15:17:34 +05:30
Kovid Goyal
80b5f31256
Cleanup handling of types of kitten input
2021-11-15 15:17:34 +05:30
Kovid Goyal
c96e6822e1
Dont rely on historybuf->count being a constant
...
This may become dynamically resizable someday
2021-11-15 15:17:34 +05:30
pagedown
e4781b8af0
...
2021-11-15 15:17:34 +05:30
pagedown
f3dd2a8bfd
Get the first command output on screen and the last scrolled one
2021-11-15 15:17:33 +05:30
pagedown
9fe9c74021
Save the last jumped prompt position
2021-11-15 15:17:33 +05:30
pagedown
09c6c3e804
Unify modifier keys ordering ctrl+shift+alt/opt+cmd, and names
2021-11-15 17:38:07 +08:00
pagedown
f5023e3269
Unify option key names, abbreviations, and ordering
2021-11-15 17:26:37 +08:00
pagedown
2db7f559e3
Add the option key abbreviation opt
2021-11-15 17:22:20 +08:00
pagedown
b696d3f960
Include all default shortcuts in the commented config
2021-11-15 17:05:45 +08:00
Kovid Goyal
bc454b4417
Fix --long-opt= completion for bash as well
2021-11-14 13:35:36 +05:30
Kovid Goyal
aa6a800d1a
Fix completion for --long-opt= form on zsh
2021-11-14 13:28:09 +05:30
Kovid Goyal
536d6e00d9
Further simplify logic for PUA space ligatures
2021-11-14 12:47:54 +05:30
Kovid Goyal
725a04b321
Fix #4236
2021-11-14 12:42:08 +05:30
Kovid Goyal
3ff8cc58e1
Ignore invalid unicode condepoints in command lines
2021-11-14 11:59:02 +05:30
Kovid Goyal
4fc8267264
Fix #4235
2021-11-14 10:23:42 +05:30
Kovid Goyal
0965fc45f2
macOS: Fix keyboard input not working after toggling traditional fullscreen till the window is clicked in
2021-11-13 14:20:18 +05:30
Kovid Goyal
181178b0ea
macOS: use a consistent technique to get window size
...
This fixes an issue where restoring from traditional fullscreen to a
maximized state was resulting in an incorrectly sized frame buffer. Now
all framebuffer and window size calculation happens in the same way in
all the various glfw codepaths that do it.
2021-11-13 13:42:12 +05:30
Kovid Goyal
95e6e80921
Restore maximized window state when returning from fullscreen
2021-11-13 12:22:52 +05:30
Kovid Goyal
f36b71350d
Use an anonymous struct for before_fullscreen
2021-11-13 12:15:27 +05:30
Kovid Goyal
3483722475
Remove pointless code
2021-11-13 12:13:28 +05:30
Kovid Goyal
56e63baf5a
macOS: manually trigger windowDidResize when fullscreening
...
Fixes #4230
Fixes #4229
2021-11-13 11:49:55 +05:30
Kovid Goyal
0830e66e76
broadcast kitten: Show a "fake" cursor in all windows being broadcast too
...
Fixes #4225
2021-11-12 22:59:20 +05:30
Kovid Goyal
74a5d3a25e
allow multiple close and removal actions
2021-11-12 21:16:21 +05:30
Kovid Goyal
4fb29e1b6b
Infrastructure to render the unfocused cursor in multiple windows
2021-11-12 20:42:37 +05:30
Kovid Goyal
2c4f616213
Make it easier to reuse collect_cursor_info()
2021-11-12 20:31:29 +05:30
Kovid Goyal
75afe7cd33
Also move overlay line when handling SGR
2021-11-12 19:56:44 +05:30
Kovid Goyal
80eb78033f
Better name for macro
...
What it actually does is move the overlay line to the new cursor location
2021-11-12 19:51:28 +05:30
Kovid Goyal
68013e8fe7
Move overlay line for a few more commands
2021-11-12 19:38:54 +05:30
Kovid Goyal
7fe32301c4
Use __func__ instead of manually specifying function names
2021-11-12 19:23:09 +05:30
Kovid Goyal
41ddc7d33f
DRYer
2021-11-12 18:26:18 +05:30
Kovid Goyal
eff5840645
overlay line should move even when using REP
2021-11-12 18:03:37 +05:30
Kovid Goyal
ddf0242f56
Add a changelog entry for IME changes
2021-11-12 17:58:05 +05:30
Kovid Goyal
eae5c65d3e
Also move overlay when getting backspace from child
...
zsh for some reason sends this when you send it a word. Fixes #4219
2021-11-12 17:56:04 +05:30
Kovid Goyal
c85b545f8d
Add a debug print when receiving text from child while overlay is active
2021-11-12 17:43:01 +05:30
Kovid Goyal
f24dc80c49
Send IME events in the correct sequence when cocoa both inserts text and marks new text in response to the same key event
2021-11-12 17:27:37 +05:30
Kovid Goyal
9a9de0038c
Remove unused code
2021-11-12 15:10:33 +05:30
Kovid Goyal
35626d3929
Update IME position when overlay line is moved on input from child process
2021-11-12 15:07:25 +05:30
Kovid Goyal
c8f26dd968
When text is received from the terminal program and the overlay line is active move the overlay line after drawing the text
...
This ensures the overlay line follows the current cursor position
2021-11-12 15:03:24 +05:30
Kovid Goyal
7e5cb50925
macOS: Also update IME position when new window is focused
2021-11-12 09:22:36 +05:30
Kovid Goyal
ffa755c723
macOS: Ensure IME position is correct on startup
2021-11-12 09:18:34 +05:30
Kovid Goyal
a060bf7223
Also unmark text on pressing esc
...
As with backspace, without this the preedit text is not cleared when the
IME is canceled by esc
2021-11-12 08:52:32 +05:30
Kovid Goyal
4ab5d97e9b
macOS: Fix IME position incorrect after moving OS window
2021-11-12 08:51:03 +05:30
Kovid Goyal
81babd29e7
DRYer
2021-11-11 22:53:24 +05:30
Kovid Goyal
fac76ddedd
DRYer
2021-11-11 22:41:59 +05:30
Kovid Goyal
f34cc1861a
Clear marked text when text is inserted
...
This is apparently what Cocoa expects. Fixes committing pre-edit text no
longer working.
2021-11-11 22:35:02 +05:30
Kovid Goyal
bd4ed38a3c
Dump more informatin about what cocoa does when processing key events
2021-11-11 22:32:30 +05:30
Kovid Goyal
8644fed534
Only unmark on backspace key
2021-11-11 22:05:39 +05:30
Kovid Goyal
ca9fdadf3c
Dont clear marked text on every keyDown event
...
Let the input system do it for us. That wy we can hopefully use calls to
unmarkText as a signal to commit the pre-edit text.
Hopefully not clearing the marked text on key down doesnt break anything
else.
2021-11-11 21:14:53 +05:30
Kovid Goyal
228364e317
oops
2021-11-11 20:53:14 +05:30
Kovid Goyal
e65aee4533
Cleanup calls to unmarkText
2021-11-11 20:44:43 +05:30
Kovid Goyal
a1ca607f35
More work on file transmission
2021-11-11 20:05:54 +05:30
Kovid Goyal
efbf156f82
Add a note about mintty support of unscroll
2021-11-11 16:53:59 +05:30
Kovid Goyal
a2533e9a46
Render the progress bar for file receives
2021-11-11 16:32:06 +05:30
Kovid Goyal
09742af92b
Forgot to remove some debug prints
2021-11-11 14:42:11 +05:30
Kovid Goyal
880de53d59
When remembering OS window sizes for full screen windows use the size before the window became fullscreen
...
Fixes #4221
2021-11-11 14:34:02 +05:30
Kovid Goyal
91a24dd2eb
oops
2021-11-11 13:56:18 +05:30
Kovid Goyal
60e91b018a
Wrap the glfw is fullscreen API
2021-11-11 12:46:13 +05:30
Kovid Goyal
9be37f7d2d
cocoa is weird
2021-11-11 12:45:03 +05:30
Kovid Goyal
be79fc1c92
Save before fullscreen sizes even when using normal fullscreen on macOS
2021-11-11 12:40:56 +05:30
Kovid Goyal
502960bfeb
Forgot to update the GLFW wrappers
2021-11-11 12:34:57 +05:30
Kovid Goyal
d95a00df73
GLFW API to check if window is fullscreen
2021-11-11 12:33:12 +05:30
Kovid Goyal
b3a9c1a100
Better error message when KITTY_LISTEN_ON is invalid
2021-11-10 08:27:45 +05:30
Kovid Goyal
4318d2d7d0
Cleanup previous PR
...
Doesnt need a separate changelog entry as its covered by the entry for
focus_visible_window
2021-11-09 22:23:48 +05:30
Kovid Goyal
c3ff888981
Merge branch 'feat-vis-sel-custom-chars' of https://github.com/page-down/kitty
2021-11-09 22:10:00 +05:30
Kovid Goyal
7c85616dcf
Add a note about arguments to layout_action rotate
2021-11-09 21:33:55 +05:30
pagedown
353a48d913
Allows to configure the characters for visual window select
2021-11-09 21:05:31 +08:00
Kovid Goyal
4e736e83a3
Also release excess memory from pagerhist buffer when clearing
2021-11-09 10:21:47 +05:30
Kovid Goyal
57583d6b00
When clearing scrollback release used memory beyond ~2000 lines
2021-11-09 10:14:52 +05:30
Kovid Goyal
98dcb32a0c
Dedicated function to free a segment
2021-11-09 10:07:14 +05:30
Kovid Goyal
fba5e3a46d
Add note for packagers to create kitty shell integration package for servers
2021-11-08 11:56:08 +05:30
Kovid Goyal
2122304515
Only run manual shell integration is KITTY_INSTALLATION_DIR is set
...
Also add a note about how to get it to work with SSH.
2021-11-08 11:50:21 +05:30
Kovid Goyal
80dbebf0ad
Remove unused code
2021-11-08 11:43:14 +05:30
Kovid Goyal
0c160eab7b
Avoid needing to exec kitty to get manual shell integration
2021-11-08 11:37:50 +05:30
Kovid Goyal
4841502959
Use a single kitty invocation for manual shell integration
2021-11-08 11:27:10 +05:30
Kovid Goyal
8218df82f2
Add function to get path to integration script for the current shell
...
Makes setting up manual shell integration much easier. Also clean up
integration docs.
2021-11-08 11:11:16 +05:30
Kovid Goyal
fadc1b539b
Merge branch 'docs-ksi-fish' of https://github.com/page-down/kitty
2021-11-08 10:24:49 +05:30
pagedown
c8162324ed
...
2021-11-08 11:36:40 +08:00
pagedown
2c46378886
Add how the fish shell integration works and how to configure it manually
2021-11-08 11:26:15 +08:00
Kovid Goyal
cf7e43fa26
Simplify nested if
2021-11-07 19:23:31 +05:30
Kovid Goyal
b5e8b5a124
Allow users to modify XDG_DATA_DIRS in the fish rc files
...
The only downside of this new technique is that it is no
longer possible to set XDG_DATA_DIRS to an empty var in kitty.conf
Since an empty XDG_DATA_DIRS breaks lots fo things, I dont think that
is a big concern.
2021-11-07 18:59:50 +05:30
Kovid Goyal
6fa0a21b3c
Cancel visual select when its OS Window or Tab is closed
2021-11-07 18:12:50 +05:30
Kovid Goyal
c43637f6cc
Dont copy prompt start bits to multiple lines when resizing the screen
...
This makes it unnecessary to modify the prompt marking protocol to
distinguish consecutive prompts without output in between
2021-11-07 18:00:06 +05:30
Kovid Goyal
f48a430493
Use --global when re-exporting XDG_DATA_DIRS
2021-11-07 10:31:57 +05:30
Kovid Goyal
a1eb341817
...
2021-11-07 10:25:13 +05:30
Kovid Goyal
cc2419911c
shell environ modification should only happen for actual shell processes
2021-11-07 10:22:37 +05:30
Kovid Goyal
2f5d3b073d
Ignore exceptions in the environment modifier
2021-11-07 10:13:09 +05:30
Kovid Goyal
4c0a7a9566
KSI should be set even when no-rc is specified
2021-11-07 10:10:19 +05:30
Kovid Goyal
35514e0cc3
Dont change XDG_DATA_DIRS for child processes in fish shell integration
...
Fixes #4199
2021-11-07 10:06:18 +05:30
Kovid Goyal
0f23edeec3
Fix breakage caused by Color no longer being iterable
2021-11-07 07:15:55 +05:30
Kovid Goyal
69e54cb9c1
More work on file transfer
2021-11-06 20:11:11 +05:30
Kovid Goyal
60b8023928
Ensure transfer is canceled on error
2021-11-06 12:59:13 +05:30
Kovid Goyal
8099ae44d7
create fid_map after collecting files not before
2021-11-06 12:54:20 +05:30
Kovid Goyal
46f88494e3
Merge branch 'feat-sel-win-reactivate-prev-tab' of https://github.com/page-down/kitty
2021-11-06 11:44:40 +05:30
Kovid Goyal
4818ac0750
More consistent method naming
2021-11-06 11:35:08 +05:30
Kovid Goyal
d96429e6b8
When handling mouse events in visual select mode cancel the visual select if the original tab is not active any more
2021-11-06 11:34:22 +05:30
Kovid Goyal
9cda076c93
Fix restoring of OS window title after visual selection
2021-11-06 11:28:56 +05:30
Kovid Goyal
d30c761b3b
A new mappable action to close windows with a confirmation
...
Fixes #4195
2021-11-06 11:09:41 +05:30
Kovid Goyal
49a0e8e242
Move close_window from Tab to Boss
...
We might eventually implement OS Window level floating windows
and the close_window action actually used the Boss method anyway
2021-11-06 10:45:07 +05:30
Kovid Goyal
8630c7a700
Fix canceling the select window overlay not calling the callback in stack layout
2021-11-06 10:28:34 +05:30
Kovid Goyal
905fbeec14
Fix cancelling visual select not working in stack layout
2021-11-06 10:25:10 +05:30
Kovid Goyal
e1ec8dfe4f
Merge branch 'docs-confirm-os-win-close' of https://github.com/page-down/kitty
2021-11-06 09:38:40 +05:30
pagedown
93558f75f2
Docs: Explicitly clarify the scope of confirm_os_window_close in effect
2021-11-06 10:19:47 +08:00
pagedown
7a66c1a01c
Allow select-window to reactivate previously activated tab
2021-11-06 09:32:36 +08:00
Kovid Goyal
9f7b975064
Handle timeout errors in the shell
2021-11-05 23:53:29 +05:30
Kovid Goyal
8e8a0d2df6
Fix rel path logic when transferring symlinks
2021-11-05 21:39:07 +05:30
Kovid Goyal
d9f4fadf2d
More work on file transfer
2021-11-05 21:33:47 +05:30
Kovid Goyal
3f3fe6b178
Merge branch 'minor-tweaks' of https://github.com/page-down/kitty
2021-11-05 17:16:12 +05:30
pagedown
2e95cd7a62
Docs: Describes the priority order of auto bold fonts
2021-11-05 18:15:29 +08:00
pagedown
9be7345ba6
Capitalize menu item and adjust the order of menu items following the convention
2021-11-05 18:15:29 +08:00
Kovid Goyal
950edb1110
Fix symlink transmission
2021-11-05 13:18:58 +05:30
Kovid Goyal
c4b3723372
More work on file transfer
2021-11-05 13:10:04 +05:30
Kovid Goyal
119841a2c4
Respect --no-response in the kitty shell
2021-11-04 19:07:07 +05:30
Kovid Goyal
2df6f9cdda
Fix select-window in the kitty shell
2021-11-04 18:56:20 +05:30
Kovid Goyal
55868da9d3
DRYer
2021-11-04 18:01:54 +05:30
Kovid Goyal
460373803d
Merge branch 'fix-get-colors' of https://github.com/page-down/kitty
2021-11-04 18:01:13 +05:30
pagedown
abf9cce6bf
When the color is set to none get-colors should not return a color value
2021-11-04 18:27:55 +08:00
Kovid Goyal
d9c400ac32
Forgot to recalculate height_gl leading to vertically stretched characters for window numbers
2021-11-04 08:53:17 +05:30
Kovid Goyal
377607730c
Forgot to set the x-axis origin when rendering the glyph, causing right side cut-off
2021-11-03 20:57:05 +05:30
Kovid Goyal
6da5a8073c
Wayland: Apparently Java doesnt even set text/plain as a mimetype when copying text. Instead it uses UTF8_STRING and STRING.
...
So check for those as well. Am guessing whoever wrote this code in Java
just copied their old X11 shit without checking the specs. See #4183
2021-11-03 20:46:33 +05:30
Kovid Goyal
68ad513dd5
Merge branch 'fix-set-colors-err-msg' of https://github.com/page-down/kitty
2021-11-03 11:42:52 +05:30
pagedown
40ff78b1c8
Handle set colors exceptions
2021-11-03 12:55:05 +08:00
Kovid Goyal
477baf390b
DRYer
2021-11-03 09:32:49 +05:30
Kovid Goyal
76834c0975
Merge branch 'feat-visual-bell-color' of https://github.com/page-down/kitty
2021-11-03 09:13:27 +05:30
pagedown
a3b7a88e9c
...
2021-11-03 10:17:55 +08:00
pagedown
ce36b09593
Visible bell color falls back to default fg when selection bg is none
2021-11-03 10:07:57 +08:00
Kovid Goyal
ebaac70b27
Fix #4183 (paste in wyland with mime type text/plain)
2021-11-03 07:00:06 +05:30
pagedown
b4a6ed8d8f
Allows the visual bell color to be configured
2021-11-02 19:38:36 +08:00
Kovid Goyal
7c161f2d78
Check for actual executable when prepending the path
2021-11-02 15:36:03 +05:30
Kovid Goyal
39dcfb4e5d
Auto generate the list of all color config keys
2021-11-02 15:16:55 +05:30
Kovid Goyal
34d87b7a72
Another stab at PATH manipulation
2021-11-02 14:43:20 +05:30
Kovid Goyal
f2d2cfec8f
...
2021-11-02 13:54:51 +05:30
Kovid Goyal
46625d207b
Cleanup PATH manipulations
2021-11-02 08:57:44 +05:30
Kovid Goyal
f35112378f
Merge branch 'dont-rely-on-nanosecond-resolution' of https://github.com/Luflosi/kitty
2021-11-02 07:53:12 +05:30
Luflosi
bb5ded4e65
Don't rely on nanosecond resolution when testing mtime transmission
...
Commit 85cea78b3c missed a couple instances where the mtime was not a multiple of 1µs.
See https://github.com/kovidgoyal/kitty/issues/4175 .
2021-11-01 21:06:23 +01:00
Kovid Goyal
b2f406f021
put kitty in PATH before setting default env
2021-11-01 21:37:13 +05:30
Kovid Goyal
7821e2508c
Cleanup previous PR
2021-11-01 20:52:55 +05:30
Kovid Goyal
3e6cfe3275
Merge branch 'fix-kitty-env-path' of https://github.com/page-down/kitty
2021-11-01 20:41:50 +05:30
Kovid Goyal
588313b9ac
Dont re-render window chars unless needed
2021-11-01 20:38:19 +05:30
pagedown
50e4811e6d
Make sure kitty is first in the PATH and not repeatedly added when it already exists
2021-11-01 22:37:31 +08:00
pagedown
c182f95684
Make --override parameter compatible with 'env VAR=' syntax
2021-11-01 22:37:30 +08:00
Kovid Goyal
c241524663
Implement rending of visual select chars on macOS
2021-11-01 15:34:38 +05:30
Kovid Goyal
9517c3500d
Allow visually selecting upto 36 windows
...
Also dont draw the window title if the window is too small
2021-11-01 10:46:54 +05:30
Kovid Goyal
1b8978fede
Implement rendering of ASCII char with FreeType
2021-11-01 10:17:26 +05:30
Kovid Goyal
5796cbc040
Remove the seven segment shader
2021-11-01 08:42:02 +05:30
Kovid Goyal
49726384f7
Start work on rendering visual select numbers using fonts instead of seven segment display
2021-11-01 08:40:03 +05:30
Kovid Goyal
e7386735f4
Make code to load alpha mask texture re-useable
2021-11-01 07:29:04 +05:30
Kovid Goyal
ddfa653197
resizing size text should be drawn with the current foreground color
2021-11-01 07:19:17 +05:30
Kovid Goyal
fffee1049f
Function to get an alpha mask for a single char from freetype
2021-11-01 06:52:24 +05:30
Kovid Goyal
cc502163cb
Use slots number for visual selection
2021-10-31 21:20:16 +05:30
Kovid Goyal
d53d92b890
Proper handling of async responses to peers
2021-10-31 21:09:24 +05:30
Kovid Goyal
218582ced8
More work on file transfer
2021-10-31 20:05:48 +05:30
Kovid Goyal
bc1c19b4f7
Merge branch 'fix-pager-cur-pos' of https://github.com/page-down/kitty
2021-10-31 19:18:29 +05:30
Kovid Goyal
85cea78b3c
Use 13000 when testing mtime transmission as there exist some systems with a 1000ns resolution. See #4175
2021-10-31 19:13:55 +05:30
pagedown
7a9027a147
Do not report cursor position when the cursor is scrolled off the screen
2021-10-31 21:17:38 +08:00
Kovid Goyal
66db3f9764
Also sanitize various XDG* env vars when running the test suite
2021-10-31 16:21:33 +05:30
Kovid Goyal
7e84343f16
Merge branch 'remove-unused-code' of https://github.com/Luflosi/kitty
2021-10-31 16:18:37 +05:30
Luflosi
e82e57a30c
Remove unused code
...
Since 99d9cb0b0d runs all tests with HOME set to a temporary directory, this code setting the cache directory to a temporary directory is no longer needed. `cache_dir()` will choose a directory in the home directory if neither KITTY_CACHE_DIRECTORY or XDG_CACHE_HOME are set.
2021-10-31 11:42:55 +01:00
Kovid Goyal
336c7ddca8
DRYer
2021-10-31 15:41:19 +05:30
Kovid Goyal
4ffcbc8274
Wake up talk loop when not sending response to peer
2021-10-31 15:22:22 +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
6310517ff2
@ send-text: Fix reading from stdin when RC is over a socket
2021-10-31 13:55:11 +05:30
Kovid Goyal
4ff3d6a645
More work on file transfer
2021-10-31 13:12:23 +05:30
Kovid Goyal
23570cc5f7
...
2021-10-31 11:55:00 +05:30
Kovid Goyal
dc09a5183a
Exclude the currently active window when visually selecting
2021-10-31 11:37:38 +05:30
Kovid Goyal
8458b9e7d6
Allow specifying a title for @ select-window
2021-10-31 11:08:28 +05:30
Kovid Goyal
51900996ea
When selecting in stack dont exclude the active window
2021-10-31 11:05:00 +05:30
Kovid Goyal
663da130ae
Show the choose msg in the OS Window title bar during a visual select
2021-10-31 11:01:34 +05:30
Kovid Goyal
c8b1724ecf
Function to change OS Window title from python
2021-10-31 10:56:36 +05:30
Kovid Goyal
c289af8f07
When initiating a visual select make sure its tab is the active tab
2021-10-31 10:45:59 +05:30
Kovid Goyal
da7fa53b1a
Consolidate visual select cleanup in one place
...
Also ensure callback is called even when only a single window is present
and when selecting in stack
2021-10-31 10:36:23 +05:30
Kovid Goyal
d160db1bcd
...
2021-10-31 10:20:27 +05:30
Kovid Goyal
a788cd9f64
Also clear the current visual select when selecting in stack layout
2021-10-31 10:15:06 +05:30
Kovid Goyal
6997e36670
...
2021-10-31 10:11:50 +05:30
Kovid Goyal
1893b3ce0f
Store visual select in flight information in a single object
2021-10-31 10:10:20 +05:30
Kovid Goyal
576abecf7d
oops forgot to call cancel current visual select when starting a new one
2021-10-31 09:54:28 +05:30
Kovid Goyal
b9b799533b
Eh, mypy doesnt let me ignore requests on CI
2021-10-31 09:40:03 +05:30
Kovid Goyal
70a01955b8
Fix timeout of @ select-window not canceling the visual select
2021-10-31 09:38:55 +05:30
Kovid Goyal
5f9409a91d
Fix visual select failing if triggerred when there is already an active visual select
2021-10-31 09:32:12 +05:30
Kovid Goyal
32805ca968
More work on file transfer
2021-10-31 09:28:20 +05:30
Kovid Goyal
8dfb0c6675
Dont bother with type checking requests in the publish script
2021-10-31 09:25:39 +05:30
Kovid Goyal
7428d42c16
Restore environ after running tests
2021-10-31 09:20:06 +05:30
Kovid Goyal
99d9cb0b0d
Run tests with HOME set to a tempdir
2021-10-31 08:20:46 +05:30
Kovid Goyal
80ab60f1b6
Merge branch 'fix-clang-warning' of https://github.com/Luflosi/kitty
2021-10-30 20:30:27 +05:30
Luflosi
a1d24028b8
Fix Clang warning
...
Without this, kitty fails to compile:
```
glfw/cocoa_init.m:462:14: error: case value not in enumerated type
'NSEventModifierFlags' (aka 'enum NSEventModifierFlags')
[-Werror,-Wswitch]
case (NSEventModifierFlagShift | NSEventModifierFlagOption):
^
glfw/cocoa_init.m:465:14: error: case value not in enumerated type
'NSEventModifierFlags' (aka 'enum NSEventModifierFlags')
[-Werror,-Wswitch]
case (NSEventModifierFlagShift | NSEventModifierFlagCommand):
^
```
I thought about changing the type of the `modifierFlags` function parameter from `NSEventModifierFlags` to `NSUInteger` since `NSEventModifierFlags` is defined as an enum according to https://developer.apple.com/documentation/appkit/nseventmodifierflags?language=objc and is technically not the proper type for a bit field. But since Apple themselves define `modifierFlags` as `NSEventModifierFlags` according to https://developer.apple.com/documentation/appkit/nsevent/1534405-modifierflags?language=objc , I think the fix in this commit is better.
This warning was introduced with commit f9944e6140 .
2021-10-30 16:25:20 +02:00
Kovid Goyal
d03f4dbc98
More work on file transfer
2021-10-30 16:54:27 +05:30
Kovid Goyal
f1573654b9
Update changelog for previous PR
2021-10-30 15:16:11 +05:30
Kovid Goyal
e703103fa8
Merge branch 'bgimage-options' of https://github.com/itepechi/kitty into bg
2021-10-30 15:04:41 +05:30
Kovid Goyal
6241369b6c
Cancel an async request on timeout so no spurious data is sent to the tty
2021-10-30 14:46:48 +05:30
Kovid Goyal
2a637e4220
Simplify sending of async response
2021-10-30 14:10:09 +05:30
Kovid Goyal
816360c275
A new remote control command to visually select a window
...
Fixes #4165
2021-10-30 13:56:48 +05:30
Kovid Goyal
c541d7e349
Document --self in the launch rc protocol
2021-10-30 12:36:58 +05:30
Kovid Goyal
df70d8661a
Pass the peer id to commands
2021-10-30 12:29:27 +05:30
Kovid Goyal
c3daa969fa
Allow individual commands to control the response timeout
2021-10-30 12:20:37 +05:30
Kovid Goyal
66a7c3bc4d
Simplify handling of --no-response
2021-10-30 12:15:37 +05:30
Kovid Goyal
3553b3ce3d
Pass the peer id to python for potentially async replies
2021-10-30 08:31:13 +05:30
itepechi
9289c2de69
Refactor background_image_anchor for cleaner code
2021-10-30 04:34:33 +09:00
itepechi
dac1612cb0
Calculate background image position on the GPU
2021-10-30 04:34:33 +09:00
itepechi
87d79c7415
Change the naming of directions in option background_image_anchor for consistency
...
Replaced cardinal directions with "relative" directions.
2021-10-30 04:34:33 +09:00
itepechi
86d7aaa03a
Add clamped to option background_image_layout
2021-10-30 04:34:33 +09:00
itepechi
cae31ab336
Read/Write bganchor directly from the options' state
...
Slight performance improvement, maybe?
Also, `kitty/graphics.h` has been reverted to the original version;
this version would be better in that aspect too.
2021-10-30 04:34:32 +09:00
itepechi
2aa01c58a1
Add option background_image_anchor to configure bgimage position
2021-10-30 04:34:32 +09:00
Kovid Goyal
ee852cf5fc
More work on file transmission
2021-10-29 21:52:49 +05:30
Kovid Goyal
5eb87b9f10
Micro-optimizations of fish sheel integration script
...
By @page-down
2021-10-29 21:51:48 +05:30
Kovid Goyal
820a893d75
More work on file transfer
2021-10-29 15:01:31 +05:30
Kovid Goyal
ce823e4b08
Fix incorrect scissoring for window resize counter
...
It uses draw_graphics, which uses a scissor, but the scissor was set by
the last call to draw_cells() which is not called during a resize,
leaving us with an incorrect scissor.
Fixes #4160
2021-10-28 21:45:15 +05:30
Kovid Goyal
21830048c9
Fix reading session from STDIN not working when used with --single-instance
...
Fixes #4155
2021-10-28 17:00:54 +05:30
Kovid Goyal
1251f9ec80
Keep the list of nullable colors up to date automatically
2021-10-28 15:21:42 +05:30
Kovid Goyal
4839cbe9d0
...
2021-10-28 15:04:36 +05:30
Kovid Goyal
702bfccfa2
Allow reverse video for the mouse selection
...
Fixes #646
2021-10-28 15:01:48 +05:30
Kovid Goyal
28386cc496
Fix nulling selection_fg not working
2021-10-28 14:38:35 +05:30
Kovid Goyal
0c1a7347db
Mark another nullable color
2021-10-28 14:38:09 +05:30
Kovid Goyal
c06a03ab96
Avoid very low contrast colors for reverse video cursor
2021-10-28 14:14:38 +05:30
Kovid Goyal
93dbcab10a
Refactor code to get cell colors
2021-10-28 13:35:30 +05:30
Kovid Goyal
5f12fbc2ee
Convenient aliases
2021-10-28 11:18:16 +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
40c046f86b
ooops
2021-10-28 08:17:16 +05:30
Kovid Goyal
aee5c317f6
...
2021-10-28 08:12:35 +05:30
Kovid Goyal
0fdafd8398
Allow rendering the cursor with reverse video
...
Also clean up handling of dynamic global colors.
TODO: Implement none for selection_fg
TODO: Add some tests
TODO: Check that changing colors via remote control works
Fixes #126
2021-10-28 00:21:12 +05:30
Kovid Goyal
3ca3c67828
Remove unused code
2021-10-27 17:15:45 +05:30
Kovid Goyal
336bc2c0e6
Update include path for fish integration script
2021-10-27 16:54:54 +05:30
Kovid Goyal
d3a3f99848
Use an env var for fish shell integration
...
Less intrusive (in some ways) than adding symlinks to ~/.config/fish
Exploits the fact that fish loads scripts from XDG_DATA_DIRS on startup.
Thanks to @page-down for noticing
2021-10-27 14:59:11 +05:30
Kovid Goyal
d31935b8eb
Old python compat
2021-10-27 14:23:07 +05:30
Kovid Goyal
13928d4d35
When showing last command output and similar cursor less text with the scrollback pager set CURSOR_LINE and CURSOR_COLUMN to 0
2021-10-27 14:20:33 +05:30
Kovid Goyal
212af78032
Turn on strict checks for mypy
2021-10-27 14:00:38 +05:30
Kovid Goyal
60472fcee3
Add more type annotations
2021-10-27 14:00:29 +05:30
Kovid Goyal
c899eb4ee3
Add more type annotations
2021-10-27 13:44:12 +05:30
Kovid Goyal
d090db380f
Add more type annotations
2021-10-27 13:26:18 +05:30
Kovid Goyal
a26f041964
Add more type annotations
2021-10-27 12:31:10 +05:30
Kovid Goyal
b22bda3cba
Add more type annotations
2021-10-27 11:36:34 +05:30
Kovid Goyal
69e903a4c4
Add more type annotations
2021-10-27 11:13:28 +05:30
Kovid Goyal
6f19fd5912
Add more type annotations
2021-10-27 10:50:24 +05:30
Kovid Goyal
9c2f96f7eb
Add more type annotations
2021-10-27 08:45:45 +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
5cb36a4632
More work on file transfer
2021-10-26 22:05:38 +05:30
Kovid Goyal
9b7342b231
Mark output before running command
...
This will help with shell integration erasing the prompt if there is a
resize caused by the command
2021-10-25 20:40:55 +05:30
Kovid Goyal
01ebc8f15a
Use a space as content placeholder when resizing
2021-10-25 20:05:26 +05:30
Kovid Goyal
472baf7337
DRYer
2021-10-25 18:12:48 +05:30
Kovid Goyal
c381716ecf
Specify we need alpha as well
2021-10-25 17:15:46 +05:30
Kovid Goyal
0e08c6c660
Fix a one pixel line not being drawn at the bottom edge of the fat and tall layouts
2021-10-25 15:28:49 +05:30
Kovid Goyal
6da79ab614
Reset draw data default bg when background is changed
2021-10-25 12:40:36 +05:30
Kovid Goyal
a44a3195ab
Ensure border rects are updated when patching colors
2021-10-25 12:37:29 +05:30
Kovid Goyal
f78feb5abf
Allow very long middle clicks to close tabs
2021-10-25 12:23:54 +05:30
Kovid Goyal
4385acd3c6
A new option to set the tab bar margin color independently
2021-10-25 12:21:46 +05:30
Kovid Goyal
c0927a3643
Fix rendering of tab bar right margin
2021-10-25 11:39:04 +05:30
Kovid Goyal
37692119e1
Close tab on middle click release not press
...
Fixes the problem of close causing the tabbar to disappear which could
cause the subsequent release to be delivered to the remaining kitty
window
2021-10-25 10:56:10 +05:30
Kovid Goyal
0f193141af
Add support for OSC 777 based desktop notifications
...
Might as well, since we also support OSC 9, so why not yet another
poorly designed legacy scheme.
2021-10-25 10:46:00 +05:30
Kovid Goyal
24d5fc5f15
Add changelog entries for all the tab bar changes
2021-10-25 10:27:59 +05:30
Kovid Goyal
1ab8d58bf7
Ensure right margin is drawn
2021-10-25 10:27:47 +05:30
Kovid Goyal
691bf75b35
Fix tab bar not being redrawn when colors changed by set-colors
...
Fixes #4152
2021-10-25 10:17:48 +05:30
Kovid Goyal
63e23d7fe3
Fix set-colors unable to set tab_bar_background to none
2021-10-25 10:04:25 +05:30
Kovid Goyal
23d0db5458
...
2021-10-25 09:17:29 +05:30
Kovid Goyal
71c62664cd
Fix tab bar background not being update in the shader when using set-colors
2021-10-25 09:11:23 +05:30
Kovid Goyal
c9faf5dd59
Extra update_blank_colors() call is not needed
2021-10-25 09:02:08 +05:30
Kovid Goyal
baf080f147
Tab bar left margin should be drawn in the same background color as the other margins
2021-10-25 09:00:49 +05:30
Kovid Goyal
0e29ee9299
...
2021-10-25 08:48:28 +05:30
Kovid Goyal
d52e5fab1e
Merge branch 'master' of https://github.com/python-pitfalls/kitty
2021-10-25 08:43:08 +05:30
Naelson Douglas
9f442eb7e4
removed a consider-using-in pitfall case
2021-10-25 00:04:23 -03:00
Kovid Goyal
0d94ca5399
Better fix for closing non-active tab
2021-10-25 08:11:50 +05:30
Kovid Goyal
13b900faf7
Activate tab before closing on middle click
...
Also fix compilation on macOS
2021-10-25 07:50:05 +05:30
Kovid Goyal
32ad75c5ab
Workaround mypy bug
2021-10-24 23:03:33 +05:30
Kovid Goyal
7a45653575
...
2021-10-24 22:59:50 +05:30
Kovid Goyal
b316e97a4f
Allow middle clicking on a tab to close it
...
Fixes #4151
2021-10-24 22:56:30 +05:30
Kovid Goyal
6c7420f4e7
Add a comment explaining why we do 1,1,1,0
2021-10-24 13:40:18 +05:30
Kovid Goyal
80a357623d
Linux X11: Add support for 10bit colors
...
Fixes #4150
2021-10-24 13:19:05 +05:30
Kovid Goyal
0a4dfa8fd2
macOS: Prevent resizing of fullscreen OS windows as it leads to visual artifacts
2021-10-24 12:38:44 +05:30
Kovid Goyal
4604558d35
Add some more docs for cursor_shape
2021-10-24 08:22:01 +05:30
Kovid Goyal
089ab9ee9f
Use a pre zsh 5.5 syntax for assoc arrays
2021-10-24 08:16:44 +05:30
Kovid Goyal
4fb804efc6
...
2021-10-23 18:55:55 +05:30
Kovid Goyal
5b2ba448b6
Only modify .zshrc to add shell integration if it already exists
2021-10-23 18:54:59 +05:30
Kovid Goyal
899b5078eb
bash integration: fix newline replace in PS1
2021-10-23 18:48:45 +05:30
Kovid Goyal
edd423aad6
macOS; Fix restoring from fullscreen when resize increments are enabled
2021-10-23 13:06:47 +05:30
Kovid Goyal
518e0f4e21
oops
2021-10-22 12:52:57 +05:30
Kovid Goyal
7546e53c23
...
2021-10-22 12:47:32 +05:30
Kovid Goyal
0f9944190d
Shell integration: Better fix for multi-line prompts in bash
...
Also fix bash redrawing only the last PS2 prompt
2021-10-22 12:19:03 +05:30
Kovid Goyal
18aca275c8
Only libedit doesn't redraw GNU readline does
2021-10-22 12:08:06 +05:30
Kovid Goyal
6d02ef59f8
Shell integration: Fix PS2 support
...
zsh only redraws the prompt from the last PS2 on a multiline prompt.
Take this into account.
2021-10-22 12:02:21 +05:30
Kovid Goyal
729cea88f3
More sophisticated OSC 133 parsing with support for secondary prompts
2021-10-22 11:54:54 +05:30
Kovid Goyal
9b957a1fdb
handle shlex exceptions gracefully
2021-10-22 05:12:12 +05:30
Kovid Goyal
e18b0cd4c8
When a window is moved but not resized, ensure the OS Window is re-rendered
2021-10-22 04:15:47 +05:30
Kovid Goyal
b51be8382f
Transmit home directory when sending so filenames can be resolved
...
Also only send metadata if permission granted by user
2021-10-21 20:06:53 +05:30
Kovid Goyal
a95a1f1158
Specify languages for CodeQL
2021-10-21 19:43:52 +05:30
Kovid Goyal
be8fc47c5f
Also report enabled_layouts in kitty @ ls
2021-10-21 16:41:05 +05:30
Kovid Goyal
4fd76b09d9
kitty @ ls: Also report layout options
2021-10-21 13:44:06 +05:30
Kovid Goyal
6546c1da9b
run pyupgrade to upgrade the codebase to python3.6
2021-10-21 12:43:55 +05:30
Kovid Goyal
8f0b3983ee
Apparently only importlib_resources has actually deprecated contents()
2021-10-20 11:15:51 +05:30
Kovid Goyal
7f2ce045ab
Handle deprecation of importlib.resources APIs
2021-10-19 09:14:58 +05:30
Kovid Goyal
38f1fe7742
Make --override parsing a little more forgiving
...
Handle option values with = in them even if the user uses a space
as a separator rather than an =
2021-10-18 22:44:10 +05:30
Kovid Goyal
a099d2364d
kitty should not quit if an invalid set_colors mapping is configured
2021-10-18 21:20:48 +05:30
Kovid Goyal
5f91084968
More work on file transfer
2021-10-18 13:02:37 +05:30
Kovid Goyal
cb9321e925
handle comma separated layout lists as well
2021-10-17 18:34:02 +05:30
Kovid Goyal
716ff187f9
kitty @ set-enabled-layouts
...
Fixes #4129
2021-10-17 18:30:34 +05:30
Kovid Goyal
16365f2014
When creating tabs via @ launch with the --match option create the tab in the OS Window containing the result of the match rather than the active OS Window
...
Fixes #4126
2021-10-17 13:27:52 +05:30
Kovid Goyal
0fa03da18c
...
2021-10-17 12:54:55 +05:30
Kovid Goyal
a4a7d49bed
A new swap_with_window mappable action
...
Allows visual selection of a window to swap with the current window
2021-10-17 12:52:08 +05:30
Kovid Goyal
0de319fc73
Refactor visual window select infrastructure to make it reuseable
2021-10-17 12:38:03 +05:30
Kovid Goyal
c06823dd47
Function to swap active window with another
2021-10-17 11:42:02 +05:30
Kovid Goyal
f9944e6140
Pass through more modifier+tab variants
2021-10-17 11:31:54 +05:30
Kovid Goyal
426815f7ab
Silence CodeQL warning
2021-10-17 10:32:25 +05:30
Kovid Goyal
2a842e36a1
Finish up title rendering for CoreText
2021-10-17 08:26:35 +05:30
Kovid Goyal
90dfabc644
Use realpath() when reporting kitty_exe
2021-10-17 06:30:26 +05:30
Kovid Goyal
f302c2ae39
Binary builds: If a symlink to the correct kitty executable is already in PATH, dont add the binary bin dir to PATH
2021-10-17 06:29:01 +05:30
Kovid Goyal
93aee3946f
Partial work on macOS title rendering
2021-10-16 19:12:38 +05:30
Kovid Goyal
4b7de5d802
Add an alias for --keep-focus
2021-10-16 19:02:15 +05:30
Kovid Goyal
78c63e6a18
Show window titles during visual select
...
Still has to be implemented on macOS
2021-10-15 14:19:56 +05:30
Kovid Goyal
dcda2bff69
Handle more than 10 windows when doing a visual switch
2021-10-15 14:05:54 +05:30
Kovid Goyal
372c4da8f9
When drawing cells make the window object available
2021-10-15 10:25:11 +05:30
Kovid Goyal
a95025752a
DRYer
2021-10-15 09:56:22 +05:30
Kovid Goyal
a16ffcdde2
Handle mouse clicks when displaying focus window overlay
2021-10-15 09:55:15 +05:30
Kovid Goyal
3c2e521dd7
Make blending of foreground more efficient
...
Avoids an unnecessary reversal of premultiplication when rendering
interleaved. Also fixes rendering on wayland which for some reason was
using a different blend function than X11. Fixes #4120
2021-10-14 21:31:20 +05:30
Kovid Goyal
f28d9bcd8c
Change sybolic constant for insert key
2021-10-14 21:05:21 +05:30
Kovid Goyal
c6039fc399
Also passthrough Insert and Shift+Insert which cocoa seems to intercept
2021-10-14 20:27:22 +05:30
Kovid Goyal
706494016c
More work on file transmission
2021-10-14 18:29:02 +05:30
Kovid Goyal
a653233050
Fix #4117
2021-10-14 14:31:11 +05:30
Kovid Goyal
ed5accd702
Add some common readline bindings to the line editor
2021-10-14 14:29:44 +05:30
Kovid Goyal
3a247be758
cleanups
2021-10-14 14:07:02 +05:30
Kovid Goyal
d417aedde0
Allow use of numpad for window select overlay
2021-10-14 12:14:11 +05:30
Kovid Goyal
967aaad482
...
2021-10-14 10:07:54 +05:30
Kovid Goyal
9c4942b190
Ensure mouse cursor shape is correct
...
Previously, the shape was only set on focus in events and when hovering
urls. However, on macOS there are no focus events generated when the
mouse moves between the window and the titlebar/menubar, thus causing
incorrect mouse shape.
Fix #4118
2021-10-14 10:05:44 +05:30
Kovid Goyal
67fd07a92a
...
2021-10-14 09:57:35 +05:30
Kovid Goyal
533b0ed591
A new mappable action select_window_in_tab to select a window in the current tab to switch to, by window title
...
Also when using the focus_visible_window action in a layout that shows
only a single window such as the stack layout, use this facility
automatically.
2021-10-14 09:19:22 +05:30
Kovid Goyal
3f1a0baa84
DRYer
2021-10-14 08:57: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
a3717436b6
macOS: Fix resize_in_steps not working correctly on high DPI screens
...
See #4114
2021-10-12 14:39:06 +05:30
Kovid Goyal
7852e0b618
Clarify docs
2021-10-12 12:54:51 +05:30
Kovid Goyal
5afb16ab8d
A new remote control command to change tab color
...
Fixes #1287
2021-10-12 12:48:25 +05:30
Kovid Goyal
8187ec2cef
...
2021-10-12 12:32:15 +05:30
Kovid Goyal
d55d8ac091
...
2021-10-12 10:40:25 +05:30
Kovid Goyal
e13c34c2b8
Use a bar cursor for LineEdit
2021-10-12 09:13:06 +05:30
Kovid Goyal
8630c8830a
Implement shell integration for the kitty shell
2021-10-12 09:05:53 +05:30
Kovid Goyal
da3f34603a
DRYer
2021-10-12 07:41:52 +05:30
Kovid Goyal
97a8ff3478
Fix #4113
2021-10-12 07:35:11 +05:30
Kovid Goyal
2548896656
Dont visually focus select if only one window present
2021-10-11 20:37:59 +05:30
Kovid Goyal
572df007df
Add a default shortcut for visually focusing windows
...
Fixes #4110
2021-10-11 20:28:58 +05:30
Kovid Goyal
440640bbbc
A mappable action to visually select the window to focus with the keyboard
2021-10-11 20:18:35 +05:30
Kovid Goyal
563b7ad2d0
Linux binary builds: Fix Pygments not being included
2021-10-11 20:00:56 +05:30
Kovid Goyal
b180702c97
clarify language
2021-10-11 19:06:38 +05:30
Kovid Goyal
c3f4e734f1
API to set screen window number
2021-10-11 18:00:18 +05:30
Kovid Goyal
61a56a0561
macOS: Fix very first keypress after window creation being sent as a repeat instead of a press event
...
Now the dummy event on input source changed is sent with no key and only
after an actual change instead of on startup as well.
2021-10-11 12:30:42 +05:30
Kovid Goyal
820fb6dda9
Pass through all esc + modifier combinations since they arent generally used in macOS
2021-10-11 11:27:24 +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
dc11b76bea
Restrict the overridden cocoa global shortcuts
2021-10-11 06:46:59 +05:30
Kovid Goyal
2b9408c217
macOS: Fix ctrl or cmd with Esc or Function keys not working
...
Fixes #4109
2021-10-10 21:39:20 +05:30
Kovid Goyal
5e033773dd
More work on transfer sending
2021-10-10 13:04:47 +05:30
Kovid Goyal
855681200f
...
2021-10-08 15:51:45 +05:30
Kovid Goyal
456564f377
Small text clarification for rendering strategy
2021-10-07 18:31:18 +05:30
Kovid Goyal
828e16b45d
...
2021-10-07 13:59:19 +05:30
Kovid Goyal
9289ebf9c9
Old python compat
2021-10-07 13:51:55 +05:30
Kovid Goyal
f4b6cc6628
Forgot the key the is_gcc cache by cc
2021-10-07 13:43:12 +05:30
Kovid Goyal
853f7cc59a
Make handling of CC more robust
...
Allows multi-command compilers and makes detection of gcc more robust.
Fixes #4102
2021-10-07 13:35:56 +05:30
Kovid Goyal
5841776c65
Add the BEGIN key to terminfo
...
Fixes #4101
2021-10-07 13:15:06 +05:30
Kovid Goyal
fbf47f75d5
Fix soft hyphens not being preserved when round tripping text through the terminal
...
Also roundtrip all characters in the Cf category.
Characters with the DI (Default Ignorable) property are now
preserved but not rendered and treated as zero-width
as per the unicode standard.
See https://www.unicode.org/faq/unsup_char.html
2021-10-07 12:44:22 +05:30
Kovid Goyal
1b42f69119
Allow specifying extra lib dirs as well
...
Also use the extra include and lib dirs when detecting librsync
2021-10-06 10:23:01 +05:30
Kovid Goyal
a1b532334e
Alias for --extra-include-dirs
2021-10-06 08:08:44 +05:30
Kovid Goyal
edac0e8023
Check for utmpx.h instead of __unix__
...
There is no reliable macro to test for UNIX
2021-10-05 11:58:09 +05:30
Kovid Goyal
498d3d5906
More cleanups
2021-10-05 11:58:06 +05:30
Kovid Goyal
57152a8e29
Fix utmp test
2021-10-05 11:41:18 +05:30
Kovid Goyal
35d4e2d4e0
Clean up previous PR
2021-10-05 11:36:29 +05:30
Kovid Goyal
fe42b15ec6
Merge branch 'master' of https://github.com/mattfbacon/kitty
2021-10-05 11:15:12 +05:30
Matt Fellenz
1d4a86594b
Add tests for UTMP methods
2021-10-04 20:49:48 -07:00
Matt Fellenz
072e583835
Properly evaluate /etc/issue placeholders
2021-10-04 20:49:48 -07:00
Kovid Goyal
463133abbe
Fix #4095
2021-10-05 07:20:40 +05:30
Kovid Goyal
34d6c69b2a
fix forgotten import
2021-10-04 21:40:07 +05:30
Kovid Goyal
14d36e3727
Stub for receive in the transfer kitten
2021-10-04 21:31:02 +05:30
Kovid Goyal
ed95f7dfa0
Add a note about discarding key presses
2021-10-04 21:30:11 +05:30
Kovid Goyal
f93a10da48
Add a heart
2021-10-04 14:23:42 +05:30
Kovid Goyal
31e623afb3
Add support for Unicode 14
...
Fixes #3542
2021-10-04 14:00:35 +05:30
Kovid Goyal
2080b3d7fa
Print out rsync stats
2021-10-03 13:40:53 +05:30
Kovid Goyal
a8e06a67c2
Better message when transferring rsync signatures
2021-10-03 13:29:50 +05:30
Kovid Goyal
42a79cb269
...
2021-10-03 13:08:46 +05:30
Kovid Goyal
1ba9cd6138
Avoid progress messages with no actual progress
2021-10-03 13:06:38 +05:30
Kovid Goyal
37f3328147
Fix patching failing when decompressor produces no output
2021-10-03 12:57:32 +05:30
Kovid Goyal
df1ecad7e9
Fix failing test
...
Ignore progress messages in the tests
2021-10-03 12:01:41 +05:30
Kovid Goyal
5699c3ae7d
Dont spin report done files
2021-10-03 11:58:24 +05:30
Kovid Goyal
1877a02378
Dont count dirs in transfer stats
2021-10-03 11:30:08 +05:30
Kovid Goyal
e9f344c53f
Improve progress reporting for individual files
2021-10-03 11:26:49 +05:30
Kovid Goyal
d15763f2ad
Dont show transfer stats for non regular files
2021-10-03 11:16:07 +05:30
Kovid Goyal
76eab44f53
Have the receiving side send progress updates
...
This is both more accurate and works for rsync based transfers, where we
dont know the total size to transmit because of the streaming nature of
the rsync protocol.
2021-10-03 11:04:46 +05:30
Kovid Goyal
3a373a200c
Add a tell() method to PatchFile to track how much has been written
2021-10-03 10:18:28 +05:30
Kovid Goyal
f6e518d2f9
DRYer
2021-10-02 12:06:56 +05:30
Kovid Goyal
14f9f64bce
Fix chunking of signature for transmission
2021-10-02 11:47:29 +05:30
Kovid Goyal
c79a0108a1
Remove unneeded code
2021-10-02 11:24:43 +05:30
Kovid Goyal
20fcc5e31b
DRYer
2021-10-02 11:16:47 +05:30
Kovid Goyal
01299421ee
Fix typo causing test to fail
2021-10-02 11:07:34 +05:30
Kovid Goyal
5729e33412
librsync actually blocks on output buffer size as well as input availability. So handle that
2021-10-02 09:26:35 +05:30
Kovid Goyal
f85f39e662
Code to easily develop librsync bindings
2021-10-02 07:22:33 +05:30
Kovid Goyal
0e9be57119
...
2021-10-02 06:25:57 +05:30
Kovid Goyal
ffd7b5779b
Fix end of data not being sent when using rsync
2021-10-02 06:15:06 +05:30
Kovid Goyal
1d1d55e2b4
Fix #4084
2021-10-02 05:10:59 +05:30
Kovid Goyal
3cea8f24d4
...
2021-10-02 04:58:47 +05:30
Kovid Goyal
d6a43a7729
Dont turn on disambiguate keys when receiving th XTMODKEYS escape code
...
See #4075
2021-10-01 21:26:27 +05:30
Kovid Goyal
cfeeec95fa
Start work on delta based file transmission
2021-10-01 17:26:27 +05:30
Kovid Goyal
e6cff61f99
Move management of destination file completely into PatchFile
2021-10-01 14:29:14 +05:30
Kovid Goyal
eeb02ceef4
Shell integration: Workaround bash not redrawing multiline prompts
2021-10-01 09:30:26 +05:30
Kovid Goyal
eaa0ec4fc3
...
2021-10-01 07:57:21 +05:30
Kovid Goyal
91a719f80e
fix query URL
2021-10-01 07:54:04 +05:30
Kovid Goyal
06f67e4765
typo in comment
2021-09-30 14:27:22 +05:30
Kovid Goyal
7530bfd1a1
lang -> source_ext since it is now file extension not language name
2021-09-30 14:25:48 +05:30
Kovid Goyal
abf6a3f91d
Fix #4080
2021-09-30 14:23:19 +05:30
Kovid Goyal
21d3856e90
Another attempt at fixing fish cursor movement
2021-09-30 14:17:01 +05:30
Kovid Goyal
2304d0ec5c
Ignore extra zero in escape code to manipulate window title stack
...
See https://github.com/weechat/weechat/issues/1702
2021-09-30 09:16:51 +05:30
Kovid Goyal
5cafe198bf
icat: Fix EXIF orientation not taken into account when resizing
2021-09-30 08:45:41 +05:30
Kovid Goyal
4ce2690bd2
DRYer
2021-09-30 08:39:27 +05:30
Kovid Goyal
ea186ac48d
Fix click to move cursor in fish multiline text
...
Thanks to @ridiculousfish, see: https://github.com/kovidgoyal/kitty/issues/3948#issuecomment-930458949
2021-09-30 07:44:30 +05:30
Kovid Goyal
9ab5a03f53
Fix movement of cursor when clicking and dual width chars are present in zsh
2021-09-30 07:38:44 +05:30
Kovid Goyal
7650c8bca9
Remove premature changelog entry
2021-09-29 20:42:06 +05:30
Kovid Goyal
3728d2cfd9
Add changelog entry for previous PR
2021-09-29 19:43:33 +05:30
Kovid Goyal
3214ba4541
Merge branch 'ibus_forward_key_event' of https://github.com/pjm0616/kitty
2021-09-29 19:36:44 +05:30
Park, Jeongmin
4232904055
ibus: Add support for ForwardKeyEvent signal
...
The ForwardKeyEvent ibus signal is used to maintain ordering between CommitText events and non-IME key events.
The ordering is important for Korean IMEs, where it automatically commits text whenever a character is fully composed. This is different from Chinese/Japanese IMEs, where user manually presses a key to commit each word.
Without this patch, kitty can't handle non-IME key events when used with ibus-hangul, which utilizes ForwardKeyEvent signal.
Without ForwardKeyEvent:
```
key | sequence of events from application's view
r | UpdatePreeditText 'ㄱ'
k | UpdatePreeditText '가'
1 | (receives the reply to ProcessKeyEvent call: "native_key: 0x31 release: 0 handled: 0")
| -> UpdatePreeditText ''
| -> CommitText '가'
```
Application receives "1가", which is incorrect.
With ForwardKeyEvent:
```
key | sequence of events from application's view
r | UpdatePreeditText 'ㄱ'
k | UpdatePreeditText '가'
1 | (receives the reply to ProcessKeyEvent call: "native_key: 0x31 release: 0 handled: 1", and kitty discards the event)
| -> UpdatePreeditText ''
| -> CommitText '가'
| -> ForwardKeyEvent keysym=0x31("1")
```
Application receives "가1", which is correct.
Relevant ibus-hangul github issue to implement ForwardKeyEvent: https://github.com/libhangul/ibus-hangul/issues/42
Relevant changes in Qt to handle ForwardKeyEvent: https://codereview.qt-project.org/c/qt/qtbase/+/212179 , https://codereview.qt-project.org/c/qt/qtbase/+/255587
2021-09-29 21:20:09 +09:00
Kovid Goyal
baf8976c2d
Keep global_watchers immutable
2021-09-29 14:39:48 +05:30
Kovid Goyal
b3ae857f3c
...
2021-09-29 14:25:13 +05:30
Kovid Goyal
8be0dd0d8e
Restore the --watcher command line option for backwards compat
...
It is now deprecated but not removed. And it now applies to all windows
not just initially created ones.
2021-09-29 14:18: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
7a16ef2cc4
...
2021-09-29 13:21:42 +05:30
Kovid Goyal
a0cee13652
Also turn on extended key reporting for CSI > 4; 2 m
...
This is supported by XTerm and used by vim. Fixes #4075
2021-09-29 11:12:01 +05:30
Kovid Goyal
a3b434d2fe
...
2021-09-29 11:01:30 +05:30
Kovid Goyal
36ab05f003
DRYer
2021-09-29 10:59:42 +05:30
Kovid Goyal
35dee0c46e
Dont list all releases when publishing, instead just query the API for the existing release directly
2021-09-29 10:52:51 +05:30
Kovid Goyal
cb1858ecc8
Remove unused import
2021-09-29 10:33:04 +05:30
Kovid Goyal
10fbf36e92
Silence bells caused by cursor movement after click at prompt
2021-09-29 10:27:13 +05:30
Kovid Goyal
3c3e97aa6e
Fix moved status not being returned to python
2021-09-29 08:37:26 +05:30
Kovid Goyal
f353380e86
Fix #4074
2021-09-29 08:08:29 +05:30
Kovid Goyal
b1375e5ed1
ask kitten: Allow clicking on a choice to select it
...
Fixes #4071
2021-09-28 20:13:11 +05:30
Kovid Goyal
44bcbc4823
Make it easier to handle simple click events
2021-09-28 20:12:55 +05:30
Kovid Goyal
a402a3ad12
Fix release not reporting button in sgr pixel protocol
2021-09-28 16:20:32 +05:30
Kovid Goyal
343eb56cdf
Fix import of MouseEvent
2021-09-28 15:46:35 +05:30
Kovid Goyal
3efa8b6322
In SGR_PIXEL_MODE report pixel co-ords outside of window when dragging
2021-09-28 15:14:29 +05:30
Kovid Goyal
7cd72f344d
Update link
2021-09-28 14:23:49 +05:30
Kovid Goyal
066dfc71aa
A kitten to demo mouse handling
2021-09-28 13:48:56 +05:30
Kovid Goyal
769cd9be3f
DRYer
2021-09-28 13:31:06 +05:30
Kovid Goyal
0f9d6a1e4a
Forgot to clear screen before drawing
2021-09-28 12:56:19 +05:30
Kovid Goyal
3c742a0037
Use pixel mode for mouse tracking in kittens
2021-09-28 12:46:41 +05:30
Kovid Goyal
9a3d99515f
Add support for reporting mouse events with pixel co-ordinates using the SGR_PIXEL_PROTOCOL introduced in xterm 359
2021-09-28 11:41:35 +05:30
Kovid Goyal
f3447d187d
Allow handlers to ask for mouse events
2021-09-28 09:32:53 +05:30
Kovid Goyal
276696414e
Use a full handler for choices in the ask kitten
2021-09-28 09:14:34 +05:30
Kovid Goyal
7d41aca0e4
More word selection direction change fixes
2021-09-27 20:42:22 +05:30
Kovid Goyal
c71d8fe1cc
Fix #4070
2021-09-27 17:29:22 +05:30
Kovid Goyal
cc261db606
...
2021-09-27 12:02:23 +05:30
Kovid Goyal
7e17ed21ce
Use the atomic update decorator everywhere
2021-09-27 12:00:33 +05:30
Kovid Goyal
b1f4b2d8ed
Use pending updates for unicode input kitten
...
Avoids all possibility of flicker
2021-09-27 11:33:21 +05:30
Kovid Goyal
9cb5f6d9d7
Add changelog entry for last PR
2021-09-27 11:18:47 +05:30
Kovid Goyal
f3177d8878
Merge branch 'unicode-input-scroll-4064' of https://github.com/dusanx/kitty
2021-09-27 11:17:42 +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
b70064d1be
Use a default set of ssh options if the binary is not found
2021-09-27 10:49:38 +05:30
Dusan Popovic
ffca2ecf19
scroll in unicode input
2021-09-26 23:18:33 +01:00
Kovid Goyal
a32b6d5cf5
No need for Optional
2021-09-26 12:30:08 +05:30
Kovid Goyal
3ce087a716
...
2021-09-26 12:26:21 +05:30
Kovid Goyal
15cdeef552
Cleanup test_compile a bit
2021-09-26 12:21:25 +05:30
Kovid Goyal
a038477ce0
Cleanup previous PR
2021-09-26 11:17:54 +05:30
Kovid Goyal
b05e939e05
Merge branch 'patch-1' of https://github.com/unisgn/kitty
2021-09-26 11:11:42 +05:30
Kovid Goyal
6347daf0ac
Merge branch 'add-dependency-to-shell.nix' of https://github.com/Luflosi/kitty
2021-09-25 19:24:07 +05:30
Luflosi
327f4ca327
shell.nix: add dependency on librsync
...
The dependency on librsync was introduced in f0fab80f5b .
2021-09-25 14:37:38 +02:00
Kovid Goyal
fe0d1034aa
Cleanup any extra files produced by clang in debug mode when test compiling
2021-09-25 17:41:55 +05:30
Kovid Goyal
d982a3c94e
...
2021-09-25 14:08:44 +05:30
Kovid Goyal
259ca4a11e
Speed up parsing of file transfer OSC codes
...
Avoid roundtrips between unicode and bytes objects
2021-09-25 14:05:21 +05:30
Kovid Goyal
b9ae1fa429
...
2021-09-25 11:04:13 +05:30
Kovid Goyal
0d32c1656a
More work on rsync based transfer
2021-09-25 11:03:17 +05:30
Kovid Goyal
2defd311e1
Fix a couple of typos in schedule_write_to_child_python
2021-09-25 11:01:23 +05:30
unisgn
d078cb264a
Update ibus_glfw.c
2021-09-25 00:10:53 +08:00
unisgn
c45a656153
ibus's dbus name owner changed detection
...
fcitx5 works fine with kitty, except that when you restart fcitx5, kitty stop working with fcitx5, because the dbus_connection_get_is_connected(ibus->conn) in #check_connection is always true when you use fcitx5.
this patch add a dbus name owner changed detection to detect the online status of ibus, in case the ibus backend uses the session bus, like fcitx5.
2021-09-24 23:10:38 +08:00
Kovid Goyal
1cef544cff
Allow sending escape code to child in chunks
2021-09-24 16:54:04 +05:30
Kovid Goyal
67cef371dc
Allow writing bytes when sending escape code to child
2021-09-24 14:06:09 +05:30
Kovid Goyal
2fcfa8d3eb
...
2021-09-24 12:03:51 +05:30
Kovid Goyal
03391b4f7a
Improve docs a little
2021-09-24 09:05:42 +05:30
Kovid Goyal
2dae95bf0b
Fix reload config macOS shortcut in docs
2021-09-24 08:40:00 +05:30
Kovid Goyal
558fad1630
Fix test_compile() with debug and clang on macOS
2021-09-24 08:31:16 +05:30
Kovid Goyal
c2641458e7
A new option to specify the path to a sound file to use as the bell sound
2021-09-24 08:28:37 +05:30
Kovid Goyal
bbdfdb978d
Modify canberra wrapper to allow specifying a sound file path
2021-09-24 07:31:02 +05:30
Kovid Goyal
4112061a47
Format the INSTALL.md links
2021-09-23 20:31:13 +05:30
Kovid Goyal
25e9ddb4a4
Fix type signature
2021-09-23 20:27:33 +05:30
Kovid Goyal
66bf39db93
DRYer
2021-09-23 20:20:47 +05:30
Kovid Goyal
be439cb887
When a tab_bar_background is specified it should extend to the edges of the OS window
...
Fixes #4054
2021-09-23 20:12:30 +05:30
Kovid Goyal
f3b601aa06
Make it clear what rects we are using for extra blank rects
2021-09-23 16:19:12 +05:30
Kovid Goyal
f6a6ead0f3
Fix active_tab_foreground ignored in slant style
...
Fixes #4053
2021-09-23 14:40:08 +05:30
Kovid Goyal
43c04df98a
Only report progress if connected to a TTY
2021-09-22 08:14:47 +05:30
Kovid Goyal
581a373dae
Echo build commands
2021-09-21 08:17:53 +05:30
Kovid Goyal
ca197a915c
...
2021-09-20 12:07:41 +05:30
Kovid Goyal
061111d822
Dont fail if asset already deleted
2021-09-20 12:05:35 +05:30
Kovid Goyal
41003d106a
Set the signature parameters manually when rs_sig_args is not available
2021-09-20 11:42:44 +05:30
Kovid Goyal
c9b1e66c71
Upload the source for nightly builds as well
2021-09-20 11:28:34 +05:30
Kovid Goyal
17e95cb615
Add a test for rsync roundtrip
2021-09-19 20:55:00 +05:30
Kovid Goyal
b5c086aedb
...
2021-09-19 20:25:08 +05:30
Kovid Goyal
1036132838
Rename pw to bypass
2021-09-19 17:21:57 +05:30
Kovid Goyal
1d1d82ca50
Setup ropr buffer sizes for rsync operations
2021-09-19 17:19:34 +05:30
Kovid Goyal
85be3e4ed1
Also avoid mallocs for the output buffer
2021-09-19 15:28:22 +05:30
Kovid Goyal
d5d52ec8b9
When driving a job on a file avoid mallocs for each read
2021-09-19 13:49:10 +05:30
Kovid Goyal
ecb0d1f325
More work on wrapping librsync
2021-09-19 13:26:09 +05:30
Kovid Goyal
68436c93a7
More work on the transfer kitten
2021-09-19 10:17:53 +05:30
Kovid Goyal
2a9dff2846
Function to create the delta for a file
2021-09-18 14:00:59 +05:30
Kovid Goyal
bcd1837924
Generator for loading signatures
...
Also dont waste memory when no output is expected
2021-09-18 13:52:26 +05:30
Kovid Goyal
77508bfe0d
Handle blocking with unused input in librsync
2021-09-18 13:08:53 +05:30
Kovid Goyal
cf517effb3
Wrap more of the librsync API
2021-09-18 12:49:38 +05:30
Kovid Goyal
901a075a38
...
2021-09-18 11:51:54 +05:30
Kovid Goyal
76d6820af9
Do a full link test for rs_sig_args
2021-09-18 11:44:11 +05:30
Kovid Goyal
7cf73c10ac
clang needs a newline at the end of src
2021-09-18 11:16:56 +05:30
Kovid Goyal
71963aa738
Fix librsync detection on freeze builds
2021-09-18 11:10:03 +05:30
Kovid Goyal
dcc0dabe68
Specify the library in the correct place when test compiling
...
Needed for ancient compilers
2021-09-18 10:58:14 +05:30
Kovid Goyal
348e632dd6
Fix building on the usual ancient Linux distro suspects
...
Detect if librsync is new enough to have rs_sig_args
2021-09-18 10:49:46 +05:30
Kovid Goyal
067502bd66
Fix warning on ancient gcc
2021-09-18 10:25:18 +05:30
Kovid Goyal
6b576fcf5c
Use paths rather than flags in kitten extension definitions
2021-09-18 10:08:28 +05:30
Kovid Goyal
2fc972a173
rename function
2021-09-18 09:39:12 +05:30
Kovid Goyal
a941b1af4e
Implement signature generation
2021-09-17 17:42:25 +05:30
Kovid Goyal
fbc8a1cdcb
Remove workaround for older pillow in macOS CI
2021-09-17 13:57:09 +05:30
Kovid Goyal
f0fab80f5b
Start work on rsync support for file transfers
2021-09-17 13:41:45 +05:30
Kovid Goyal
a0740d1616
Use multi-phase initialization for unicode-names
2021-09-17 08:56:55 +05:30
Kovid Goyal
8986d15a5b
Remove unused code
2021-09-17 08:39:41 +05:30
Kovid Goyal
9f4f22743f
Document how to install the nightly builds
2021-09-17 07:32:51 +05:30
Kovid Goyal
9eebd2c921
Update nightly release description with timestamp and commit sha
2021-09-16 22:44:18 +05:30
Kovid Goyal
5ce71506c8
Various minor fixes in nightly pipeline
2021-09-16 22:31:43 +05:30
Kovid Goyal
ad5b43f6db
Start work on infrastructure for nightly builds
2021-09-16 22:13:01 +05:30
Kovid Goyal
aa9855516f
Change memory allocation strategy for pending buf
...
Now it is allocated on demand. This prevents it from blowing up
to READ_BUF_SZ * 2 (2MB) if a small pending update is followed by a
large non pending section in the read buffer, which is commonly
triggered for instance by the transfer kitten which uses pending updates
for its screen drawing mixed with non-pending data transmission.
This is a slight performance penalty since there is a branch when
writing every char to the pending buffer, but the branch will be almost
always one sided so should be well predicted.
In any case, filling the pending buffer is not a performance bottleneck,
compared to actually dispatching parsed escape codes.
2021-09-16 20:23:15 +05:30
Kovid Goyal
fcd4649642
Use pending mode for progress bar updates
2021-09-16 19:54:48 +05:30
Kovid Goyal
e12246983b
Fix the upper limit for the pending buffer
...
The pending buffer needs to be twice the max size of the read buffer.
2021-09-16 19:53:55 +05:30
Kovid Goyal
e8e7ad3b75
DRYer
2021-09-16 18:34:51 +05:30
Kovid Goyal
e9d648d37c
Handle exceptions in the tui context managers
2021-09-16 18:28:29 +05:30
Kovid Goyal
eaeece8177
Use the repeat escape code for progress bar rendering
2021-09-16 17:55:22 +05:30
Kovid Goyal
aa9a991a85
Draw separator for final total
2021-09-16 17:45:11 +05:30
Kovid Goyal
0d37431def
Report individual file transfer failures
2021-09-16 17:40:19 +05:30
Kovid Goyal
44dfd7a803
More work on transfer kitten
2021-09-16 17:28:26 +05:30
Kovid Goyal
d2809a0acb
More work on transfer kitten
2021-09-16 15:27:53 +05:30
Kovid Goyal
4b074d723e
...
2021-09-16 14:01:48 +05:30
Kovid Goyal
deb6abe50e
Ancient python compat
2021-09-16 13:50:05 +05:30
Kovid Goyal
d042ea5ab9
Split up tranfer kitten code into modules
2021-09-16 13:47:12 +05:30
Kovid Goyal
bc7c1e4d05
More work on the transfer kitten
2021-09-16 13:34:32 +05:30
Kovid Goyal
a4c5e7c2ee
More work on the transfer kitten
2021-09-16 13:02:39 +05:30
Kovid Goyal
504d915723
Fix div by zero errors
2021-09-16 10:30:28 +05:30
Kovid Goyal
039ea95390
Sanitize displayed file names
2021-09-16 10:19:08 +05:30
Kovid Goyal
5f32d2e56f
Uppercase DELETE_ENV_VAR
2021-09-16 10:16:33 +05:30
Kovid Goyal
5b716df45f
We dont need a special class for delete_env_var
2021-09-16 09:53:54 +05:30
Kovid Goyal
66e2e60ac4
Allow deleting environment vars from the child environment using env
2021-09-16 08:43:17 +05:30
Kovid Goyal
69dc09489b
Fix name collision
2021-09-16 07:59:42 +05:30
Kovid Goyal
33a6abfc07
More work on the transfer kitten
2021-09-16 07:39:07 +05:30
Kovid Goyal
f277cbf3f3
Improved trailing newline handling in the fish shell integration
...
Thanks to some assistance from @faho
See https://github.com/kovidgoyal/kitty/issues/4032#issuecomment-919936913
2021-09-15 21:06:28 +05:30
Kovid Goyal
0a56ab7a1e
Workaround for fish splitting on newlines when doing command substitution
2021-09-15 18:12:40 +05:30
Kovid Goyal
a073936997
Fish shell integration: Strip trailing newlines from the original fish prompt as fish does this
2021-09-15 16:58:31 +05:30
Kovid Goyal
5c1dd69963
forgot this in the last commit
2021-09-15 14:03:01 +05:30
Kovid Goyal
c08dc64581
spinner and progress bar for kittens UI
2021-09-15 13:39:39 +05:30
Kovid Goyal
5916bbd5b3
Merge branch 'master' of https://github.com/DiegoBaldassar/kitty
2021-09-15 07:31:51 +05:30
DiegoBaldassar
8c104b52f9
icat: fix exception thrown if stdin is None
...
Don't use sys.stdin if --stdin=no is given, or if --stdin=detect is given and sys.stdin is None
2021-09-14 22:18:34 +02:00
Kovid Goyal
7266cb653d
Add a reference for the claim of minimal latency
2021-09-14 22:38:58 +05:30
Kovid Goyal
2a8fd278c1
Bring implementation of XTSAVE and XTRESTORE into line with xterm
...
Now a stack of depth 1 is used to save/restore private mode values. And
saving/restoring individual modes is supported. This latter is used by
midnight commander.
2021-09-14 21:59:41 +05:30
Kovid Goyal
4c25ceff29
Remove duplicated reset of mouse_utf8_mode
2021-09-14 20:22:28 +05:30
Kovid Goyal
26f0b53bb2
Dont compress already compressed files
2021-09-14 20:11:34 +05:30
Kovid Goyal
101377d7f2
Better fix for reflow with last line being empty output start line
2021-09-14 14:18:47 +05:30
Kovid Goyal
2487f55bbc
Merge branch 'patch-1' of https://github.com/vincentbernat/kitty
2021-09-14 13:06:57 +05:30
Vincent Bernat
f69e718151
Fix typo in documentation
...
"programmble" → "programmable"
2021-09-14 09:04:06 +02:00
Kovid Goyal
5d516a8584
...
2021-09-13 13:26:30 +05:30
Kovid Goyal
b1322fbe04
Prompt for permission when reading from clipboard by default
...
Fixes #4022
2021-09-13 12:32:40 +05:30
Kovid Goyal
38a5e38f88
Transmit hashed password
2021-09-13 12:00:38 +05:30
Kovid Goyal
78fd05c1c6
...
2021-09-13 11:49:17 +05:30
Kovid Goyal
6993c905e3
Disallow empty ids in file transfer commands
2021-09-13 09:53:59 +05:30
Kovid Goyal
14f8ce6e15
Add a python wrapper to play arbitrary sounds
2021-09-13 08:59:34 +05:30
Kovid Goyal
d726eb354d
Play with human size some more
2021-09-12 13:41:51 +05:30
Kovid Goyal
1136c64d49
Make human_size() a little nicer
2021-09-12 13:28:07 +05:30
Kovid Goyal
3f3179db0c
...
2021-09-12 12:47:58 +05:30
Kovid Goyal
d224a4c39f
When receiving a long delayed cancel request process it before pruning
2021-09-12 12:46:30 +05:30
Kovid Goyal
3eee442f28
Output total transfer size when confirming
2021-09-12 12:41:48 +05:30
Kovid Goyal
7c90812e51
...
2021-09-12 12:21:03 +05:30
Kovid Goyal
5c8bcf9379
Implement confirm paths
2021-09-12 12:12:23 +05:30
Kovid Goyal
d40456d6a9
Add a FAQ entry with a list of alternate icons
2021-09-12 11:53:08 +05:30
Kovid Goyal
8e203af344
cleanup text
2021-09-12 11:40:02 +05:30
Kovid Goyal
31ead3f088
Basic file transfer works for sending
2021-09-12 10:02:23 +05:30
Kovid Goyal
efaeb0f0b2
Remove backslashes from CLI theme names if no theme with the name is found
2021-09-12 09:35:31 +05:30
Kovid Goyal
9db9638bc3
Soak up protocol responses after a cancel to avoid outputting garbage to the shell after the kitten exits
2021-09-11 10:48:40 +05:30
Kovid Goyal
74c1476f6d
Disallow more than 10 active receives to prevent DoS attacks
2021-09-10 21:20:05 +05:30
Kovid Goyal
24255be0bd
Add a permission password to the transfer kitten
2021-09-10 18:09:59 +05:30
Kovid Goyal
0d89eb2c40
When not using alternate screen dont restore cursor position to what it was before initialization
2021-09-10 17:26:01 +05:30
Kovid Goyal
2350952d05
More work on the transfer kitten
2021-09-10 16:54:36 +05:30
Kovid Goyal
53e38cb1d2
Add a note about hologram.nvim to the graphics protocol page
2021-09-10 10:33:01 +05:30
Kovid Goyal
f9c99a61d4
More work on file transfer
2021-09-09 12:59:31 +05:30
Kovid Goyal
2178c8e4af
...
2021-09-09 08:43:44 +05:30
Kovid Goyal
8aacf30f19
Centralize definition of file transfer OSC code
2021-09-08 13:43:59 +05:30
Kovid Goyal
745e97e0ab
Send a started response after each dest file is registered
2021-09-08 09:59:45 +05:30
Kovid Goyal
af5c0b3b71
More work on transmission kitten
2021-09-08 08:56:14 +05:30
Kovid Goyal
d7a1f3104a
Add no_op to get_all_actions()
2021-09-06 15:26:48 +05:30
Kovid Goyal
8fb48d7952
Output more kitty global state when debugging config
2021-09-06 08:36:53 +05:30
Kovid Goyal
1ac3de4aeb
typo
2021-09-04 10:45:53 +05:30
Kovid Goyal
0c5ea5c3c0
Make paypal button appearance match the rest
2021-09-03 09:24:55 +05:30
Kovid Goyal
78e4f1cde4
Add github sponsors to support page
2021-09-03 09:13:32 +05:30
Kovid Goyal
fb0b94eaa1
...
2021-09-03 09:06:03 +05:30
Kovid Goyal
7291fef7cc
Add github sponsors funding link
2021-09-03 08:39:46 +05:30
Kovid Goyal
6db46850eb
Fix #3989
2021-09-02 13:05:14 +05:30
Kovid Goyal
7997295d4c
Make a section about terminals implementing the graphics protocol
2021-09-02 12:49:17 +05:30
Kovid Goyal
6daee3a0b5
@get-text: Allow getting the last command output
2021-09-02 10:13:54 +05:30
Kovid Goyal
87f6793552
Allow mocking usage of timers in the test suite
2021-09-01 13:09:42 +05:30
Kovid Goyal
40786427b0
More work on file transmission
2021-09-01 09:22:04 +05:30
Kovid Goyal
59b84ae1a4
Note that chafa added support for the graphics protocol
2021-09-01 06:44:35 +05:30
Kovid Goyal
aafd8a8da4
When expanding vars allow using $$ for literal $
2021-08-31 17:24:19 +05:30
Kovid Goyal
5ff66f6bfa
When reloading config also reload open-actions.conf
2021-08-30 20:24:08 +05:30
Kovid Goyal
e8873804c0
Note that the graphics protocol is now supported in WezTerm as well
2021-08-30 13:56:21 +05:30
Kovid Goyal
0f37521592
Add a note to the graphics protocol about symlink resolution
2021-08-30 12:23:26 +05:30
Kovid Goyal
8ad1180321
Make a note that only regular files are supported for transmission of graphics data
2021-08-30 12:04:43 +05:30
Kovid Goyal
ced03c5d99
More work on file transmission
2021-08-30 09:00:38 +05:30
Kovid Goyal
161a54ceaa
Disable transmission tests pending rewrite
2021-08-30 08:08:41 +05:30
Kovid Goyal
c159ac287f
Flush input queue when child is removed
...
This is needed for running kittens that return data by printing
to STDOUT. As otherwise with a long input delay the output never
gets processed. Fixes #3980
2021-08-30 08:03:53 +05:30
Kovid Goyal
4ddd2bf980
More work on transmission
2021-08-29 21:09:20 +05:30
Kovid Goyal
1d9425ecdc
Change transmission protocol to not need container formats
2021-08-29 06:27:07 +05:30
Kovid Goyal
495981bade
Pass failure to send data to child because of full buffer up the stack
2021-08-25 13:28:50 +05:30
Kovid Goyal
672cf9fffe
Start work on transfer kitten
2021-08-25 11:38:41 +05:30
Kovid Goyal
72e15d8b4f
Fish integration: Have the value of $status preserved by the prompt functions
2021-08-24 20:29:12 +05:30
Kovid Goyal
075b4d252a
DRYer
2021-08-24 07:49:12 +05:30
Kovid Goyal
1953ecdf4d
Add tests for container transmission
2021-08-23 22:10:26 +05:30
Kovid Goyal
89f8151579
hints kitten: Fix a regression that caused using the default open program to trigger open actions instead of running the program
...
Fixes #3968
2021-08-23 11:56:16 +05:30
Kovid Goyal
d9cc1d67c0
Make path comparison more robust
2021-08-23 11:48:21 +05:30
Kovid Goyal
d178f4c75d
Implement canceling of file transmission
2021-08-23 11:33:03 +05:30
Kovid Goyal
0668a3bf2a
Send a response indicating transmission was successful
2021-08-23 11:09:45 +05:30
Kovid Goyal
d548b21be2
Allow interleaving file transmissions
2021-08-22 22:08:03 +05:30
Kovid Goyal
ebcd053bf3
Fix incorrect prompt reflow when a command is running that has produced no output
...
Needed to preserve the output start semantics on the first empty dest line
2021-08-22 13:55:59 +05:30
Kovid Goyal
b282464604
...
2021-08-22 13:13:13 +05:30
Kovid Goyal
42dcecde14
More work on file transmission
2021-08-22 13:01:43 +05:30
Kovid Goyal
aa0b344b55
kitten to confirm file transfer requests
2021-08-22 07:23:49 +05:30
Kovid Goyal
fa77128026
...
2021-08-21 22:09:20 +05:30
Kovid Goyal
7f1c5d8534
DRYer
2021-08-21 17:32:55 +05:30
Kovid Goyal
d2a31a6a0f
Merge branch 'master' of https://github.com/Mukundan314/kitty
2021-08-20 21:51:21 +05:30
Mukundan314
fb9c911ae9
Fix spelling mistake in docs for themes kitten
2021-08-20 21:35:40 +05:30
Kovid Goyal
5bc569c4dd
Allow specifying whether to count windows at prompts or not for confirm_clsoe
2021-08-20 17:13:42 +05:30
Kovid Goyal
8397970bf8
Ensure fish config dir exists
2021-08-20 08:54:41 +05:30
Kovid Goyal
6fc7b3d946
Merge branch 'fix-clang-warning' of https://github.com/Luflosi/kitty
2021-08-20 05:56:31 +05:30
Luflosi
0fe7796df0
Fix Clang warning
...
Without this, Clang would complain:
```
In file included from kitty/fonts.c:9:
In file included from kitty/fonts.h:9:
kitty/lineops.h:67:29: error: suggest braces around initialization of subobject
[-Werror,-Wmissing-braces]
const CellAttrs zero = {0};
^
{}
```
2021-08-19 22:52:36 +02:00
Kovid Goyal
40b50332de
Fix space ligatures not working with Iosevka for some characters in the Enclosed Alphanumeric Supplement
...
Recognize chars in this block as non-emoji dingbats to turn on space
ligatures for them
Fixes #3954
2021-08-19 22:28:07 +05:30
Kovid Goyal
9a50dfc4b5
broadcast kitten: Allow broadcasting ctrl+c
...
Fixes #3956
2021-08-19 22:05:29 +05:30
Kovid Goyal
09c18f474f
Broadcast kitten: Fix --match and also remove a useless print
2021-08-19 21:58:04 +05:30
Kovid Goyal
51244c4388
Cleanup previous PR
2021-08-19 19:42:15 +05:30
Kovid Goyal
898f162369
Merge branch 'master' of https://github.com/fladson/kitty
2021-08-19 19:41:28 +05:30
Fladson Gomes
2529ef2f0b
Add linker fail build notes for macos
2021-08-19 15:08:08 +02:00
Kovid Goyal
fc528941bd
remove reference to obsolete kitty-themes repo
2021-08-19 14:20:06 +05:30
Kovid Goyal
8e9ee90d9f
More work on file transfer protocol
2021-08-19 14:13:54 +05:30
Kovid Goyal
b03c6f70fe
add macOS variants for config scs
2021-08-19 10:00:09 +05:30
Kovid Goyal
42da681f2b
Launch command: Allow specifying the OS window title
2021-08-19 09:52:52 +05:30
Kovid Goyal
44561e8cea
macOS: Fix SIGUSR1 quitting kitty instead of reloading the config file
...
Fixes #3952
2021-08-19 09:37:08 +05:30
Kovid Goyal
37735b962e
Start work on new file_transmission protocol
2021-08-19 09:23:01 +05:30
Kovid Goyal
34ec3eac44
icat kitten: Fix display of JPEG images that are rotated via EXIF data and larger than available screen size
...
Fixes #3949
2021-08-19 09:08:35 +05:30
Kovid Goyal
59c14d07fd
Update versionadded
2021-08-18 11:02:15 +05:30
Kovid Goyal
86ffb744f5
Move changelog entry for shell integration
2021-08-18 10:06:53 +05:30
Kovid Goyal
fab7cfb113
Handle multiline cursor movement in zsh when clicking
2021-08-18 10:06:10 +05:30
Kovid Goyal
2715947830
DRYer
2021-08-18 10:06:10 +05:30
Kovid Goyal
eb2f3387c5
Add some notes about the shell marking protocol
2021-08-18 10:06:10 +05:30
Kovid Goyal
2472cea69f
Fix resizing causing a line or two from the start of the th last cmd output to be skipped
...
Resizing causes multiple consecutive lines to be marked as being start
of output, so rewind to the first of them.
2021-08-18 10:06:10 +05:30
Kovid Goyal
2a634af2bc
When confirming close commands dont count windows sitting at shell prompts
2021-08-18 10:06:10 +05:30
Kovid Goyal
81654c9874
Function to check if cursor is at marked prompt
2021-08-18 10:06:09 +05:30
Kovid Goyal
28914d4450
Remove a macro that is not really needed anymore
2021-08-18 10:06:09 +05:30
Kovid Goyal
4000cce81c
DRYer
2021-08-18 10:06:09 +05:30
Kovid Goyal
35ad366427
Fix incorrect prompt marking on screen resize
...
Forgot to initialize line attrs for src lines in the LineBuf
2021-08-18 10:06:09 +05:30
Kovid Goyal
c257adb56a
Add a debug action to dump current lines with their attributes
2021-08-18 10:06:09 +05:30
Kovid Goyal
929e0c126d
rename -> replace
2021-08-18 10:06:09 +05:30
Kovid Goyal
b293e4d516
DRYer
2021-08-18 10:06:09 +05:30
Kovid Goyal
6571cf2e89
When showing last cmd output convert wrap markers into line breaks
...
This matches the behavior of show_scrollback and works well with overlay
windows and if the pager is configured to not wrap
2021-08-18 10:06:09 +05:30
Kovid Goyal
aa739cdfd4
Add shell_prompt_marking to client
2021-08-18 10:06:09 +05:30
Kovid Goyal
35c608ae77
Dont add wrap markers (\r) when showing last command output
2021-08-18 10:06:09 +05:30
Kovid Goyal
8d8095a2d1
Migrate an action spec to the new syntax
2021-08-18 10:06:09 +05:30
Kovid Goyal
1740821bb4
Move changelog entry into correct place
2021-08-18 10:06:09 +05:30
Kovid Goyal
4cd6829657
forgot to geenrate update opts
2021-08-18 10:06:09 +05:30
Kovid Goyal
ef76c075e0
Get rid of bits from CellAttrs
2021-08-18 10:06:08 +05:30
Kovid Goyal
b260a61c8f
Get rid of bits from LineAttrs
2021-08-18 10:06:08 +05:30
Kovid Goyal
780e526143
Use a union for cell attributes
...
Cleaner code, no performance impact
2021-08-18 10:06:08 +05:30
Kovid Goyal
1e0269faa2
Fix sourcing of shell integration changing $? on bash/zsh
2021-08-18 10:06:08 +05:30
Kovid Goyal
73465aa44b
Change the shortcuts to z and x for jumping to prompts
2021-08-18 10:06:08 +05:30
Kovid Goyal
1f5fa03015
Use a union for line attrs
...
Allows faster construction of Line objects without needing to set
individual booleans. And cleaner code.
2021-08-18 10:06:08 +05:30
Kovid Goyal
000e1012c6
Option for packagers to easily tune shell integration
2021-08-18 10:06:08 +05:30
Kovid Goyal
afc5821809
Note when shell integration was added to kitty
2021-08-18 10:06:08 +05:30
Kovid Goyal
e8832a86bb
Fix scroll_to_prompt for prompts that have been reflowed over multiple lines
2021-08-18 10:06:08 +05:30
Kovid Goyal
f61b8608de
Fix mouse click event using current mouse co-ords rather than the co-ords at the time of the click
2021-08-18 10:06:08 +05:30
Kovid Goyal
92f428b6d1
common prefix should not apply to basename
2021-08-18 10:06:08 +05:30
Kovid Goyal
8795bf8cf9
various fixed for completion
...
- Fix completion of --directory
- Dont remove common prefix unless it contains path separator
- Dont show suggestions for options on new words
2021-08-18 10:06:08 +05:30
Kovid Goyal
0dee0bfada
zsh completion: Dont remove prefix when only a single item is present in the group
2021-08-18 10:06:07 +05:30
Kovid Goyal
482d3bb913
Better integrate shell integration into sidebar toc
2021-08-18 10:06:07 +05:30
Kovid Goyal
48035977e3
Style details summary as a link
2021-08-18 10:06:07 +05:30
Kovid Goyal
6b23921880
Document the new shell integration features
2021-08-18 10:06:07 +05:30
Kovid Goyal
c98e4eb478
Start documenting shell integration
2021-08-18 10:06:07 +05:30
Kovid Goyal
7cd05ad76b
...
2021-08-18 10:06:07 +05:30
Kovid Goyal
fa327d618d
Cursor movement at shell prompts on click
...
Fixes #3825
2021-08-18 10:06:07 +05:30
Kovid Goyal
bc202aec6e
Dont discard information on whether a click hit a URL
2021-08-18 10:06:07 +05:30
Kovid Goyal
606ce4e66f
Add descriptions to fish completions
2021-08-18 10:06:07 +05:30
Kovid Goyal
a10c19456a
Fix completions for fish
2021-08-18 10:06:07 +05:30
Kovid Goyal
20688661aa
...
2021-08-18 10:06:07 +05:30
Kovid Goyal
cbbd9f475e
fish completions dont want quoting
2021-08-18 10:06:07 +05:30
Kovid Goyal
f4b3948168
Use a shortened dir path for window title
...
Also respect named directories
2021-08-18 10:06:07 +05:30
Kovid Goyal
2245d4506f
Add title and cursor to fish integration
2021-08-18 10:06:06 +05:30
Kovid Goyal
7f3da135e2
...
2021-08-18 10:06:06 +05:30
Kovid Goyal
23f94b6e67
Get prompt marking working for th fish shell
2021-08-18 10:06:06 +05:30
Kovid Goyal
0ec10b52e0
Add shebangs
2021-08-18 10:06:06 +05:30
Kovid Goyal
2fcd57410a
Dont fail if rc file dir doesnt exist
2021-08-18 10:06:06 +05:30
Kovid Goyal
a993a71857
Add shell integration for bash
2021-08-18 10:06:06 +05:30
Kovid Goyal
01ce0e1d1a
Prevent fd leak if copystat fails
2021-08-18 10:06:06 +05:30
Kovid Goyal
040a152f1f
Preserve stat attributes when modifying rc files atomically
2021-08-18 10:06:06 +05:30
Kovid Goyal
f4f2013c2b
Create shell integration rc file if it doesnt exist
2021-08-18 10:06:06 +05:30
Kovid Goyal
6e172bdc09
Fix cursor in zsh vicmd mode
2021-08-18 10:06:06 +05:30
Kovid Goyal
725ec57bee
Automatically setup shell integration for ZSH
2021-08-18 10:06:06 +05:30
Kovid Goyal
8a9234ba4f
Move shell integration docs into own file
2021-08-18 10:06:06 +05:30
Kovid Goyal
a00e4ebe3f
Improce docstring
2021-08-18 10:06:06 +05:30
Kovid Goyal
2d93a011df
Option to control shell integration
2021-08-18 10:06:05 +05:30
Kovid Goyal
bffe7aba8f
Add shell integration scripts to kitty package
2021-08-18 10:06:05 +05:30
Kovid Goyal
b581408137
DRYer
2021-08-18 10:06:05 +05:30
Kovid Goyal
2263cd1355
Use a _ksi_ prefix for shell integration
...
Sadly function in zsh are global so prefix all function and global var
names with _ksi_ as poor mans namespacing.
2021-08-18 10:06:05 +05:30
Kovid Goyal
1bb87c71aa
Make all shell integrations disablable
2021-08-18 10:06:05 +05:30
Kovid Goyal
7dec7d615a
Use an env var to control shell integration
2021-08-18 10:06:05 +05:30
Kovid Goyal
2e5308ad40
Use an associative array for prompt data
2021-08-18 10:06:05 +05:30
Kovid Goyal
d1015de700
Workaround for base64 on linux inserting line breaks by default
2021-08-18 10:06:05 +05:30
Kovid Goyal
934318adb1
DRYer
2021-08-18 10:06:05 +05:30
Kovid Goyal
179c2b21c0
Make debug_print remove esc and bel
...
Should really be made more robust, but cant be bothered
2021-08-18 10:06:05 +05:30
Kovid Goyal
85f6d3fed8
Use PS1 to set the prompt start mark
...
Needed as precmd functions are not called when redrawing the prompt. As
far as I can tell zsh stupidly has no hook that is called when the
prompt is redrawn after a window resize or when a background job
finishes.
2021-08-18 10:06:05 +05:30
Kovid Goyal
a4925eeeb4
...
2021-08-18 10:06:05 +05:30
Kovid Goyal
196200d03f
Dont reflow the current prompt when resizing
...
This ensures that there is no leftover line when the shell redraws the prompt,
by making the prompt a simple single character prompt before rewrapping.
2021-08-18 10:06:04 +05:30
Kovid Goyal
f2ca0424a0
Use correct src_line for attrs copy when rewrapping
2021-08-18 10:06:04 +05:30
Kovid Goyal
07b971ad5f
Add a shortcut to easily browse the output of the last command run in the shell
2021-08-18 10:06:04 +05:30
Kovid Goyal
51fa25e03d
Add shortcuts for jumping to prev/next shell prompt
2021-08-18 10:06:04 +05:30
Kovid Goyal
bd5f100f13
Add test for multiline prompt jumping
2021-08-18 10:06:04 +05:30
Kovid Goyal
3b8da7e4c2
implementation of scroll_to_prompt
2021-08-18 10:06:04 +05:30
Kovid Goyal
4a9a021b2c
DRYer
2021-08-18 10:06:04 +05:30
Kovid Goyal
d4dd226d8f
Preserve prompt markings when copying lines and rewrapping them
2021-08-18 10:06:04 +05:30
Kovid Goyal
0d4237f802
Mark prompt lines
2021-08-18 10:06:04 +05:30
Kovid Goyal
46b9aca16e
Start work on shell integration
2021-08-18 10:06:04 +05:30
Kovid Goyal
4931477ef4
typo
2021-08-18 10:06:04 +05:30
Kovid Goyal
dfdd1697c5
Make the signatures of drat tab functions extendable with backwards compat
2021-08-18 10:03:50 +05:30
Kovid Goyal
801f0d51a1
Cleanup docs a bit
2021-08-18 08:31:49 +05:30
Kovid Goyal
bdebb19648
Merge branch 'wayland-hyper' of https://github.com/orki/kitty
2021-08-18 08:29:51 +05:30
Ravi R Kiran
75df0cbcf5
Gate Wayland modifier autodiscovery behind an environment variable
2021-08-17 21:46:09 -05:00
Kovid Goyal
e23b4ce6b4
Document a couple more env vars
2021-08-18 07:49:54 +05:30
Ravi R Kiran
1b88a68b55
Be even more conservative in declaring success
...
This handles the nonsensical case of Alt_X being mapped to two
different modifiers.
2021-08-17 21:11:55 -05:00
Kovid Goyal
a82bc6738c
A new option to draw the tab bar centered or right
...
Fixes #3946
2021-08-18 07:35:04 +05:30
Kovid Goyal
868626c79c
Allow the user to supply a custom Python function to draw tab bar
2021-08-18 07:15:03 +05:30
Kovid Goyal
e4cc8bf828
Merge branch 'update-shell.nix' of https://github.com/Luflosi/kitty
2021-08-18 06:26:31 +05:30
Luflosi
f57fb17d2b
shell.nix: add new dependencies for building the documentation
2021-08-17 17:55:40 +02:00
Luflosi
a69170b0ba
shell.nix: make more similar to the code in Nixpkgs
...
Remove the dependency on installShellFiles as it is not needed for building kitty itself and is only used in Nixpkgs for conveniently installing man pages and shell completions.
pkgconfig has been renamed to pkg-config.
Use `with python3Packages;` to reduce code duplication. This is how it's done in Nixpkgs as well.
Also sort the packages in nativeBuildInputs.
2021-08-17 17:43:49 +02:00
Kovid Goyal
4066c2389d
Fix a regression that caused --title to not work when opening new OS windows using --single-instance
2021-08-17 20:32:03 +05:30
Kovid Goyal
cd7b4fcd8e
version 0.23.1
2021-08-17 11:37:24 +05:30
Ravi R Kiran
b0c963b650
Heuristic to find hyper and meta on wayland
2021-08-16 21:59:53 -05:00
Kovid Goyal
f67995d5d3
See if we can mollify CodeQL
2021-08-16 22:53:46 +05:30
Kovid Goyal
f0e7344bc8
Use bundled CA certs on Linux binary builds as well
...
Makes it consistent with macOS
2021-08-16 22:47:53 +05:30
Kovid Goyal
aa525c68c7
Only test bundled CA certs on macOS
2021-08-16 22:26:10 +05:30
Kovid Goyal
a2e25331a5
Dont check Linux CA locations on macOS
2021-08-16 22:23:24 +05:30
Kovid Goyal
d8f09d377f
Install ca-certificates on Linux CI machines
2021-08-16 22:15:27 +05:30
Kovid Goyal
cc96cb1c75
Check a few more locations for CA certificates
2021-08-16 22:09:39 +05:30
Kovid Goyal
5966f04656
Add a build test for CA certificate loading
2021-08-16 20:44:47 +05:30
Kovid Goyal
dbce9a8f29
themes kitten: Fix only the first custom theme file being loaded
...
Fixes #3938
2021-08-16 20:27:21 +05:30
Kovid Goyal
4333552523
Matching windows/tabs: allow matching by recency
...
``recent:0`` matches the active window/tab, ``recent:1`` matches the
previous window/tab and so on
2021-08-16 18:29:06 +05:30
Kovid Goyal
c00e945f6e
Make the clipboard size limit configurable
...
Fixes #3937
2021-08-16 17:29:36 +05:30
Kovid Goyal
56cb628ee8
macOS: Bundle mozilla's root certificates with kitty
...
Apple doesnt provide root certificates in a form useable by openssl
which means all ssl based network requests fail, so bundle our own
Fixes #3936
2021-08-16 17:16:03 +05:30
Kovid Goyal
827b6598b2
version 0.23.0
2021-08-16 07:38:02 +05:30
Kovid Goyal
59bafea06d
Add some docs for non-interactive theme changing
2021-08-16 07:37:59 +05:30
Kovid Goyal
d61aca40b8
Make link to template.conf a download link
2021-08-16 07:14:49 +05:30
Kovid Goyal
bf704d35a2
Add a link to kitty-themes in the changelog
2021-08-16 07:11:05 +05:30
Kovid Goyal
fbc8881a96
Merge branch 'master' of github.com:kovidgoyal/kitty
2021-08-15 08:28:00 +05:30
Kovid Goyal
8cfb1efb01
hints kitten: Make the --program option work with --linenum-action=self
...
Fixes #3931
2021-08-15 08:27:25 +05:30
Kovid Goyal
f399b8466c
Merge branch 'patch-1' of https://github.com/con-f-use/kitty
2021-08-14 19:42:19 +05:30
con-f-use
437ba69049
docs: typo in hint.rst, adaption to new layout
2021-08-14 15:19:27 +02:00
Kovid Goyal
dbc7e8e85d
When dragging word or line selections, ensure the initially selected item is never deselected
...
This matches behavior in most other programs
Fixes #3930
2021-08-13 20:23:43 +05:30
Kovid Goyal
f3333ce941
Fix getting connection data from ssh command line when -- is used in the command line
...
This broke the remote file kitten when using the ssh kitten as the later
was changed to use -- recently.
Fixes #3929
2021-08-13 17:14:43 +05:30
Kovid Goyal
97a9261096
...
2021-08-13 17:04:49 +05:30
Kovid Goyal
5a76dab3c6
ControlMaster must not suppress exceptions
2021-08-13 17:02:27 +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
b173dd1c39
Fix error getting editor in remote file kitten not being reported
2021-08-13 16:57:01 +05:30
Kovid Goyal
473e1a6f22
Fix #3926
...
Apparently nvim assumes cnorm doesn't affect cursor shape. It's
ambiguous whether cnorm should affect it or not. So to prevent
regressions in case other programs assume that as well, have it only
make the cursor visible and blinking, without changing its shape.
2021-08-13 09:31:18 +05:30
Kovid Goyal
9c4a890688
Adjust attenuation based on color
2021-08-11 12:41:09 +05:30
Kovid Goyal
a803c8bcc5
Make the visual bell flash more gentle, especially on dark themes
...
Fixes #2937
2021-08-11 12:09:25 +05:30
Kovid Goyal
5c7ce18379
Move visual bell code into shaders.c
2021-08-11 12:04:52 +05:30
Andrew Mayorov
aff6fdfa84
Make visual bell flash much more gentle
...
Right now visual bell makes background flash sharply with bright white
(when configured with darkish color theme). This causes eye strain,
especially prominent in unlit environments.
This change makes background bounce smoothly between regular bg color
and highlight (selection) bg color for the configured visual bell
duration. Intensity is animated with cubic easing functions. It
currently peaks at 20% of the duration, this is hardcoded.
Mark functions computing intensity and easing as inline
Do smarter blending of visual bell flash
Blend highlight color with pegtop's softlight mode over both background
and half as much over foreground. This should help with flash visibility
in light themed and inverted colors contexts.
Blend flash in BACKGROUND pass also
Revert "Do smarter blending of visual bell flash"
This reverts commit 9a269d55c7d04334b1c4891c42914423517dfad6.
Revert "Blend flash in BACKGROUND pass also"
This reverts commit 756332cb9d7576b08db78406e37349aa6d1df156.
Revert "Make visual bell flash much more gentle"
This reverts commit cbfe5d59ada2da690e14c7532a7468b0c307c462.
Render flash overlay in a separate drawcall
Trigger frequent repaints to make for smooth animation
Attenuate flash a bit more
2021-08-11 11:54:43 +05:30
Kovid Goyal
477a652b44
Function to update a theme file
2021-08-11 09:09:07 +05:30
Kovid Goyal
15e0b42f04
Make the regex for commenting settings more robust
2021-08-11 08:46:42 +05:30
Kovid Goyal
b25ea9c863
Fix #3913
2021-08-09 08:37:53 +05:30
Kovid Goyal
c838cb03c9
Do not allow reloading the config to affect allow_remote_control
2021-08-08 15:34:34 +05:30
Kovid Goyal
ba9adc127e
Use realpath when creating conf.bak as well
2021-08-08 10:49:41 +05:30
Kovid Goyal
b7d603c4de
Atomic save should preserve stat if the file exists
2021-08-08 10:41:46 +05:30
Kovid Goyal
71f1f3aa64
Atomic save should use the target of symlinks
2021-08-08 10:35:38 +05:30
Kovid Goyal
7d1c26202a
Add completion for options that take choices
2021-08-08 10:08:15 +05:30
Kovid Goyal
80db2f6558
Completion for theme names
2021-08-08 09:57:57 +05:30
Kovid Goyal
e376c79dda
Show the current theme name in kitty.conf as well
2021-08-08 09:42:07 +05:30
Kovid Goyal
5a47e0d2e4
Make reload_conf_in_all_kitties re-useable
2021-08-08 09:38:29 +05:30
Kovid Goyal
ca9143bebc
Allow reloading conf in all kitty instances as well
2021-08-08 09:33:36 +05:30
Kovid Goyal
a49f6799de
Print usage when no args provided to +runpy
2021-08-08 09:10:47 +05:30
Kovid Goyal
d916ecc4f3
Add a non-interactive mode to the themes kitten
2021-08-08 07:57:14 +05:30
Kovid Goyal
e1ed9aca10
clear_all_mouse_shortcuts -> clear_all_mouse_actions
2021-08-07 21:34:16 +05:30
Kovid Goyal
0e2f1b9405
Merge branch 'fork' of https://github.com/bdeshi/kitty
2021-08-07 21:30:57 +05:30
bdeshi
db5a2d2141
add clear_all_mouse_shortcuts option to clear mouse_maps
2021-08-07 21:33:56 +06:00
Kovid Goyal
a9771dccba
Change list position in kittens intro
2021-08-07 18:40:36 +05:30
Kovid Goyal
4849e07c26
Document the themes kitten
2021-08-07 18:38:33 +05:30
Kovid Goyal
4645e78fa7
Reload config in parent kitty when running the themes kitten
2021-08-07 16:54:47 +05:30
Kovid Goyal
9e2590eb15
Set the KITTY_PID env var when running child processes
2021-08-07 16:48:34 +05:30
Kovid Goyal
94575a5cf6
Implement modifying of kitty.conf
...
An include for the current theme is added and
all existing color related settings are commented out
so that the theme overlays on kitty's default settings.
2021-08-07 16:34:41 +05:30
Kovid Goyal
a597a8d86b
Make the recent list functional
2021-08-07 15:31:03 +05:30
Kovid Goyal
3287798efe
terminfo: Fix "cnorm" the property for setting the cursor to normal using a solid block rather than a blinking block cursor
...
cnorm should match the default cursor in kitty, which is a blinking
block. Fixes #3906
2021-08-07 15:15:59 +05:30
Kovid Goyal
d01ac17334
Implement placing of selected theme in kitty config dir
2021-08-07 15:04:32 +05:30
Kovid Goyal
2c96727c45
Implement searching in the themes kitten
2021-08-07 11:17:32 +05:30
Kovid Goyal
ca1b2454bd
Fix position output in matcher
2021-08-07 10:45:50 +05:30
Kovid Goyal
064fc17ce3
More work on themes kitten
2021-08-05 21:38:39 +05:30
Kovid Goyal
43ccf9cb41
Draw theme demo
2021-08-05 13:17:16 +05:30
Kovid Goyal
96857a197c
Allow default theme to have no settings
2021-08-05 11:20:01 +05:30
Kovid Goyal
079ff7785c
...
2021-08-05 07:47:32 +05:30
Kovid Goyal
d6a6cbe153
Migrate import in test
2021-08-05 07:05:19 +05:30
Kovid Goyal
2486cfd45d
Move match() into a more re-useable location
2021-08-05 06:59:24 +05:30
Kovid Goyal
30cb7286db
Fix building on macOS
...
macOS defines newlocale() in xlocale.h
2021-08-05 06:47:45 +05:30
Kovid Goyal
9e7253c179
macOS: Set LANG to en_US if cocoa reports language as en_* that is not a valid locale
...
Fixes #3899
2021-08-05 06:29:21 +05:30
Kovid Goyal
276a82d1f7
Make get_all_actions() work in binary builds
2021-08-05 06:10:41 +05:30
Kovid Goyal
57ced9bc83
Dont send press event for shift+middle when grabbed
...
Fixes #3902
2021-08-05 05:03:22 +05:30
Kovid Goyal
3c3662b032
Limit display length for theme names
2021-08-04 23:18:57 +05:30
Kovid Goyal
f490b9a8bd
Better error message for get_all_actions() when docstrings are missing
2021-08-04 22:58:05 +05:30
Kovid Goyal
c7ccedae95
...
2021-08-04 22:27:48 +05:30
Kovid Goyal
03517459db
Type check set_mode and reset_mode
2021-08-04 22:25:27 +05:30
Kovid Goyal
96326280e5
Use a pending update when drawing the screen
2021-08-04 22:06:05 +05:30
Kovid Goyal
9b7899780b
Implement drawing the list of themes
2021-08-04 21:56:33 +05:30
Kovid Goyal
e01cd057e8
Fix timestamp not being updated in downloaded zip file comment
...
Also clean up tab bar formatting
2021-08-04 20:34:00 +05:30
Kovid Goyal
ba85ca1991
Finish the tab bar for the themes kitten
2021-08-04 19:06:07 +05:30
Kovid Goyal
92a9b71f21
More work on the themes kitten
2021-08-04 18:43:26 +05:30
Kovid Goyal
e50c26d1b9
Allow using a non-toal dict to init Options objects
2021-08-04 17:06:50 +05:30
Kovid Goyal
7090c24321
More work on the themes kitten
2021-08-04 14:13:09 +05:30
Kovid Goyal
55319cd6d6
FreeType: Round glyph advances
...
The old code would simply add advances and store as a float with
individual glyph positioning using floor() based on the advance +
offset. This breaks rendering of infinite length ligatures at some font
sizes as they either under or overflow. Rounding the advances seems to
fix it. Dont know if it will have other ill-effects for non infinite
length ligatures. If it does we can test total ligature length and
use rounding only for long ligatures.
Fixes #3896
2021-08-04 08:40:49 +05:30
Kovid Goyal
8a6b51441c
More work on themes kitten
2021-08-04 07:36:09 +05:30
Kovid Goyal
36670b49a0
Make creation of kitty-themes.zip atomic
2021-08-03 17:47:47 +05:30
Kovid Goyal
a402d848d2
Work on themes kitten UI
2021-08-03 17:32:15 +05:30
Kovid Goyal
37c563802c
typo
2021-08-03 12:58:38 +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
70b5f5bce3
Fix kitty --title not overriding tab titles
...
It must set the OS Window title permanently.
Fixes #3893
2021-08-03 09:34:13 +05:30
Kovid Goyal
be34af4555
Remove inline from .c files
...
It is ignored by compilers and hides unused static functions
2021-08-03 09:11:17 +05:30
Kovid Goyal
815539a933
Clean up the docs for tab_bar_style
2021-08-03 08:52:19 +05:30
Kovid Goyal
ab889e2945
A new "slant" style for the tab bar
2021-08-03 08:45:55 +05:30
Kovid Goyal
b3231c8003
Fix a link in the conf docs
2021-08-02 21:58:39 +05:30
Kovid Goyal
5f6cb34f77
placeholder
2021-08-02 21:54:06 +05:30
Kovid Goyal
a99a080c50
More work on theme loading
2021-08-02 21:46:33 +05:30
Kovid Goyal
4a1ca8d582
Move theme parser into kitty code
2021-08-02 18:54:48 +05:30
Kovid Goyal
050eb5660d
Start work on themes kitten
2021-08-02 17:56:31 +05:30
Kovid Goyal
13e59df1f8
version 0.22.2
2021-08-02 08:20:33 +05:30
Kovid Goyal
c797944923
Also set first underviced render frame request
2021-08-01 12:59:22 +05:30
Kovid Goyal
ade4e67b51
Possible fix for #3890
...
Try to ensure we have a functioning displaylink always.
GLFW skips over sleeping monitors during a poll and also
had a bug where the display link was not re-created for a monitor
that already had a glfw monitor entry.
Also add a bunch more debug reporting
2021-08-01 12:53:35 +05:30
Kovid Goyal
656f49f2ff
...
2021-08-01 07:56:55 +05:30
Kovid Goyal
0045244295
All option instances must not share the same color table
2021-07-31 18:44:39 +05:30
Kovid Goyal
6bfb704f6f
When going from csd->no csd increase window height to compensate for titlebar.
...
Sway will send the next configure event (for example when focus changes)
with titlebar height added, so to avoid a sudden resize at that time,
bump the height by the titlebar.
2021-07-31 14:56:45 +05:30
Kovid Goyal
80cebdefcd
Better fix for CSD toggling on Wayland
...
Draw CSD if the compositor wants us to. See #3888
2021-07-31 14:15:38 +05:30
Kovid Goyal
68cd863fe0
version 0.22.1
2021-07-31 12:03:42 +05:30
Kovid Goyal
65e5015d19
Allow linking to discussions in docs
2021-07-31 11:51:03 +05:30
Kovid Goyal
c26665ec4d
Wayland: If the compositor turns off server side decorations after turning them on do not draw client side decorations
...
This matches the behavior of GNOME based clients and in any case sway
seems to get very confused if CSD is drawn.
Fixes #3888
2021-07-31 11:41:27 +05:30
Kovid Goyal
91d82ebf4b
Remove unused import
2021-07-31 11:27:29 +05:30
Kovid Goyal
303e4baa58
Add GLFW API to set WM_COMMAND
...
Also have create_os_window take keyword arguments
2021-07-30 08:35:40 +05:30
Kovid Goyal
3c953d47ca
Merge branch 'pr-fix-nix' of https://github.com/egnor/kitty
2021-07-29 14:23:08 +05:30
Kovid Goyal
5e629d5c09
Linux binary: Remove any RPATH build artifacts from bundled libraries
...
Thanks to Dan Egnor for pointing these out.
2021-07-29 13:12:49 +05:30
Kovid Goyal
c6ec2d4282
Update docs to reflect the fact that the shell is run with both --login and --interactive to read its env vars
2021-07-29 12:40:19 +05:30
Kovid Goyal
66b93a9af8
Merge branch 'pr-doc-editor-fix' of https://github.com/egnor/kitty
2021-07-29 12:24:17 +05:30
egnor
8d5479f55e
minor tweaks to wording and formatting
2021-07-28 23:50:11 -07:00
egnor
96ce6c9504
Resolve some duplication in glossary.rst
2021-07-28 23:47:55 -07:00
egnor
0d55865545
more accurately describe editor behavior
2021-07-28 23:44:09 -07:00
Kovid Goyal
a1fc383e6f
Cleanup the previous PR
2021-07-29 11:52:14 +05:30
Kovid Goyal
c3807e175d
Merge branch 'pr-doc-editor' of https://github.com/egnor/kitty
2021-07-29 11:48:34 +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
egnor
9a56d619af
clarify the text for the "editor" config variable slightly
2021-07-28 22:18:03 -07:00
Kovid Goyal
f692d586f7
Fix type checking in send_text
2021-07-29 09:04:07 +05:30
Kovid Goyal
d3d3e99979
broadcast kitten: Fix decoding of key events
...
No clue why mypy didnt catch this error
2021-07-29 08:55:34 +05:30
egnor
8e6a179efe
fix shell.nix error with stdenv.lib.getLib
2021-07-28 17:16:52 -07:00
Kovid Goyal
17ff317d30
Allow specifying additional targets for detach_window
2021-07-28 21:50:09 +05:30
Kovid Goyal
faef9f0049
...
2021-07-28 21:27:43 +05:30
Kovid Goyal
bb0c831601
Fix #3878
2021-07-28 18:22:08 +05:30
Kovid Goyal
9462654738
Update changelog
2021-07-28 15:52:54 +05:30
Kovid Goyal
e872169e4c
Graphics protocol: Fix composing onto currently displayed frame not updating the frame on the GPU. Fixes #3874
2021-07-28 15:46:50 +05:30
Kovid Goyal
a22404abe6
Better names
2021-07-28 15:44:17 +05:30
Kovid Goyal
7c06313750
A couple more useful aliases
2021-07-28 15:40:48 +05:30
Kovid Goyal
6f265f448d
DRYer
2021-07-28 15:39:21 +05:30
Kovid Goyal
acdc41bd03
Allow sending no payload
2021-07-28 13:39:15 +05:30
Kovid Goyal
bcff2a7fb6
Add aliases to GraphicsCommand to make it more useable
2021-07-28 13:28:21 +05:30
Kovid Goyal
94188fddce
pep8-ify sample code
2021-07-28 11:13:29 +05:30
Kovid Goyal
3684e7f54a
Merge branch 'cocoa-fix-m1' of https://github.com/horta/kitty
2021-07-28 07:45:50 +05:30
Danilo Horta
890181172f
Fix "Cocoa: Failed to find service port...".
2021-07-28 00:39:50 +01:00
Kovid Goyal
9c9d68561e
When calling the active tab idx setter do not re-record the current tab in the active tab history if the current tab will not actually change. Fixes #3871
2021-07-27 09:12:35 +05:30
Kovid Goyal
1bd39ff935
Use new URL scheme and define the kitty website centrally as much as possible
2021-07-27 09:03:11 +05:30
Kovid Goyal
17f3d2d581
DRYer
2021-07-27 08:44:50 +05:30
Kovid Goyal
55aa9e11db
Dont use globals for role mapping
2021-07-27 08:39:04 +05:30
Kovid Goyal
bc895eacc5
Also prevent unknown roles from causing formatting to error
2021-07-27 08:07:11 +05:30
Kovid Goyal
6c8eb4a19a
Fix #3869
2021-07-27 08:05:55 +05:30
Kovid Goyal
887347106d
version 0.22.0
2021-07-26 13:57: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
aa339a8a9f
Expose parameter in boss.py as well
2021-07-25 13:59:36 +05:30
Kovid Goyal
a2f7aedd9c
Allow specifying which os window to toggle
2021-07-25 13:58:03 +05:30
Kovid Goyal
630379651e
Use union instead of define for graphics commands aliases
2021-07-25 13:14:52 +05:30
Kovid Goyal
3d9b52fbc2
Functions to get and set OS Window size
2021-07-25 12:58:58 +05:30
Kovid Goyal
2e01c1f37e
Wayland: Inform compositor of new window geometry when setting window size
2021-07-25 12:26:09 +05:30
Kovid Goyal
174abb352c
Fix broken link
2021-07-24 08:29:25 +05:30
Kovid Goyal
85e028cab1
Add links to kitten source code
2021-07-24 08:15:52 +05:30
Kovid Goyal
ff191c9404
clipboard kitten: fix copies to clipboard not working without the --wait-for-completion option
2021-07-24 07:55:50 +05:30
Kovid Goyal
31da01d4df
Add clipboard_control to query_terminal
2021-07-24 07:26:12 +05:30
Kovid Goyal
6d45a94125
Always ignore truncated OSC 52
2021-07-24 07:19:58 +05:30
Kovid Goyal
e7bfb04047
Fix mouse actions not working when caps lock or num lock are engaged
...
Fixes #3859
2021-07-24 07:06:46 +05:30
Kovid Goyal
b9033d721c
print KeyPress on a new line
2021-07-24 07:02:52 +05:30
Kovid Goyal
41c0343d33
macOS: Fix automatic detection of bold/italic faces for fonts that use the family name as the full face name of the regular font not working
...
Fixes #3861
2021-07-23 23:06:42 +05:30
Kovid Goyal
aa8156a7fd
Remove mentions of no-append
2021-07-23 22:28:34 +05:30
Kovid Goyal
e48adf7a07
Allow leading/trailing spaces in tab_activity_symbol
2021-07-23 22:26:10 +05:30
Kovid Goyal
8f214c51c0
Get rid of kitty's special OSC 52 protocol
...
A better solution from an ecosystem perspective is to just work with the
original protocol. I have modified kitty's escape parser to special case
OSC 52 handling without changing its max escape code size.
Basically, it works by splitting up OSC 52 escape codes longer than the
max size into a series of partial OSC 52 escape codes. These get
dispatched to the UI layer where it accumulates them upto the 8MB limit
and then sends to clipboard when the partial sequence ends.
See https://github.com/ranger/ranger/issues/1861
2021-07-23 22:18:02 +05:30
Kovid Goyal
096c4c78c7
Fix #3856
2021-07-23 08:13:47 +05:30
Kovid Goyal
257fce5a1b
Merge branch 'dankamongmen/triangle-wrangle' of https://github.com/dankamongmen/kitty
2021-07-23 08:09:25 +05:30
nick black
182bc7b8f9
U+1fb3f: upper middle left to lower right 🭊🬿
2021-07-22 18:21:57 -04:00
Kovid Goyal
3c35999246
Fix code scanning warning
2021-07-22 22:08:55 +05:30
Kovid Goyal
340159b591
Graphics protocol: Support for frame composition
...
Fixes #3809
2021-07-22 18:58:59 +05:30
Kovid Goyal
075fb2eaf2
DRYer
2021-07-22 17:56:21 +05:30
Kovid Goyal
21a2768ec3
...
2021-07-22 17:31:54 +05:30
Kovid Goyal
554c840d4e
ssh kitten: exit with 255 for unknown arg to match ssh
2021-07-22 17:30:07 +05:30
Kovid Goyal
9c28a1ba31
ssh kitten: handle --
2021-07-22 17:03:47 +05:30
Kovid Goyal
13fc921fa5
Dont hardcode the ignore path for sphinx-autobuild
2021-07-22 11:03:13 +05:30
Kovid Goyal
61f5d3972f
Dont use scrollIntoView as it causes the main content to scroll as well
2021-07-21 16:39:57 +05:30
Kovid Goyal
5027bc743b
Mark sidebar toc entry corresponding to current hash
...
Also scroll it to the top on initial page load
2021-07-21 14:41:01 +05:30
Kovid Goyal
9b8085220f
...
2021-07-21 14:16:53 +05:30
Kovid Goyal
54c04301cc
Use html_css_files instead of add_css_file
2021-07-21 13:12:32 +05:30
Kovid Goyal
cfd3bc823c
...
2021-07-21 12:36:55 +05:30
Kovid Goyal
329d95fd3a
Include all in page headings in the sidebar ToC
...
The furo theme tries to make this impossible, fortunately,
this being python, we dont care what it wants
2021-07-21 10:35:58 +05:30
Kovid Goyal
8dfef58f29
Use a glfw specific name for memfd_create
2021-07-20 21:49:11 +05:30
Kovid Goyal
eeb4d3fe55
Dont show individual tools in the page toc
2021-07-20 14:39:52 +05:30
Kovid Goyal
c6da4576b6
...
2021-07-20 14:37:31 +05:30
Kovid Goyal
2417122ed3
Make the integration tools link targets
2021-07-20 14:28:44 +05:30
Kovid Goyal
e6c17e19d7
Turn on nitpicky in makefile rather than conf.py
2021-07-20 13:57:58 +05:30
Kovid Goyal
d98c2f89aa
When redirecting preserve anchors
2021-07-20 13:51:50 +05:30
Kovid Goyal
624991b9b7
Use the builtin envvar role for env vars
...
Also fix some broken links
2021-07-20 13:29:39 +05:30
Kovid Goyal
c7ee776349
...
2021-07-20 13:21:45 +05:30
Kovid Goyal
ffeacef394
Document the various env vars kitty uses/sets
2021-07-20 13:19:23 +05:30
Kovid Goyal
f4ebec6759
The graphics protocol spec should link to POSIX not the linux man page
2021-07-20 09:51:15 +05:30
Kovid Goyal
93e3e4d2b1
Also strip \r from marked text
2021-07-19 18:12:29 +05:30
Kovid Goyal
3633049ba5
Forgot to include \r in the url regex
2021-07-19 18:09:00 +05:30
Kovid Goyal
c566ed4643
hints kitten: Detect paths and hashes that appear over multiple lines
...
Fixes #3845
2021-07-19 17:35:48 +05:30
Kovid Goyal
af956f4d84
Fix debug print for long strings
2021-07-19 16:56:10 +05:30
Kovid Goyal
b70c72fc3b
...
2021-07-19 13:45:20 +05:30
Kovid Goyal
1f35694705
Render ┄ ┅ ┆ ┇ ┈ ┉ ┊ ┋ with spaces at the edges
...
Matches rendering in most other programs and allows long chains of them to look better
Fixes #3844
2021-07-19 13:42:59 +05:30
Kovid Goyal
d912d96f00
More docs cleanups
2021-07-19 09:08:55 +05:30
Kovid Goyal
94f8fb4a4b
Cleanup up some doc formatting
2021-07-19 08:45:56 +05:30
Kovid Goyal
103744e2ca
Note the changed docs build requirements
2021-07-19 08:32:39 +05:30
Kovid Goyal
fe18a5de92
Use a shorter title
2021-07-18 22:19:47 +05:30
Kovid Goyal
9b0394860d
typo
2021-07-18 19:56:06 +05:30
Kovid Goyal
380c7628d8
Use tabs for C/Python code samples
2021-07-18 13:43:26 +05:30
Kovid Goyal
f787a377c3
A new theme for the kitty website
...
Supports dark mode. Also re-organize the documentation
a bit, making it more hierarchical.
Have a nicer landing page
2021-07-18 13:29:33 +05:30
Kovid Goyal
7c1b819728
Use nicer URLs without .html suffix on website
...
Also easier insertion of analytics tag for the website without
needing a custom template.
The old .html URLs are redirected via meta http-equiv refresh, which is
all gh-pages supports
2021-07-17 21:25:29 +05:30
Kovid Goyal
8e5175e56b
Revert "icat: Use scandir for slightly better performance"
...
This reverts commit 2e893690bd .
scandir is not recursive
2021-07-17 09:51:06 +05:30
Kovid Goyal
9e9d1a4e96
Add a glossary to define some commonly used terms in kitty
2021-07-17 06:36:56 +05:30
Kovid Goyal
fd475423cf
Fix reference to option in changelog docs
2021-07-17 06:30:48 +05:30
Kovid Goyal
070911d458
Wayland: Fix initial_window_size in cells on scale != 1 screens
...
Fixes #3834
2021-07-17 06:04:56 +05:30
Kovid Goyal
3b585e6dbb
Fix #3840
2021-07-17 05:46:08 +05:30
Kovid Goyal
2e893690bd
icat: Use scandir for slightly better performance
2021-07-16 21:55:15 +05:30
Kovid Goyal
d052b020fa
Check for dirs when getting mimetypes in a couple more places
2021-07-16 21:49:02 +05:30
Kovid Goyal
ac6224563b
Cleanup previous PR
2021-07-16 21:43:56 +05:30
Kovid Goyal
a9630890fd
Merge branch 'folder-mime' of https://github.com/william-gooch/kitty
2021-07-16 21:40:14 +05:30
Kovid Goyal
4b889750db
Add a new variable `{num_window_groups}` for tab_title_template
...
See #3837
2021-07-16 19:25:24 +05:30
William Gooch
308bd0d81d
Directories should have mime-type inode/directory.
2021-07-16 13:40:00 +01:00
Kovid Goyal
d55a86e39b
Cleanup icdir creation
2021-07-13 08:00:15 +05:30
Kovid Goyal
0c193c3ab7
Merge branch 'add-icons' of https://github.com/Artturin/kitty
2021-07-13 07:57:27 +05:30
Artturin
6f513f5706
linux: install a scalable icon
2021-07-13 05:10:15 +03:00
Kovid Goyal
368bc91eed
macOS: Render colors in the sRGB colorspace to match other macOS terminal applications
...
Fixes #2249
2021-07-12 17:34:03 +05:30
Kovid Goyal
3a322c5c6e
Fix warning from sphinx
2021-07-12 13:22:39 +05:30
Kovid Goyal
c5ee044343
Merge branch 'patch-1' of https://github.com/con-f-use/kitty
2021-07-12 13:21:08 +05:30
con-f-use
19b918e56f
mention kitten_alias in hits documentation
...
No idea if I correctly referenced this url: https://sw.kovidgoyal.net/kitty/conf.html#opt-kitty.kitten_alias
2021-07-12 07:48:34 +02:00
Kovid Goyal
cf5ed54c84
Dont add formatting escape codes to completion descriptions in ZSH
...
ZSH gets confused by them, causes the text to move up a line when
completing after the first line
2021-07-11 21:46:17 +05:30
Kovid Goyal
b813e1f7ab
...
2021-07-11 21:39:54 +05:30
Kovid Goyal
cdd8e52116
DRYer
2021-07-11 21:39:08 +05:30
Kovid Goyal
6945eb4186
Better complete debug function
2021-07-11 21:33:19 +05:30
Kovid Goyal
1d9626d493
Graphics protocol: Fix image without placements being deleted when screen scrolls
2021-07-10 14:05:53 +05:30
Kovid Goyal
75b73f6821
Allow using neighboring window operations in the stack layout
2021-07-09 08:54:22 +05:30
Kovid Goyal
f62f94381e
also forgot to list the a=a key
2021-07-08 09:17:42 +05:30
Kovid Goyal
cd6b3da665
Fix turning off cursor blink via escape codes not working
...
Also fix cursor blink stopping after terminal reset. The default cursor
state should be blinking.
Fixes #3808
...
2021-07-07 20:45:46 +05:30
Kovid Goyal
25fb5d0ee6
Forgot to list the f key for a
2021-07-07 18:26:06 +05:30
Kovid Goyal
65b2ca8f57
Fix a typo that broke addition of default mouse mappings in gen-config
...
Also update options/types.py with new action name
2021-07-07 18:06:39 +05:30
Kovid Goyal
1ec07eb17a
diff kitten: Remove limit on max line length of 4096 characters
...
Fixes #3806
2021-07-07 07:27:42 +05:30
Kovid Goyal
46fbf78da5
Fix #3804
2021-07-06 15:34:02 +05:30
Kovid Goyal
cea8d4a87d
...
2021-07-06 09:05:50 +05:30
Kovid Goyal
e07ba2c53d
Dont move back glyph on overflow in infinite ligatures
2021-07-05 14:47:01 +05:30
Kovid Goyal
0af3f102aa
...
2021-07-05 14:38:07 +05:30
Kovid Goyal
a5b293401d
Add an action to restore move-end behavior when extending selections
2021-07-04 19:02:33 +05:30
Kovid Goyal
05d0bda044
Allow selecting blanks at the start of the top line
2021-07-04 18:49:17 +05:30
Kovid Goyal
3dee3aba59
Fix #3794
2021-07-04 18:05:54 +05:30
Kovid Goyal
e732df46b8
Have right clicking to extend selection operate on the nearest selection boundary instead of the selection end. This matches both vim and xterm
2021-07-04 18:00:41 +05:30
Kovid Goyal
86a8b231f4
...
2021-07-04 07:15:15 +05:30
Kovid Goyal
10d359c222
Better error message for application escape mode
...
tmux apparently uses it
2021-07-03 12:24:51 +05:30
Kovid Goyal
1ef895e246
When dumping commands dump stop_pending_mode at the correct place
2021-07-03 12:07:46 +05:30
Kovid Goyal
38ae370202
Fix #3789
2021-07-03 10:12:44 +05:30
Kovid Goyal
610a09817f
Fix incorrect Sync terminfo entry
2021-07-03 09:18:33 +05:30
Kovid Goyal
c6938c9039
Add some missed actions
2021-07-02 21:43:18 +05:30
Kovid Goyal
7a8fb8f430
Merge branch 'dankamongmen/the-vs-then' of https://github.com/dankamongmen/kitty
2021-07-01 20:17:03 +05:30
nick black
3495591c5f
[trivial] s/the/then/
2021-07-01 10:34:43 -04:00
Kovid Goyal
050c31094b
toggle_layout action to zoom/unzoom active window
2021-07-01 17:57:00 +05:30
Kovid Goyal
6a4668974b
Forgot to mark layout actions
2021-07-01 17:38:26 +05:30
Kovid Goyal
026d200add
Fix a bug in the implementation of the synchronized updates escape code that could cause incorrect parsing if either the pending buffer capacity or the pending timeout were exceeded
...
Fixes #3779
2021-07-01 15:32:53 +05:30
Kovid Goyal
fe991ee767
DRYer
2021-07-01 08:53:11 +05:30
Kovid Goyal
b2a219f9d8
Add the Sync non-standard capability for synchronized updates to terminfo
...
Since the geniuses at terminal-wg are trying their best to create chaos
by retroactively changing the escape code used for this feature, it is
good to have a property for it in terminfo. Since tmux already uses Sync
for it, follow that in kitty's terminfo.
2021-07-01 08:48:59 +05:30
Kovid Goyal
64810e0e0b
Add some missing blank lines before code blocks
2021-07-01 07:22:49 +05:30
Kovid Goyal
6e5ed38b76
Add syntax highlighting for mouse_map
2021-06-30 15:56:03 +05:30
Kovid Goyal
8d308ef2b8
Add a ref to vim-kitty for syntax highlighting kitty.conf
2021-06-30 15:50:43 +05:30
Kovid Goyal
ab76ae3778
Dont set the filetype in the default config file modeline
...
This enables people using custom syntax highlighting such as
https://github.com/fladson/vim-kitty
2021-06-30 15:36:33 +05:30
Kovid Goyal
222055fcff
Add link to detailed cp buffers docs
2021-06-30 15:15:41 +05:30
Kovid Goyal
247d700c30
Fix docs build failure
2021-06-30 15:12:46 +05:30
Kovid Goyal
cf41d56c00
Clean docstrings when generating actions docs
2021-06-30 15:06:12 +05:30
Kovid Goyal
a8f7b1eb92
Disable text justification in website
...
Looks really bad in many places as there are quite a few non-breakbale
phrases.
2021-06-30 15:03:06 +05:30
Kovid Goyal
90d3ce4162
make target to publish website
2021-06-30 15:01:25 +05:30
Kovid Goyal
bc66b7f16e
Fix a bunch of broken links
2021-06-30 14:59:54 +05:30
Kovid Goyal
606708a96e
Cross reference builtin shortcuts from actions
2021-06-30 14:52:47 +05:30
Kovid Goyal
2ec0d94c31
Document all mappable actions
2021-06-30 14:33:28 +05:30
Kovid Goyal
e6a17f78b6
Use the main VT parser in pending mode as well
...
Should get much closer semantics in the two cases and its nice not to
have an extra mini VT parser for pending mode. There is a performance
hit in pending mode, since now the pending mode bytes are round tripped
via utf-8 decoding/encoding, but its worth it for the code
simplification.
2021-06-30 10:52:22 +05:30
Kovid Goyal
d6b6d3f59f
Make dispatch_unicode_char re-useable
2021-06-30 08:29:40 +05:30
Kovid Goyal
5932ddb0fe
DRYer
2021-06-30 07:57:21 +05:30
Kovid Goyal
d1e5c2f86f
...
2021-06-29 22:31:23 +05:30
Kovid Goyal
1f2f25f7a3
Mark the mouse actions
2021-06-29 22:27:31 +05:30
Kovid Goyal
b0edbf2857
Mark more actions
2021-06-29 22:21:01 +05:30
Kovid Goyal
91f0da9dcd
Document actions in the tab object
2021-06-29 20:12:39 +05:30
Kovid Goyal
3d5d60bc5b
...
2021-06-29 16:37:29 +05:30
Kovid Goyal
5c5599592a
abort CSI parsing on NUL or DEL
2021-06-29 12:37:34 +05:30
Kovid Goyal
c60d09f3b2
Mark combine as an action
2021-06-29 12:28:44 +05:30
Kovid Goyal
5768c54c5b
Add support for pending mode via SM/RM 2026
...
Because, why the hell not, it's not like I have an actual life.
More seriously, terminal-wg (aka Bikeshedder's Anonymous) is
pushing for it so it's likely at least one poor application writer
will fall for their propaganda.
2021-06-29 12:24:34 +05:30
Kovid Goyal
6d413e2492
Start documenting mappable actions
2021-06-28 21:44:52 +05:30
Kovid Goyal
331675d413
Fix ResourceWarning
2021-06-28 20:40:10 +05:30
Kovid Goyal
2105940286
Better error message for +launch
2021-06-28 19:38:51 +05:30
Kovid Goyal
90164dfee7
make clean should not clean bypy build artifacts
2021-06-28 06:39:12 +05:30
Kovid Goyal
73f641cb66
version 0.21.2
2021-06-28 06:22:35 +05:30
Kovid Goyal
3d51835b9b
Avoid unneccessary mallocs and copying when return code points for word
2021-06-28 05:56:49 +05:30
Kovid Goyal
f358d76409
Fix type sig
2021-06-28 05:51:49 +05:30
Kovid Goyal
ce486e9244
Move the if condition out of the inner loops
2021-06-27 21:09:06 +05:30
Kovid Goyal
691b7215a0
Unicode input kitten: Fix searching when a word has more than 1024 matches
...
Fixes #3773
2021-06-27 21:04:43 +05:30
Kovid Goyal
5be45d0ff2
Turn on all warnings when running test suite
2021-06-26 12:55:53 +05:30
Kovid Goyal
8a4b326127
Finish completion for ssh kitten
...
Fixes #3760
2021-06-26 12:28:12 +05:30
Kovid Goyal
051374cd55
Add support for comma separated completions
2021-06-26 10:52:14 +05:30
Kovid Goyal
71cd92da29
Store match group properties on the match group object
2021-06-26 09:47:21 +05:30
Kovid Goyal
c2d3a0c8b4
Completion for choice args
2021-06-26 09:18:36 +05:30
Kovid Goyal
fe8b151666
Complete option
2021-06-25 22:53:55 +05:30
Kovid Goyal
9e2d67f7a1
Show option descriptions when completing in ZSH
2021-06-25 19:13:16 +05:30
Kovid Goyal
23ea3745ca
Make zsh completion headings bold
2021-06-25 18:05:18 +05:30
Kovid Goyal
d8d5a8fada
More work on completion for the SSH kitten
2021-06-25 17:50:08 +05:30
Kovid Goyal
21ce0e90bf
Code to get list of known host names
2021-06-25 15:04:17 +05:30
Kovid Goyal
ec420b8012
Start work on completion for ssh kitten
2021-06-25 15:04:17 +05:30
Kovid Goyal
bd67899943
Allow using super and sub scripts in tab titles
...
The syntax is
{sup.whatever}
works by translating enhlish letters/number to their unicode
equivalents.
Fixes #3763
2021-06-25 15:02:43 +05:30
Kovid Goyal
4b7600f3a5
Nicer error message on unknown entry point
2021-06-25 10:25:54 +05:30
Kovid Goyal
5eabd69659
...
2021-06-25 08:03:20 +05:30
Kovid Goyal
e83be21756
Add a note about completions for the SSH kitten
2021-06-25 08:02:28 +05:30
Kovid Goyal
13c58536be
Cleanup previous PR and add changelog entry
2021-06-24 21:27:15 +05:30
Kovid Goyal
512dccdbfa
Merge branch 'ripgrep-context' of https://github.com/allemangD/kitty
2021-06-24 21:25:11 +05:30
David Allemang
bb3a8453e0
Make hyperlinked_grep kitten respect context
...
Fix regex so that context lines (from -C option) are still hyperlinked.
Also add a case so that any non-matching lines are still output raw.
2021-06-24 11:04:35 -04:00
Kovid Goyal
e337fcaadc
query terminal kitten: Allow querying font face and size information
...
Fixes #3756
2021-06-24 13:31:50 +05:30
Kovid Goyal
890a149a5d
Move generation of query responses into the query classes
2021-06-24 12:31:17 +05:30
Kovid Goyal
5b3ac259ce
Fix a resource warning
2021-06-24 11:27:02 +05:30
Kovid Goyal
ce50043048
Add an issue reference to the changelog
2021-06-23 14:16:41 +05:30
Kovid Goyal
ebfbf6082f
...
2021-06-21 21:23:29 +05:30
Kovid Goyal
b44bec2207
Move processing of coca_pending_actions() into its own function
...
Makes process_global_state less crowded and easier to grok
2021-06-21 21:03:41 +05:30
Kovid Goyal
576ce21fc8
macOS: Fix shortcuts in the global menu bar responding slowly when cursor blink is disabled/timed out
...
The event loop needed to be forced to tick over immediately otherwise
the changes were not being rendered till some other event such as mouse
motion or key release was not delivered.
Fixes #3693
2021-06-21 20:58:44 +05:30
Kovid Goyal
2ba015d0be
Add an issue reference to the changelog
...
Fixes #3405
2021-06-21 16:46:49 +05:30
Kovid Goyal
98ae2ac96a
ssh kitten: Use sh rather than /bin/sh
...
It's not actually required that sh be in /bin. The hope is that fewer
users alias sh to non POSIX things than put sh in places other than /bin
2021-06-21 16:43:59 +05:30
Kovid Goyal
1c25ed7666
ssh kitten: Fix "Connection closed" message being printed by ssh when running remote commands
...
Don't force allocate a tty when running remote commands. This
matches ssh behavior as well.
2021-06-21 16:40:07 +05:30
Kovid Goyal
fd4c7a4ed2
ssh kitten: Support system where the login shell is a non-POSIX shell
...
Now the kitten passes its script to /bin/sh and detects the login shell
using various strategies based on the value of $USER on the remote
machine. The strategies are tried one after another till one succeeds:
1) getent passwd $USER
2) id -P
3) python pwd module
4) parsing /etc/passwd
The hope is that these strategies will fail on fewer systems than
relying on the login shell being POSIX compliant.
2021-06-21 16:30:49 +05:30
Kovid Goyal
32d275c138
Document how to use the new config framework with external kittens
2021-06-21 05:31:17 +05:30
Kovid Goyal
f8924286ce
gen-config for third party kittens
2021-06-21 05:11:46 +05:30
Kovid Goyal
6e77345263
Ensure sys.path is preserved even if there are errors importing a custom kitten
2021-06-21 04:35:10 +05:30
Kovid Goyal
1438c64b9e
Move the config generation code into kitty proper
2021-06-21 04:25:04 +05:30
Kovid Goyal
2ff1256aef
mouse_discard_event -> discard_event
2021-06-21 04:01:45 +05:30
Kovid Goyal
5d169854c4
Merge branch 'typo' of https://github.com/Luflosi/kitty
2021-06-18 20:21:08 +05:30
Luflosi
e61d328cb0
Fix typo in changelog
2021-06-18 16:36:27 +02:00
Kovid Goyal
0c196888fb
Clarify meaning of grabbed/ungrabbed a bit more
2021-06-18 17:56:21 +05:30
Kovid Goyal
85efed8308
Fix #3743
2021-06-18 17:54:13 +05:30
Kovid Goyal
857c88a951
Add a note to the keyboard protocol elucidating the use of separate main and alternate screen mode stacks in more detail
2021-06-18 09:58:19 +05:30
Kovid Goyal
74b0a7f6f8
Make it clearer that there are separate keyboard mode stacks for main and alternate screens
2021-06-18 09:41:35 +05:30
Kovid Goyal
5da5d00aec
text typos
2021-06-18 08:20:32 +05:30
Kovid Goyal
eb59fae9b0
...
2021-06-18 08:20:04 +05:30
Kovid Goyal
b6b38d6f44
Linux: Fix emoji/bitmapped fonts not useable in symbol_map
2021-06-18 08:01:23 +05:30
Kovid Goyal
4f4d9e0ae3
...
2021-06-17 21:34:26 +05:30
Kovid Goyal
43c1776594
Handle systems that use less -F as pagers
...
Fix #3740
2021-06-17 21:33:26 +05:30
Kovid Goyal
397638998b
Dont use static memory for the list of chars options
...
Saves a couple of KB of RAM and is more flexible in terms
of max number of allowed chars, although for large numbers one really
needs a hash for fast lookups.
2021-06-17 13:27:11 +05:30
Kovid Goyal
6ddbda00df
Clean up url excluded chars PR
2021-06-17 13:11:23 +05:30
Kovid Goyal
df0bf74bfe
Merge branch 'url_excluded_characters' of https://github.com/rbutoi/kitty
2021-06-17 13:01:31 +05:30
Radu Butoi
5ee0651f56
Add url_excluded_characters option to exclude characters from URLs.
...
This option, like select_by_word_characters, is a set of characters, but
for which to *exclude* from URL parsing. See
https://github.com/kovidgoyal/kitty/issues/3688#issuecomment-862711148 .
2021-06-17 01:55:21 -04:00
Kovid Goyal
9ec1c28b35
Merge branch 'cleanup-adjust-baseline' of https://github.com/ytang/kitty
2021-06-16 21:24:59 +05:30
Yang Tang
bfdbf06731
Remove redundant code
2021-06-16 11:44:27 -04:00
Kovid Goyal
ca58b30c47
Fix compiler warning
2021-06-16 20:51:47 +05:30
Kovid Goyal
0fb2f383ac
Clean up the baseline adjustment PR
2021-06-16 20:39:00 +05:30
Kovid Goyal
5d0eb1d330
Merge branch 'adjust-baseline' of https://github.com/ytang/kitty
2021-06-16 20:04:15 +05:30
Kovid Goyal
ee77144e2b
Make the sample script a little nicer
2021-06-16 18:51:21 +05:30
Kovid Goyal
9d3a2cc219
Fix space based ligatures not rendering correctly
...
The new infinite ligature cache needed to be keyed by total number of
cells as well as total number of glyphs, otherwise a space based
ligature which is the same glyph rendered in different numbers of cells
wold render incorrectly when present in multiple forms. Fixes #3729
2021-06-16 18:41:01 +05:30
Yang Tang
e964ac86d5
Allow specifying adjust_baseline as either pixels or percentage
2021-06-16 01:11:51 -04:00
Yang Tang
bb26b3d549
Add option adjust_baseline to adjust the baseline position on macOS
2021-06-15 14:52:43 -04:00
Kovid Goyal
71c8d82c33
Merge branch 'doc-harfbuzz' of https://github.com/The-Compiler/kitty
2021-06-15 21:52:39 +05:30
Florian Bruhin
9fffe0d710
doc: Link to harfbuzz font feature format
2021-06-15 17:36:12 +02:00
Kovid Goyal
51f8b22dfa
macOS: Fix middle-click to paste from clipboard not working
...
Fixes #3730
2021-06-15 13:45:50 +05:30
Kovid Goyal
63a36a1054
Add Smulx to terminfo
...
A couple of other terminals use it for styled underlines, in
contravention of the spec. But, in the interests of wider
interoperability add it to kitty as well.
Fixes #3725
2021-06-14 11:58:52 +05:30
Kovid Goyal
057084a708
Add support for XTVERSION version reporting escape code
2021-06-14 10:20:50 +05:30
Kovid Goyal
79b130ed23
version 0.21.1
2021-06-14 07:47:32 +05:30
Kovid Goyal
75e8b16ea3
Dont limit the number of possible cocoa pending actions to the number of bits in an int
2021-06-14 07:34:28 +05:30
Kovid Goyal
1b35708d89
macOS: Fix a crash when rendering ligatures larger than 128 characters
...
Fixes #3724
2021-06-14 07:15:52 +05:30
Kovid Goyal
ebff343a55
macOS: Add reload config to kitty global menu
2021-06-13 20:34:27 +05:30
Kovid Goyal
c7b91e5f19
Cocoa grabs control+function key presses so use dedicated cmd based shortcuts for those on macOS
2021-06-13 18:20:14 +05:30
Kovid Goyal
b9d52dfaf7
Update Changelog
2021-06-13 10:01:38 +05:30
Kovid Goyal
2c8f66586f
macOS: Fix a regression in the previous release that broke rendering of strikeout
...
The new cell height code forgot to adjust strikeout position.
Fixes #3717
2021-06-13 09:29:30 +05:30
Kovid Goyal
219bf564f7
Fix #3719
2021-06-13 09:07:08 +05:30
Kovid Goyal
291be6f5a6
Silence incorrect compiler warning on older gcc
2021-06-12 13:15:05 +05:30
Kovid Goyal
1da2344aa3
Fix a possible crash when handling mouse clicks
2021-06-12 13:03:47 +05:30
Kovid Goyal
750cf7ad20
version 0.21.0
2021-06-12 08:41:37 +05:30
Kovid Goyal
962acd1537
ssh kitten: Fix non-standard properties in terminfo such as the ones used for true color not being copied
2021-06-12 07:27:14 +05:30
Kovid Goyal
7a44765860
Remove unused pyc files from frozen bundles
2021-06-11 12:46:12 +05:30
Kovid Goyal
007be8e52c
Add a note about matching source to binary versions
2021-06-11 09:14:05 +05:30
Kovid Goyal
5e4c98eae6
Remote control: Allow matching tabs by index number in currently active OS Window
...
Fixes #3708
2021-06-11 09:12:08 +05:30
Kovid Goyal
858a6dc27e
Document KITTY_DEVELOP_FROM
2021-06-11 08:59:55 +05:30
Kovid Goyal
ad5d14c672
Fix #3703
2021-06-10 16:53:27 +05:30
Kovid Goyal
199685a25b
Graphics protocol: Add support for shared memory on Windows
2021-06-10 12:44:50 +05:30
Kovid Goyal
d99e243f57
Respect --ignore-compiler-warnings when building the launcher
2021-06-10 07:48:52 +05:30
Kovid Goyal
64f1211cf8
Fix example in FAQ
...
Mapping wont work in kitty keyboard mode.
2021-06-09 20:46:36 +05:30
Kovid Goyal
9432f86e43
Remove no longer needed type: ignore
...
Looks like the type signature for runpy.run_path has finally been fixed
2021-06-09 08:30:22 +05:30
Kovid Goyal
fc99d4d757
Specify the type of files to make mypy happy (I hope)
2021-06-09 08:24:36 +05:30
Kovid Goyal
7fb2b21a22
Also needs types for docutils
2021-06-09 08:18:04 +05:30
Kovid Goyal
260b300da9
Now mypy wants types for requests installed
2021-06-09 08:14:02 +05:30
Kovid Goyal
f26d5b02cb
...
2021-06-09 08:01:46 +05:30
Kovid Goyal
c9ff061feb
Merge branch 'leiserfg-doc-patch' of https://github.com/leiserfg/kitty
2021-06-08 08:11:51 +05:30
Leiser Fernández Gallo
86ad318e6c
Fix Iosevka version in the docs
...
Iosevka with kitty support is already out, just waiting for kitty to be released too 🎉
2021-06-07 17:36:40 +02:00
Kovid Goyal
df05339d2a
Allow reloading config by sending the SIGUSR1 signal
2021-06-07 20:51:45 +05:30
Kovid Goyal
ec1303a232
Fix some more warnings
2021-06-07 17:30:13 +05:30
Kovid Goyal
c1049734e6
Simpler implementation of scroll and clear screen
2021-06-07 17:13:39 +05:30
Kovid Goyal
99fa79caaf
Fix warning
2021-06-07 17:12:53 +05:30
Kovid Goyal
761062a6d7
Discard press event for ctrl+shift+release open_url mapping as it can causes issues when delivered to the terminal program
2021-06-07 17:00:09 +05:30
Kovid Goyal
11227b3ee1
Fix motivation for ctrl+shift+release mapping
2021-06-07 16:36:39 +05:30
Kovid Goyal
8d63d50aea
Sort imports
2021-06-07 15:01:30 +05:30
Kovid Goyal
3360aa6c33
Fix #3695
2021-06-07 14:57:38 +05:30
Kovid Goyal
bfffd98fd4
Add a changelog entry for config reloading
...
Fixes #1292
2021-06-07 09:38:41 +05:30
Kovid Goyal
9a86184a45
Add a note about binding ctrl+l to scroll and clear instead of just clear
2021-06-07 09:35:08 +05:30
Kovid Goyal
00828cb804
More reloading work for various options
2021-06-07 09:30:15 +05:30
Kovid Goyal
ec31a36fd9
Fix reloading of various settings
2021-06-07 08:27:58 +05:30
Kovid Goyal
9003c76261
Add a shortcut to reload the config file
2021-06-06 18:49:58 +05:30
Kovid Goyal
7148f262c0
Reload for keys, fonts and colors now working
2021-06-06 14:31:22 +05:30
Kovid Goyal
3ab417e291
Start work on config file reloading
2021-06-05 15:29:28 +05:30
Kovid Goyal
4ced7b7657
Missed one reference to --debug-config
2021-06-05 15:12:52 +05:30
Kovid Goyal
ad69143573
Improve config debug output for is_multiple variables
2021-06-05 14:39:43 +05:30
Kovid Goyal
4a71afaf96
Get rid of --debug-config
...
Instead have a keybind that shows the configuration used
by the currently running kitty instance
2021-06-05 14:27:24 +05:30
Kovid Goyal
a1b87f445b
Store the paths from which config data is read on the created options object
2021-06-05 12:55:00 +05:30
Kovid Goyal
33e63f000a
Make mouse mapping gen-config order stable
2021-06-05 12:22:54 +05:30
Kovid Goyal
1c8b7955eb
Have gen-config output action names as comments
2021-06-05 12:20:43 +05:30
Kovid Goyal
0bade29c25
Fix a gen-config bug that was causing macos shortcuts to be defined on linux as well
2021-06-05 10:14:30 +05:30
Kovid Goyal
4cff3e51cb
macOS: Add a global menu entry to reset the terminal
2021-06-05 10:12:44 +05:30
Kovid Goyal
d264c3d91e
typo
2021-06-05 10:10:23 +05:30
Kovid Goyal
099fed07e9
Note that set-font-size --all changes configured size
2021-06-05 09:39:10 +05:30
Kovid Goyal
091fec0867
Add tab bar margin height to changelog
...
Fixes #3685
Fixes #3247
2021-06-05 09:18:52 +05:30
Kovid Goyal
a670268a6b
Add blank rects for tab bar padding
2021-06-05 09:16:24 +05:30
Kovid Goyal
caa44b3d4a
Position tab bar as per new margin options
...
Also mouse clicking anywhere in the tab bar margins should be the same
as clicking in the tab bar, for ease of use.
2021-06-05 09:02:01 +05:30
Kovid Goyal
f3977da8f3
Start work on options for tab bar vertical margins
...
Create the option, now need to implement it.
2021-06-05 09:01:57 +05:30
Kovid Goyal
7dc3184f31
...
2021-06-04 22:00:15 +05:30
Kovid Goyal
d09c20aa01
Store the global font_size on the opts object where it belongs
2021-06-04 21:51:02 +05:30
Kovid Goyal
81411e6b54
Fix trailing parentheses in URLs not being detected
...
Also fix URLs starting near the end of the line not being detected.
Fixes #3688
2021-06-04 18:13:36 +05:30
Kovid Goyal
a8d1c73fec
API to get text for currently marked URL
2021-06-04 14:35:22 +05:30
Kovid Goyal
1b3742efbb
Add a link to Iosevka in the changelog
2021-06-04 12:20:27 +05:30
Kovid Goyal
e01bb09e8c
Fix ligatures not working with the Iosevka font
...
Fixes #297
2021-06-04 12:18:17 +05:30
Kovid Goyal
2c9c0751a4
Speed up import of options.types
...
The color table attributes are never used in a type checked
environment, only via setattr/gettattr so dont create individual
get/setters for them. Reduaces the import time for this module from 2ms
to 0.7ms
Since attribute access is implemented via __getattr__ there should be no
performance implications for normal attribute access, as __getattr__ is
only called if normal attribute access fails. setattr becomes slightly
slower but that is done very rarely.
2021-06-04 06:01:55 +05:30
Kovid Goyal
e10a7579e8
Remove unreachable code
2021-06-04 05:40:27 +05:30
Kovid Goyal
c52a04c7d3
Use a tuple for clipboard control
...
Avoids churn in the generated options files as python randomized set
ordering
2021-06-04 05:36:05 +05:30
Kovid Goyal
79dd98b20e
Use a more efficient representation of the color table on the Options object
2021-06-03 22:17:37 +05:30
Kovid Goyal
2e71429b03
Auto generate the boilerplate code to convert python opts to c opts
2021-06-03 18:30:13 +05:30
Kovid Goyal
4ab299d0af
When reflowing the screen, also reflow the saved cursor position
2021-06-03 15:35:48 +05:30
Kovid Goyal
c60a941d1b
Allow rewrap_inner to track multiple positions
2021-06-03 12:29:27 +05:30
Kovid Goyal
e2197c586b
Forgot a brace
2021-06-03 12:11:31 +05:30
Kovid Goyal
93e9d3cb5f
Fix a crash on exit on macOS
...
Calling Python API functions is not allowed in atexit handlers.
Fixes #3686
2021-06-03 11:54:55 +05:30
Kovid Goyal
2e7b68bf74
Move python to C converters into their own header
2021-06-01 21:18:39 +05:30
Kovid Goyal
6ffb198e9c
DRYer
2021-06-01 21:15:36 +05:30
Kovid Goyal
604458810e
Start work on autogenerating opts to c conversion boilerplate
2021-06-01 13:33:19 +05:30
Kovid Goyal
af5ed093b8
Fix test failing on macOS
2021-05-31 17:54:57 +05:30
Kovid Goyal
8f491e7dbb
Add newslines at end of generated files and do imports in sorted order
2021-05-31 17:45:02 +05:30
Kovid Goyal
c1324da3fc
missing newline in debug print
2021-05-31 17:42:10 +05:30
Kovid Goyal
0bbc4462fd
Coalesce shortcuts as well
2021-05-31 17:40:49 +05:30
Kovid Goyal
e0261e925e
DRYer
2021-05-31 17:40:49 +05:30
Kovid Goyal
46b3f71b8f
Start work on porting docs generation
2021-05-31 17:40:49 +05:30
Kovid Goyal
3e598a17cf
Add headers to options def files
2021-05-31 17:40:49 +05:30
Kovid Goyal
c1b13f2db2
DRYer
2021-05-31 17:40:49 +05:30
Kovid Goyal
a059e49579
Restore conf file generation in the new framework
2021-05-31 17:40:49 +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
dd5715ce79
Rename parsing placeholders for actions
2021-05-31 17:40:48 +05:30
Kovid Goyal
43acf3c5b1
name parser for deprecated send text appropriately
2021-05-31 17:40:48 +05:30
Kovid Goyal
f7db9e3527
Move deprecated parsers into utils
2021-05-31 17:40:48 +05:30
Kovid Goyal
1621a67f36
unused import
2021-05-31 17:40:48 +05:30
Kovid Goyal
248631a1a8
Add tests for conf parsing
2021-05-31 17:40:48 +05:30
Kovid Goyal
b4cb6e10ca
Dont resolve kitty_mod in the defaults key definitions
...
Needed to allow multiple load_config calls
2021-05-31 17:40:48 +05:30
Kovid Goyal
5fa73e4413
Dont use a unneccessary global variable
2021-05-31 17:40:48 +05:30
Kovid Goyal
49c4b20113
Report bad choice values when parsing config
2021-05-31 17:40:48 +05:30
Kovid Goyal
43ece23b89
the args for KeyAction are not just strings
2021-05-31 17:40:48 +05:30
Kovid Goyal
f976851442
Make the repr for KeyAction more compact
2021-05-31 17:40:48 +05:30
Kovid Goyal
5470dd74bd
Move options code into its own directory
2021-05-31 17:40:48 +05:30
Kovid Goyal
ddd178fa82
Move clear_all_shortcuts to options_types
2021-05-31 17:40:48 +05:30
Kovid Goyal
8d411cac5f
...
2021-05-31 17:40:48 +05:30
Kovid Goyal
bfbb85399e
Move action parsing to option_types
2021-05-31 17:40:47 +05:30
Kovid Goyal
9f8a120664
Add __repr__ for action definitions
2021-05-31 17:40:47 +05:30
Kovid Goyal
e1cd6b6037
kitten_alias is also an is_multiple option
2021-05-31 17:40:47 +05:30
Kovid Goyal
2fd4487922
Better naming of action parsers
2021-05-31 17:40:47 +05:30
Kovid Goyal
27a459b0dd
Refactor action parsers as generators
2021-05-31 17:40:47 +05:30
Kovid Goyal
6c344d4ae2
Move the action parsing code into options_types
2021-05-31 17:40:47 +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
09093c8f3e
Cleanup PR
2021-05-30 12:47:00 +05:30
Kovid Goyal
222bf09df4
Merge branch 'libstartup-notification' of https://github.com/ctrlcctrlv/kitty
2021-05-30 12:45:13 +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
bfe1952705
Merge branch 'less-contrast-for-powerline-alt-separator' of https://github.com/chipaca/kitty
2021-05-30 07:37:41 +05:30
John R. Lenton
97181a39da
Use less contrasting color for powerline alt separator
...
This change makes it so that when using powerline-style tab bars, and
if the `tab_bar_background`, `inactive_tab_background` and
`inactive_tab_foreground` are all different, the separator between
inactive tabs uses the less contrasting color between the inactive
foreground, and the tab bar background.
This fixes #3664 .
2021-05-29 16:54:51 +01:00
Kovid Goyal
39b3d3de0f
macOS: Fix the baseline for text not matching other CoreText based applications for some fonts
...
Finally found an API to query CoreText for the adjusted baseline
position, so the baseline should now match up with other CoreText
based applications.
Fixes #2022
2021-05-29 14:19:20 +05:30
Kovid Goyal
056d16017f
Fix #3660
2021-05-28 05:33:12 +05:30
Kovid Goyal
5cef0aef92
Update changelog for last PR
2021-05-25 18:19:34 +05:30
Kovid Goyal
f794de5b9b
Merge branch 'new-menu-items' of https://github.com/Luflosi/kitty
2021-05-25 18:18:32 +05:30
Luflosi
4a67af9b90
macOS: add menu items for new_window and close_window
2021-05-25 13:54:02 +02:00
Kovid Goyal
f178dff4e0
Remove the special_types kludge for is_multiple options
2021-05-25 11:25:39 +05:30
Kovid Goyal
ba821cb02f
DOnt be lazy about typing font features
2021-05-25 09:29:47 +05:30
Kovid Goyal
b169831810
remove unused import
2021-05-25 09:00:54 +05:30
Kovid Goyal
06b3c71304
Make is_multiple explicit
2021-05-25 08:46:26 +05:30
Kovid Goyal
fe94f4cbb4
Move type parsers for config into own module
2021-05-24 22:29:28 +05:30
Kovid Goyal
a4daa49f70
Micro-optimization
2021-05-24 17:11:20 +05:30
Kovid Goyal
3b1d534f6d
The parser doesnt need the full defaults object
2021-05-24 14:01:50 +05:30
Kovid Goyal
c1777b1098
DRYer
2021-05-24 13:42:51 +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
253b219d67
Store the options object globally
2021-05-24 11:50:03 +05:30
Kovid Goyal
b702f3daf1
In extend from point mode always restrict the top line to be from the point, even for multiline selections
...
Otherwise soft wrapped lines cause the full first line to be selected.
2021-05-23 15:52:48 +05:30
Kovid Goyal
76c9f46438
Disambiguate between click and doublepress
...
A doubleprpess should not generate a click event
2021-05-23 13:38:19 +05:30
Kovid Goyal
c6c203da43
Remove unused imports
2021-05-23 11:48:30 +05:30
Kovid Goyal
00302b74d1
Add a default mapping for line_from_point selection
2021-05-23 11:37:26 +05:30
Kovid Goyal
32f6f18527
DRYer
2021-05-23 11:22:29 +05:30
Kovid Goyal
4fd0446538
Merge branch 'new-menu-bar-item' of https://github.com/Luflosi/kitty
2021-05-22 06:03:32 +05:30
Luflosi
082ad61d14
macOS: move menu bar items for opening and closing OS windows and tabs to new menu
...
Most apps on macOS have the menu items for opening and closing tabs and windows in the "File" menu. Since this doesn't really apply to Terminal emulators, both Terminal.app and iTerm2 have them in the "Shell" menu instead.
This change makes the menu bar of kitty more consistent with these applications.
2021-05-21 18:21:31 +02:00
Kovid Goyal
0ca4faa25b
New OS window -> New OS Window
2021-05-21 17:57:53 +05:30
Kovid Goyal
46a0566e2e
Special handling for IOSevka's future ligatures
...
See https://github.com/be5invis/Iosevka/issues/1007
2021-05-21 17:53:49 +05:30
Kovid Goyal
97440d45d6
Add an example showing how to run things in scripts via launch
2021-05-21 16:02:05 +05:30
Kovid Goyal
c5afe4e745
Merge branch 'feat/undercurl-retina' of https://github.com/disrupted/kitty
2021-05-21 08:30:21 +05:30
Kovid Goyal
bc6e819396
typos in text
2021-05-19 20:35:43 +05:30
disrupted
d650a97dda
Fix undercurl height & thickness on HiDPI screens
...
Update positioning
2021-05-18 19:00:46 +02:00
Kovid Goyal
cf88eb9d60
ssh kitten: Mimic behavior of ssh more closely
...
Execute any command specified on the command line via the users' shell
on the remote side just as ssh does
Fixes #3638
2021-05-18 15:12:57 +05:30
Kovid Goyal
0a742ea8d0
middle is more common than start or end
2021-05-18 09:55:00 +05:30
Kovid Goyal
cb8935746f
Pass the font group to init_face
...
Allows using the DPI there if needed
2021-05-18 07:58:32 +05:30
Kovid Goyal
608ac953e5
Pass DPI through to special render function
2021-05-18 07:46:04 +05:30
Kovid Goyal
4d0d0b205d
Improve parser error messages a bit
2021-05-17 21:29:54 +05:30
Kovid Goyal
07b643e24c
Remove expected behavior section from issue template
...
Its largely redundant and a waste of time. Not to mention
no one likes being told what's expected of them :))
2021-05-17 18:38:46 +05:30
Kovid Goyal
02fb020dfd
Better fix for minimal border layout issue
...
Keep _set_dimensions() private
2021-05-17 15:30:03 +05:30
Kovid Goyal
bac6ebdf95
Fix incorrect border drawing when multiple tabs and multiple OS Windows are present and some of the OS Windows have tab bars and some dont
...
Fixes #3634
2021-05-17 15:04:33 +05:30
Kovid Goyal
b7072d4097
Mention how to unmap mouse actions
2021-05-17 08:26:12 +05:30
Kovid Goyal
d7c7bb00b8
Merge branch 'master' of https://github.com/copy/kitty
2021-05-17 07:42:13 +05:30
Fabian
0485f0c7ed
kitty @ get-text add an option to wrap long lines
2021-05-16 15:19:22 -05:00
Kovid Goyal
2ade6c0739
Update outdated info in build docs
2021-05-16 21:22:33 +05:30
Kovid Goyal
5eeb19871b
Update dependency requirements for build from source
2021-05-16 21:20:11 +05:30
Kovid Goyal
083a0ae5fc
...
2021-05-16 09:33:06 +05:30
Kovid Goyal
ccc370e1c4
Dont initialize FontConfig when importing fast_data_types
...
This reduces the import time for fast_data_types by 12ms on my machine.
FontConfig initialization is very slow and it is only needed by the
main kitty program, however fast_data_types is imported in kittens and
remote control as well, where FontConfig is useless.
2021-05-15 10:41:54 +05:30
Kovid Goyal
23b8cafc41
Add layout name completion to @ goto-layout
2021-05-15 10:25:34 +05:30
Kovid Goyal
d7ab96856c
...
2021-05-15 09:42:52 +05:30
Kovid Goyal
3c77229f61
Add --no-response to set-background-image
2021-05-15 09:41:22 +05:30
Kovid Goyal
fcd206891f
kitty @ get-text add an option to also get the current cursor position and state as ANSI escape codes
...
Fixes #3625
2021-05-15 09:27:28 +05:30
Kovid Goyal
3bf9130b0a
Fix deleting windows that are not the last window via remote control leaving no window focused
...
Fixes #3619
2021-05-14 07:25:48 +05:30
Kovid Goyal
4125ac013f
Validate command line args to @ goto-layout better
2021-05-13 20:46:37 +05:30
Kovid Goyal
e089e9c121
Clarify what --debug-config does
2021-05-13 20:19:34 +05:30
Kovid Goyal
81af379bbc
correct spelling
2021-05-13 17:46:21 +05:30
Kovid Goyal
9b07aa6894
Simplify Quickstart section by delegating repo link to repology.org
...
Also add a warning about some Linux distros with outdated packages.
2021-05-13 17:42:29 +05:30
Kovid Goyal
a75140c6d7
Add a --working-directory alias for --directory as this is commonly used in many terminal emulators
2021-05-13 16:13:46 +05:30
Kovid Goyal
f3364cfdc0
Guard against invalid cache file in a couple more places
2021-05-13 09:51:57 +05:30
Kovid Goyal
f64b4e0e56
...
2021-05-12 20:26:38 +05:30
Kovid Goyal
a1356d3bcf
...
2021-05-12 12:29:53 +05:30
Kovid Goyal
4c5a1ceefa
Add a FAQ entry for why one should never output binary data into terminals
2021-05-12 12:24:29 +05:30
Kovid Goyal
e4b4a35375
macOS: Fix rendering getting stuck on some machines after sleep/screensaver
...
This is caused, as far as I can tell, by CVDisplayLink getting stuck.
Apple apparently are incapable of writing a simple timer robustly.
So if it remains stuck after a second delete and recreate it to force it
to restart.
Fixes #2016
2021-05-12 07:30:17 +05:30
Kovid Goyal
cc2afef390
Make the max number of unscrolled lines implementation defined
2021-05-11 14:55:14 +05:30
Kovid Goyal
7c5706ead9
Add the ability to unscroll the screen to the `kitty @ scroll-window` remote control command
...
Fixes #3604
2021-05-11 14:36:52 +05:30
Kovid Goyal
bcb739fcd2
Allow clicking URLs to open them without needing to also hold ctrl+shift
2021-05-11 14:20:12 +05:30
Kovid Goyal
85ef3724f1
Proper prefix when reporting Move events
2021-05-11 14:02:17 +05:30
Kovid Goyal
cb21422836
Add click and doubleclick events as well
2021-05-11 13:59:52 +05:30
Kovid Goyal
1c9674cec9
SPlit up add_click into two functions
2021-05-11 13:19:34 +05:30
Kovid Goyal
6dcc09a96f
Port mouse selection tests to new framework
2021-05-11 11:49:44 +05:30
Kovid Goyal
0260c9d3fb
Add a note about selection drag being auto-released
2021-05-11 11:18:10 +05:30
Kovid Goyal
80c03f28f8
Add a note about backward incompatibility
2021-05-11 10:36:48 +05:30
Kovid Goyal
eeaf67079a
DRYer
2021-05-11 10:33:01 +05:30
Kovid Goyal
c50863c0d5
Add a note about --debug-input
2021-05-11 10:28:27 +05:30
Kovid Goyal
f4ab6542fa
...
2021-05-11 10:24:48 +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
7a40959f13
Add a configurable mouse action to select from the clicked point to the end of the line.
...
Fixes #3585
2021-05-11 09:01:52 +05:30
Kovid Goyal
2b4d55804c
Document the mouse action mapping infrastructure
2021-05-11 08:39:13 +05:30
Kovid Goyal
858dac5601
Port mouse selection handling to the new generic mouse actions framework
2021-05-10 21:33:13 +05:30
Kovid Goyal
e944945b7a
Implement URL clicking handler
2021-05-10 15:35:50 +05:30
Kovid Goyal
920151a460
Fix mouse event dispatch
2021-05-10 14:48:29 +05:30
Kovid Goyal
ac2a01fb09
Implement documentation generation and conf file generation for mouse actions
2021-05-10 14:27:45 +05:30
Kovid Goyal
a7933018cb
Start work on intercepting mouse events
2021-05-10 07:16:43 +05:30
Kovid Goyal
5ee889eadd
Dont carry around a bunch of definitions that were only needed during parsing on the opts object
2021-05-10 07:16:43 +05:30
Kovid Goyal
e811f03011
Match key names
2021-05-10 07:16:43 +05:30
Kovid Goyal
417c81de60
Implement parsing for mouse_map config
2021-05-10 07:16:43 +05:30
Kovid Goyal
212c653165
Maintain separate click queues for every button
2021-05-10 07:16:43 +05:30
Kovid Goyal
e36f11385f
Convert mouse buttons to an enum
2021-05-10 07:16:43 +05:30
Kovid Goyal
abb05f4883
...
2021-05-10 07:16:43 +05:30
Kovid Goyal
2973f33959
Start work on parsing mouse mappings
2021-05-10 07:16:43 +05:30
Kovid Goyal
053c2ed2b9
Make pow10_array const
2021-05-10 07:16:43 +05:30
Kovid Goyal
1865570390
Dont force dragging to be with left button
2021-05-10 07:16:43 +05:30
Kovid Goyal
ba1ee7e6cc
Code to dispatch mouse events to python
2021-05-10 07:16:43 +05:30
Kovid Goyal
f6b0fcbc0f
Add a link to patat
2021-05-10 07:12:31 +05:30
Kovid Goyal
a802058886
Add a link to hologram.nvim
2021-05-10 07:08:27 +05:30
Kovid Goyal
bbc1f68966
Add a link to euporie
2021-05-10 07:04:45 +05:30
Kovid Goyal
ca0b42c3bd
oops
2021-05-10 06:28:03 +05:30
Kovid Goyal
9536a475ff
Add changelog entry for last PR
2021-05-10 06:12:41 +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
6c0730fef4
...
2021-05-09 15:27:36 +05:30
Kovid Goyal
c73132610e
Merge branch 'master' of https://github.com/jean/kitty
2021-05-09 15:26:56 +05:30
Jean Jordaan
77abaaf8b8
Oh yes, gather stow'd directories in one place for tidiness
2021-05-09 16:43:22 +07:00
Jean Jordaan
2787e86fd7
Shout-out to stow, it deserves to be used :-)
2021-05-09 16:38:49 +07:00
Kovid Goyal
355808b0f6
Fix dynamically changing the background color in a window causing rendering artifacts in the tab bar
...
Fixes #3595
2021-05-09 11:54:51 +05:30
Kovid Goyal
80c13fa75b
Use same co-ord system for cursor as in KITTY_PIPE_DATA
2021-05-09 08:11:05 +05:30
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
63d76ee837
macOS: When the Apple Color Emoji font lacks an emoji glyph search for it in other installed fonts
...
Fixes #3591
2021-05-09 07:17:32 +05:30
Kovid Goyal
7c48db7da8
Merge pull request #3592 from aaronjanse/allocation_typo
...
fix allocation typo
2021-05-08 15:10:10 +05:30
Aaron Janse
bd8d5f6288
fix allocation typo
2021-05-08 01:51:29 -07:00
Kovid Goyal
7413b7c4f6
Merge pull request #3590 from dankamongmen/master
...
graphics-protocol.rst: s/and/an/
2021-05-07 16:37:17 +05:30
nick black
80e3c871ce
graphics-protocol.rst: s/and/an/
2021-05-07 06:15:12 -04:00
Kovid Goyal
74c1e02274
Remove redundant F1-F4 defs in cursor key more
2021-05-07 15:20:26 +05:30
Kovid Goyal
efb0f6f24a
Fix a regression in 0.20.0 that sent incorrect bytes for the F1-F4 keys in rmkx mode
...
Fixes #3586
2021-05-07 15:09:42 +05:30
Kovid Goyal
dbf8580dc3
Add issue reference for infinite length ligatures
...
Fixes #3504
2021-05-07 11:55:38 +05:30
Kovid Goyal
f110a01ffe
Only use the last line of ssh hostname -f output incase the user has configured ssh to print random junk on login
2021-05-07 11:42:52 +05:30
Kovid Goyal
eced40a761
...
2021-05-07 09:31:31 +05:30
Kovid Goyal
5ac315bc3a
DRYer
2021-05-07 09:30:44 +05:30
Kovid Goyal
32df4daa63
Fix warning from CodeQL
2021-05-07 09:27:52 +05:30
Kovid Goyal
5836e456e5
Cleanup mouse features documentation
2021-05-07 09:19:17 +05:30
Kovid Goyal
dc6ab69387
Workaround spurious error reported by ASAN
2021-05-07 08:34:18 +05:30
Kovid Goyal
7301c56753
...
2021-05-07 07:42:39 +05:30
Kovid Goyal
3b76d657bd
Fix colored indication not being sent to GPU
2021-05-07 07:41:19 +05:30
Kovid Goyal
2adb6240e4
Reduce GPU memory for infinite length ligatures
...
An infinite length ligature (longer than 9 glyphs) that has long
sequences of a repeated glyph now does not store a separate sprite
for every repeat.
For example in the ligature ---------- even though there are 10 hyphen
glyphs only four will be stored on the GPU.
2021-05-07 06:59:30 +05:30
Kovid Goyal
e11af496da
Remove incorrect cast
2021-05-07 06:59:30 +05:30
Kovid Goyal
f6e33406d7
Dont assume all sprites are rendered if the first one is
2021-05-07 06:59:30 +05:30
Kovid Goyal
6eab138d68
...
2021-05-07 06:59:29 +05:30
Kovid Goyal
33287115de
Support infinite length ligatures
2021-05-07 06:59:24 +05:30
Kovid Goyal
8e36056dd8
oops
2021-05-07 06:58:55 +05:30
Kovid Goyal
4a34f596a8
Remove MAX_EXTRA_GLYPHS_IN_GROUP
2021-05-07 06:58:55 +05:30
Kovid Goyal
7616a3e743
...
2021-05-07 06:58:55 +05:30
Kovid Goyal
c64353c324
Dont make canvas dependent on max num of glyphs
2021-05-07 06:58:55 +05:30
Kovid Goyal
8eac22d37a
typo
2021-05-07 06:58:55 +05:30
Kovid Goyal
35fab12330
Dont rely on max glyphs limit for scratch space
2021-05-07 06:58:55 +05:30
Kovid Goyal
a46988bc50
Simplify code by getting rid of ExtraGlyphs
2021-05-07 06:58:54 +05:30
Kovid Goyal
26e1d6fe5c
Use uthash for glyph properties as well
2021-05-07 06:58:54 +05:30
Kovid Goyal
ec68739585
Make it harder to forget to redefine uthash_fatal
2021-05-07 06:58:54 +05:30
Kovid Goyal
33de0f821f
Use uthash for the sprite position cache
2021-05-07 06:58:54 +05:30
Kovid Goyal
86ce11134a
Unicode input kitten: Fix a regression in 0.20.0 that broke keyboard handling when the num lock or caps lock modifiers were engaged.
...
Fixes #3587
2021-05-07 06:55:25 +05:30
Kovid Goyal
bef4905416
Also remove -pedantic-errors when using --ignore-compiler-warnings
...
Fixes #3584
2021-05-07 06:26:00 +05:30
Kovid Goyal
baa8152248
Add link to changelog in github release notes
...
Fixes #3588
2021-05-07 06:18:42 +05:30
Kovid Goyal
34fe103c2b
Prefix by GPG signature instead
2021-05-07 06:14:40 +05:30
Kovid Goyal
0d08014bd5
Dont append GPG signature twice to release file descs
2021-05-07 06:13:21 +05:30
Kovid Goyal
dd0130180b
Use the kitty fatal function
2021-05-06 11:19:06 +05:30
Kovid Goyal
accdf9a6a8
DRYer
2021-05-06 08:57:38 +05:30
Kovid Goyal
c891432c9d
version 0.20.3
2021-05-06 08:11:41 +05:30
Kovid Goyal
1a4efd9d81
Remove unused code
2021-05-06 07:46:31 +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
4dcccc553c
...
2021-05-05 14:02:58 +05:30
Kovid Goyal
7e53db8aac
DRYer
2021-05-05 13:58:10 +05:30
Kovid Goyal
4a83584934
Fix #3576
2021-05-05 13:55:46 +05:30
Kovid Goyal
c735d1f6ac
Merge branch 'master' of https://github.com/alexDarcy/kitty
2021-05-05 08:39:44 +05:30
Alexis Praga
7bd0fdf3da
Freebsd: use gmake to build docs
2021-05-04 22:48:23 +02:00
Kovid Goyal
b570dfcd09
Move the inline ToC above quickstart
...
local doesnt work below quickstart and it also serves as a good overview
2021-05-04 11:31:34 +05:30
Kovid Goyal
2bc35539f0
Exclude document titles from local ToCs
2021-05-04 11:19:49 +05:30
Kovid Goyal
80e05319c6
...
2021-05-04 11:08:04 +05:30
Kovid Goyal
49459b3774
Merge branch 'fix-help-menu-spotlight-search' of https://github.com/Luflosi/kitty
2021-05-04 08:20:58 +05:30
Luflosi
0788032003
macOS: fix spotlight search in help menu not working on some machines
...
The spotlight search in the "Help" menu of the menu bar did not appear when the system language is set to a language other than English. macOS magically adds the search box when the text in that menu matches the translation of "Help" in the system language. On my German system for example replacing "Help" with "Hilfe" will make the search box appear again. This is however not a good solution for kitty as it would require implementing localization support for all languages. Removing `CFBundleAllowMixedLocalizations=True` from `setup.py` also brings back the search box but that may break the locale again. The line was added in 8818b5d8df to fix an issue related to https://github.com/kovidgoyal/kitty/issues/1233 .
Luckily I found a seemingly undocumented function that helps us out here, which does not rely the text comparison magic.
2021-05-02 22:21:09 +02:00
Kovid Goyal
d4c7c205cb
Add a changelog entry for universal binaries
2021-05-02 07:35:59 +05:30
Kovid Goyal
96ce33792d
Build kitty as a universal binary
2021-05-01 14:58:06 +05:30
Kovid Goyal
13bf8a20b0
Build universal binaries of all deps on macOS
2021-05-01 14:50:22 +05:30
Kovid Goyal
6b9b478492
Linux: Fix keyboard layout change keys defined via compose rules not being ignored
2021-05-01 08:09:26 +05:30
Kovid Goyal
c4e8bcb876
Merge branch 'add_attribution_logo' of https://github.com/MindTooth/kitty
2021-04-29 13:11:23 +05:30
Kovid Goyal
28b4fe5cb6
A new show_key kitten
...
Fixes #3556
2021-04-29 13:10:20 +05:30
Birger J. Nordølum
58b5e645c6
chore(logo): add missing attribution
...
The Big Sur template includes a CC BY 4.0 license, hence the attribution
with the details of the change.
2021-04-29 09:11:20 +02:00
Kovid Goyal
3e00ee4155
When releasing also upload GPG signatures
...
Fixes #3555
2021-04-29 08:08:35 +05:30
Kovid Goyal
d1169a0f37
Fix #3549
2021-04-28 19:46:56 +05:30
Kovid Goyal
c8c22d3dd2
Merge branch 'update_macos_icon' of https://github.com/MindTooth/kitty
2021-04-28 19:22:37 +05:30
Birger J. Nordølum
689fd03250
fix(logo): make the icon more inline with Big Sur
...
This tries to follow the Human Interface Guidelines
from Apple.
2021-04-28 15:37:13 +02:00
Kovid Goyal
56fe6480ce
Merge branch 'patch-1' of https://github.com/kidonng/kitty
2021-04-28 16:00:49 +05:30
Kid
017d5f2991
Fix tasks shortcut on macOS
2021-04-28 16:59:39 +08:00
Kovid Goyal
ae43b1565e
DRYer
2021-04-28 13:41:48 +05:30
Kovid Goyal
3206e1b12c
...
2021-04-28 13:11:59 +05:30
Kovid Goyal
93d4eca2d4
Fix kitty.conf man page being installed in incorrect location
...
Fixes #3543
2021-04-28 13:11:01 +05:30
Kovid Goyal
57b5e493a4
version 0.20.2
2021-04-28 10:50:34 +05:30
Kovid Goyal
fc184984a0
...
2021-04-27 15:11:34 +05:30
Kovid Goyal
2178ff1c48
DRYer
2021-04-27 15:07:27 +05:30
Kovid Goyal
ae1df38c88
Fallback to mkostemp if O_TMPFILE fails
2021-04-27 12:03:24 +05:30
Kovid Goyal
162e498347
Fix @ set-colors for active_tab_foreground
2021-04-26 20:18:50 +05:30
Kovid Goyal
172023afca
Forgot the double backslash in the docs
2021-04-26 17:31:43 +05:30
Kovid Goyal
18c7ea50b4
Cleanup text
2021-04-26 13:46:03 +05:30
Kovid Goyal
bdddb238f8
Also generate a man page for kitty.conf
2021-04-26 13:35:22 +05:30
Kovid Goyal
8d46237935
Add the most common keyboard shortcuts to the kitty man page
2021-04-26 12:39:25 +05:30
Kovid Goyal
3fcf83e685
Use a framed icon on macOS
...
Fits better with Apple's icon style
2021-04-26 12:07:35 +05:30
Kovid Goyal
d374af4341
Type check supersampled functions
2021-04-26 09:12:38 +05:30
Kovid Goyal
f32ad617a2
Special case rendering of the few remaining Powerline box drawing chars
...
Fixes #3535
2021-04-26 09:07:55 +05:30
Kovid Goyal
62656b24eb
GNOME: Add a new option to control the color of the kitty window titlebar
2021-04-25 11:22:23 +05:30
Kovid Goyal
12763e19d8
Add a build argument to turn off -Werror
...
Fixes #3530
2021-04-24 18:32:57 +05:30
Kovid Goyal
89fd726e07
A new remote control command @env to change the default environment passed to newly created windows
...
Fixes #3529
2021-04-24 18:06:57 +05:30
Kovid Goyal
0b428987b1
...
2021-04-24 18:02:16 +05:30
Kovid Goyal
1e29fad5f0
Typecheck @ls cli opts
2021-04-24 17:51:02 +05:30
Kovid Goyal
19524a4459
Update uthash
2021-04-24 09:47:40 +05:30
Kovid Goyal
7043d565c9
...
2021-04-24 09:44:40 +05:30
Kovid Goyal
d6f856f2f2
Fix https://trac.macports.org/ticket/62732
2021-04-24 07:43:02 +05:30
Kovid Goyal
24f0451c10
Merge branch 'bug3514-fix' of https://github.com/orki/kitty
2021-04-23 21:27:31 +05:30
Ravi R Kiran
3c4460ca98
Give shift, control and caps lock precedence over other modifiers
2021-04-23 10:47:26 -05:00
Kovid Goyal
cbf33fa14b
Fix #3523
2021-04-23 16:23:13 +05:30
Kovid Goyal
d782654819
Forgot to handle case of empty scrollback
2021-04-23 16:07:10 +05:30
Kovid Goyal
3c39cbf333
Add a note about over large scrollback fill
2021-04-23 15:54:21 +05:30
Kovid Goyal
bd746e5151
Add a note about what happens when no scrollback lines are present
2021-04-23 15:48:47 +05:30
Kovid Goyal
b32c346eed
A new protocol extension to unscroll the screen
...
See https://gitlab.freedesktop.org/terminal-wg/specifications/-/issues/30
2021-04-23 15:44:38 +05:30
Kovid Goyal
77b8e204ad
Fix graphics being cleared when switching to alt screen if the switch mode is to not clear the alt screen
2021-04-23 14:51:32 +05:30
Kovid Goyal
93dfe19c35
GNOME: Fix maximize state not being remembered when focus changes and window decorations are hidden
...
Apparently mutter needs window geometry set after the surface commit not
before, otherwise it doesnt "stick". When decorations are not hidden
there were other commits caused by the decorations, masking the issue.
Fixes #3507
2021-04-23 14:04:12 +05:30
Kovid Goyal
6dc8df5178
icat kitten: Respect EXIF orientation when displaying JPEG images
...
Fixes #3518
2021-04-23 07:31:37 +05:30
Kovid Goyal
237fd73702
Fix removal of inactive tab that is before the currently active tab causing the highlighted tab to be incorrect
...
Fixes #3516
2021-04-22 22:28:05 +05:30
Kovid Goyal
5f2d0142d1
Re-organize README a bit
2021-04-22 20:32:34 +05:30
Kovid Goyal
572d576d5b
Merge branch 'fix-compilation-on-old-macos' of https://github.com/Luflosi/kitty
2021-04-22 14:30:38 +05:30
Luflosi
6606f51636
Fix compilation on macOS 10.12
...
The constants `NSControlStateValueOn`, `NSControlStateValueOff` and `NSControlStateValueMixed` are only available for macOS 10.13 or above according to https://developer.apple.com/documentation/appkit/nscontrolstatevalueon?language=objc .
Without this commit, compilation fails with this message:
```
glfw/cocoa_window.m:1537:28: error: use of undeclared identifier 'NSControlStateValueOn'
item.state = NSControlStateValueOn;
^
glfw/cocoa_window.m:1539:28: error: use of undeclared identifier 'NSControlStateValueMixed'
item.state = NSControlStateValueMixed;
^
glfw/cocoa_window.m:1542:47: error: use of undeclared identifier 'NSControlStateValueOn'
item.state = controller.isDesired ? NSControlStateValueOn : NSControlStateValueOff;
^
glfw/cocoa_window.m:1542:71: error: use of undeclared identifier 'NSControlStateValueOff'
item.state = controller.isDesired ? NSControlStateValueOn : NSControlStateValueOff;
^
```
To fix this, simply redefine the constants to use the old and now deprecated constants on older macOS versions.
The code that causes this was introduced in 98519bf326 .
2021-04-22 10:53:34 +02:00
Kovid Goyal
36da65120a
It's only alt and alt+shift that dont work in global menubar
...
alt in combination with ctrl/cmd works fine.
2021-04-22 10:50:43 +05:30
Kovid Goyal
b6c1e1a609
...
2021-04-22 10:24:57 +05:30
Kovid Goyal
5d003ec772
Fix @close-tab not working with pipe based remote control
...
Fixes #3510
2021-04-22 10:23:04 +05:30
Kovid Goyal
b9210a2ba4
macOS: Prevent option based shortcuts for being used for global menu actions
...
Fixes #3515
2021-04-22 10:15:10 +05:30
Kovid Goyal
f3c559ea13
Cleanup secure keyboard entry logging
2021-04-22 09:41:01 +05:30
Kovid Goyal
6cee6b6429
More accurate ignoring message
2021-04-22 09:31:41 +05:30
Kovid Goyal
84f6aabf5b
Clean up debug keyboard on macOS
2021-04-22 09:28:11 +05:30
Kovid Goyal
9ce947d6ea
Ignore failure to read the readline init file on Linux as well
...
There are apparently people that like to break things randomly on their
systems by removing needed files. Fixes #3513
2021-04-22 08:13:57 +05:30
Kovid Goyal
0f23ad0d7e
Merge branch 'u_int8_t' of https://github.com/sgn/kitty
2021-04-21 18:45:18 +05:30
Đoàn Trần Công Danh
1b760b6c53
freetype_render_ui_text: use uint8_t instead of u_int8_t
...
uint8_t is a standard type, while u_int8_t isn't. And we're assigning to
an uint8_t anyway.
2021-04-21 19:23:43 +07:00
Kovid Goyal
cdf64bf016
Linux: Fix binary kitty builds not able to load fonts in WOFF2 format
...
Fixes #3506
2021-04-20 17:07:47 +05:30
Kovid Goyal
f3726023c2
version 0.20.1
2021-04-19 21:45:08 +05:30
Kovid Goyal
cb41683f47
...
2021-04-19 20:12:20 +05:30
Kovid Goyal
629a8ad055
Fix #3501
2021-04-19 19:58:02 +05:30
Kovid Goyal
4ba0fa00b4
Update changelog
2021-04-19 18:07:03 +05:30
Kovid Goyal
f1e73c015a
Merge branch 'hyperlink_unbound_variable' of https://github.com/miseran/kitty
2021-04-19 18:03:18 +05:30
Reto Schnyder
926c3540ff
Fix unbound variable in hyperlink handling
2021-04-19 14:19:13 +02:00
Kovid Goyal
1aebd83e45
A little clearer code
2021-04-19 17:42:15 +05:30
Kovid Goyal
8225351145
icat: When displaying an animated GIF image with no delays between frames, add a 100ms delay between every frame.
...
This allows some broken images tested with broken software *cough* browsers to work.
See #3498
2021-04-19 17:17:45 +05:30
Kovid Goyal
379add8d6f
IntEnum was needed
2021-04-19 17:09:23 +05:30
Kovid Goyal
ea11ce8664
Use a normal enum for Dispose rather than an IntEnum
2021-04-19 16:57:43 +05:30
Kovid Goyal
82e9e96f0c
Fix CodeQL warnings
2021-04-19 14:00:53 +05:30
Kovid Goyal
8c4e426534
Silence some unused parameter warnings
2021-04-19 13:53:27 +05:30
Kovid Goyal
636771e566
Fix test crashing on 32bit machines
2021-04-19 13:48:39 +05:30
Kovid Goyal
363b20bdd2
Add debug symbols when not stripping
2021-04-19 13:29:50 +05:30
Kovid Goyal
b16317e2ca
Silence spurious compiler warning
2021-04-19 13:27:17 +05:30
Kovid Goyal
2c5c869228
Print command used to run tests
2021-04-19 13:14:25 +05:30
Kovid Goyal
3f5f218e0b
Use correct printf codes
2021-04-19 13:00:48 +05:30
Kovid Goyal
c9cc425aad
version 0.20.0
...
Fixes #3248
Fixes #3287
2021-04-19 10:14:00 +05:30
Kovid Goyal
9a2b0b6995
Wayland CSD: Double clicking on titlebar should toggle window maximize
2021-04-19 08:58:29 +05:30
Kovid Goyal
50f8aeeaf6
Dont output an error when none is used as a modifier
2021-04-18 18:11:56 +05:30
Kovid Goyal
fe291dd769
...
2021-04-18 10:46:06 +05:30
Kovid Goyal
58850a0e14
Switch to ALE instead of syntastic
2021-04-17 16:53:48 +05:30
Kovid Goyal
518057489c
Also output layout state in kitty @ ls
2021-04-17 12:11:56 +05:30
Kovid Goyal
cf0b2389a3
Also report window sizes in kitty @ ls
2021-04-17 11:49:57 +05:30
Kovid Goyal
6179cfc670
Abort parsing of APC and PM escape codes on 0x00 and 0x7f
...
Correct as per ECMA-48 section 8.3 and matches parsing of other escape
codes
2021-04-15 12:57:58 +05:30
Kovid Goyal
e6ccc2d178
Fix #3485
2021-04-15 08:57:47 +05:30
Kovid Goyal
db719eafac
Remove num/caps locks from modifier processing in mouse events
2021-04-14 10:08:33 +05:30
Kovid Goyal
a4db27a807
Ignore the lock modifiers in legacy mode
2021-04-13 21:35:18 +05:30
Kovid Goyal
111c123435
X11: Fix resize_in_steps being applied even when window is maximized
...
Fixes #3473
2021-04-13 12:48:23 +05:30
Kovid Goyal
75d067e411
Merge branch 'fix-timg-link' of https://github.com/hzeller/kitty
2021-04-13 11:09:31 +05:30
Henner Zeller
fbeb991f7d
Fix timg link (underscore was missing).
...
Signed-off-by: Henner Zeller <h.zeller@acm.org >
2021-04-12 22:27:32 -07:00
Kovid Goyal
ea2db51bbb
Output all modifier indices in debug
2021-04-13 10:21:26 +05:30
Kovid Goyal
15f4c476c3
Ignore locked mods for legacy encoding in a few more places
2021-04-13 10:01:16 +05:30
Kovid Goyal
a7c5b8c634
Fix #3471
2021-04-13 09:53:57 +05:30
Kovid Goyal
1aeafcaebf
Remove unused code
2021-04-13 09:02:30 +05:30
Kovid Goyal
8d743e9511
Fix is_self
2021-04-13 08:54:45 +05:30
Kovid Goyal
958d4d8a6a
kitty @ ls: Show only environment variables that are different for each window, by default.
...
Makes the output much less noisy, and env vars that are common across
all windows are useless for selection/identification purposes.
2021-04-13 08:44:11 +05:30
Kovid Goyal
05fb09f56c
Fix #3470
2021-04-13 08:23:15 +05:30
Kovid Goyal
cdcf8ed3bd
Add some colors to keyboad debug output
2021-04-13 07:41:47 +05:30
Kovid Goyal
572466eed1
XKB: Honor numlock state when reporting keypad keys
2021-04-13 07:35:13 +05:30
Kovid Goyal
4c644b8556
Add NumLock and CapsLock reporting to the keyboard protocol
2021-04-13 07:10:00 +05:30
Kovid Goyal
c989a7198b
Add support for the keypad Begin key
...
Fixes #3468
2021-04-11 07:58:27 +05:30
Kovid Goyal
084b028eac
Merge branch 'macos-secure-keyboard-entry' of https://github.com/multi/kitty
...
This is the usual Apple security theatre. Prevent key loggers from
reading key events from the OS, but those same key events are written to
the unsecured tty device from where the keylogger could read them
anyway.
But, since I dont want to have to explain why this is simply security
theatre to every rando on the internet, merging anyway. It only costs
one line in the application menu and maybe it will make some people that
click on it *feel* more secure.
2021-04-10 14:41:54 +05:30
Kovid Goyal
699d88e393
...
2021-04-10 14:36:31 +05:30
Kovid Goyal
8c6566580a
...
2021-04-10 14:32:13 +05:30
Kovid Goyal
effe30ad3f
Add a FAQ entry about memory leaks
2021-04-10 14:23:28 +05:30
Kovid Goyal
e91b8d4556
...
2021-04-10 14:08:03 +05:30
Kovid Goyal
76fca0641e
Fix memory leak in utf_8_strndup test
2021-04-10 13:39:04 +05:30
Kovid Goyal
7ec803222f
Fix a mem leak of the disk cache directory path
2021-04-10 13:21:58 +05:30
Kovid Goyal
03f0f065ee
Use a single alloc per history buf segment
2021-04-10 13:18:27 +05:30
Kovid Goyal
63e5be6ff0
Dont use the python memory pool for the history buffer
...
It's not optimized for this use case
2021-04-10 12:11:05 +05:30
Kovid Goyal
4ccd2afd78
Free ChildMonitor at end of dealloc
2021-04-10 11:49:39 +05:30
Georgi Yonchev
98519bf326
[macos] - Add "Secure Keyboard Entry" menu item
2021-04-09 16:39:51 +03:00
Kovid Goyal
82d11b80dd
Add a test for filling from scrollback with large continued line
2021-04-09 17:04:55 +05:30
Kovid Goyal
cf3662442f
Fix #3460
2021-04-09 16:56:53 +05:30
Kovid Goyal
0be5347e6a
Better error message when screen_resize() fails
2021-04-09 10:09:17 +05:30
Kovid Goyal
1b39c42e92
...
2021-04-08 12:36:44 +05:30
Kovid Goyal
5b4f5a1e2a
Add a link to the nb note taking application
2021-04-08 12:06:02 +05:30
Kovid Goyal
4eb8b1db01
Merge branch 'bug3446-fix' of https://github.com/orki/kitty
2021-04-08 08:37:55 +05:30
Ravi R Kiran
b5555b9a8d
Handle multiple real modifiers mapping to the same virtual modifier
2021-04-07 21:36:11 -05:00
Kovid Goyal
67bb426eb2
Fix recent Wayland chagelog entries in the incorrect section
2021-04-08 07:59:34 +05:30
Kovid Goyal
cf3a088a53
Allow running under Wayland on GNOME by default
2021-04-08 07:52:28 +05:30
Kovid Goyal
a79d024c09
Accept window_id as an alias for id when matching
2021-04-08 07:19:45 +05:30
Kovid Goyal
253de1eeca
Move the CSD metrics initialization into the CSD module
2021-04-07 22:28:04 +05:30
Kovid Goyal
4e6d5d3f1e
Fix GNOME breaking when setting window geometry
...
The current version of GNOME has a regression that causes the compositor
to send incorrect geometry with the next configure event if the CSD
buffers are created after a call to set_window_geometry.
So call set_window_geometry last. And shake head sadly.
2021-04-07 22:14:09 +05:30
Kovid Goyal
82a5733ec5
_glfwPLatformSetWindowSize() should not be called when handling configure events as it does a bunch of work already done before
2021-04-07 19:55:15 +05:30
Kovid Goyal
4822fa989e
Wayland: wire up live resize notification
2021-04-07 18:29:28 +05:30
Kovid Goyal
fe0e1adb2a
DRYer
2021-04-07 15:26:30 +05:30
Kovid Goyal
850a8218db
Allow toggling xdg configure debug output at runtime
2021-04-07 15:24:58 +05:30
Kovid Goyal
bf3fc5fb92
Also implement programmatic window resizing
2021-04-07 15:13:22 +05:30
Kovid Goyal
a19d1fc140
Restore size after all types of docking not just maximize/unmaximize
...
We make use of the fact that wayland tells us when the window is being
resized to track actual user requested sizes as opposed to compositor
requested ones.
2021-04-07 15:08:44 +05:30
Kovid Goyal
593eb1d952
Focus state needs to be updated always
2021-04-07 14:28:11 +05:30
Kovid Goyal
75ec801941
Get the window geometry with CSD fully correct (I think)
...
The co-ordinates are in the surface co-ordinate system. When the
compositor specifies sizes it apparently adds one subsurface size
in both x and y directions, not both. Possibly because the origin is
placed after the top and left subsurfaces. So modify it by adding
and extra subsurface size to that.
2021-04-07 14:21:43 +05:30
Kovid Goyal
5a1bd93518
Handle all known xdg top level states
2021-04-07 13:33:06 +05:30
Kovid Goyal
f849f383cb
Use the proper number for wayland CSD vertical shadow geometry
...
Apparently set_wayland_geometry uses buffer co-ordinates not surface
co-ords so the numbers need to be multiplied by the scale
2021-04-06 22:19:17 +05:30
Kovid Goyal
ac3080f0e2
Fix #3446 (I hope)
2021-04-06 21:51:03 +05:30
Kovid Goyal
0935dd053c
Modifier indices are unsigned
2021-04-06 21:45:02 +05:30
Kovid Goyal
7e78f30739
Wayland: Fix un-maximizing a window not restoring its size to what it was before being maximized
2021-04-05 13:47:50 +05:30
Kovid Goyal
d0f34e99a6
Fix fringing in shadow due to using integer operations
2021-04-05 11:09:34 +05:30
Kovid Goyal
c781825b00
Make setting sigma independent of kernel size
2021-04-05 10:55:30 +05:30
Kovid Goyal
7199c62b76
...
2021-04-05 10:13:33 +05:30
Kovid Goyal
2074a0d958
Forgot that the top margin is scaled
2021-04-05 09:57:44 +05:30
Kovid Goyal
3e2b626107
Inform compositor of visible window geometry
...
The numbers dont make logical sense, but they do what is expected on
GNOME and since only GNOME is stupid enough to insist on CSD, that's
all we care about.
2021-04-05 09:10:47 +05:30
Kovid Goyal
abf515ece9
Mention that w3m now supports the kitty graphics protocol
2021-04-05 08:15:34 +05:30
Kovid Goyal
07de9c021d
Decrease shadow intensity when un-focused
2021-04-04 23:04:12 +05:30
Kovid Goyal
ff420b6495
Render top CSD shadow
2021-04-04 22:49:07 +05:30
Kovid Goyal
78908e5b93
Finish rendering of side shadows for CSD
2021-04-04 20:16:13 +05:30
Kovid Goyal
bd6643a523
Use a tile to reduce startup CPU cost of shadows
2021-04-04 18:16:33 +05:30
Kovid Goyal
71fddeb1f5
Start work on shadow based CSD
2021-04-04 17:13:50 +05:30
Kovid Goyal
9f708be8fd
Fix name of wttr -> wttr.in
2021-04-04 17:13:17 +05:30
Kovid Goyal
a13f815591
Fix index_selection() not updating empty selections
...
Newly created selections are empty but must still be indexed.
Fixes #3431
2021-04-03 10:48:43 +05:30
Kovid Goyal
b5ac06e652
Fix #3422
2021-04-03 06:48:10 +05:30
Kovid Goyal
e56d259b8e
Also free() when loading fails
2021-04-03 06:41:11 +05:30
Kovid Goyal
11d13c406a
Fix a memory leak when setting default window icon or background image
2021-04-03 06:37:57 +05:30
Kovid Goyal
d5448e6902
Add documentation and cleanup previous PR
2021-04-03 06:25:47 +05:30
Kovid Goyal
777b9eb68e
Merge branch 'hyper' of https://github.com/orki/kitty
2021-04-03 06:15:55 +05:30
Kovid Goyal
ff1585acfe
Unicode input: Make diamond a synonym for gem
...
Fixes #3437
2021-04-02 12:53:58 +05:30
Kovid Goyal
cb515157b3
Fix the selection getting changed if the screen contents scroll while the selection is in progress
...
When the selection object was refactored to track the input
co-ordinates, index_selection() was not updated accordingly.
Fixes #3431
2021-04-01 23:17:13 +05:30
Kovid Goyal
da39fb2880
Add a note about when the splits layout was added to kitty
...
Bloody Ubuntu/Debian and their absurd release policies.
2021-04-01 23:04:13 +05:30
Kovid Goyal
eb3a2126ee
Changelog entry for CSD work
...
Bloody two days of my life I will never get back thanks to those
*&^(*&%*%*& at GNOME.
2021-04-01 22:57:19 +05:30
Kovid Goyal
9c1c399716
...
2021-04-01 22:52:13 +05:30
Kovid Goyal
e209c3329b
Allow specifying a right_margin that is not rendered for the CSD title
...
Can void double rendering if I ever decide to add button to the titlebar
2021-04-01 22:50:54 +05:30
Kovid Goyal
802147e255
More robust ellipsis width calculation
2021-04-01 22:18:13 +05:30
Kovid Goyal
1a7291276c
Add a cat face emoji at the start of the CSD title
2021-04-01 22:07:37 +05:30
Kovid Goyal
6d6273af48
Properly scale emoji rendered in the CSD
2021-04-01 22:07:00 +05:30
Kovid Goyal
b7d967b6bc
Dont offset title from left edge
2021-04-01 18:19:59 +05:30
Kovid Goyal
779a06fa72
DRYer
2021-04-01 13:54:20 +05:30
Kovid Goyal
0656a5079a
CSD titles: Render ellipsis when too long
2021-04-01 13:48:58 +05:30
Kovid Goyal
a1669267b3
Fix hiding on window decorations not working with new CSD code
2021-04-01 12:32:48 +05:30
Kovid Goyal
bbb40f2a21
Use a little less contrast for CSD title
2021-04-01 12:20:53 +05:30
Kovid Goyal
c5b3e43b6c
Use bold for CSD titles
2021-04-01 12:18:48 +05:30
Kovid Goyal
55dc354e68
Improve at exit cleanup functions
...
Now they are run in a defined order not based on
the order of initialization
2021-04-01 11:48:36 +05:30
Kovid Goyal
0ec7e6c36f
Make the freetype text rendering code re-useable in multiple contexts
2021-04-01 11:28:23 +05:30
Kovid Goyal
b1da76eefa
Set CSD color based on focus state
2021-04-01 10:54:22 +05:30
Kovid Goyal
5c6e55d37f
Vertically center CSD title
2021-04-01 10:34:22 +05:30
Kovid Goyal
5d496216e0
Implement rendering of titles in CSD
2021-04-01 10:23:04 +05:30
Kovid Goyal
e92ed67021
Add a callback glfw can use to request text rendering
2021-04-01 08:22:06 +05:30
Ravi R Kiran
b074533b29
Fix regression
2021-03-31 08:54:10 -05:00
Kovid Goyal
f3665ddfab
Cleanup some used memory
2021-03-31 15:29:28 +05:30
Kovid Goyal
dd2b6119b3
Implement rendering of emoji for CSD
2021-03-31 15:23:05 +05:30
Kovid Goyal
ada3f9e547
Add a wcswidth() implementation useable from C code
2021-03-31 15:19:39 +05:30
Kovid Goyal
0372242d12
Use an enum for UTF8 decoder state
2021-03-31 15:19:27 +05:30
Kovid Goyal
9838a336d5
Make wcwidth-std.h more generally includeable
2021-03-31 15:18:19 +05:30
Kovid Goyal
debd9fe419
Dont render glyphs that would overflow the canvas
2021-03-31 11:06:37 +05:30
Kovid Goyal
73a06b0e9e
Text rendering for CSD now works
2021-03-31 11:02:35 +05:30
Ravi R Kiran
fdfba4ea04
Fix pyflakes failures
2021-03-30 14:57:41 -05:00
Ravi R Kiran
953253de99
Implementation of hyper and meta
2021-03-30 14:23:17 -05:00
Kovid Goyal
da0009a46b
More work on CSD title rendering
2021-03-30 22:12:54 +05:30
Kovid Goyal
d7e1e53450
More work on text rendering for CSD
2021-03-30 08:25:01 +05:30
Kovid Goyal
4a3c57054f
Function to get fallback font for a char
2021-03-29 15:35:38 +05:30
Kovid Goyal
41b9495588
More work on text rendering
2021-03-29 14:56:49 +05:30
Kovid Goyal
cdbc096990
Start work on rendering text for CSDs
2021-03-29 12:15:47 +05:30
Kovid Goyal
53f2df115e
Hook up re-render of title bar when title changes
2021-03-29 12:15:47 +05:30
Kovid Goyal
0593158a86
Refactor CSD code to avoid un-needed rerenders and use a single shm pool for all CSD buffers
2021-03-29 12:15:47 +05:30
Kovid Goyal
c1f8372efc
Hide edges when not focused
2021-03-29 12:15:47 +05:30
Kovid Goyal
6e3db0be3d
Rename variable
2021-03-29 12:15:47 +05:30
Kovid Goyal
0f084faca5
Forgot to scale the title buffer
2021-03-29 12:15:47 +05:30
Kovid Goyal
c6829766bb
Properly scale the decorations buffers
2021-03-29 12:15:47 +05:30
Kovid Goyal
e7931b0121
Get rid of the no longer needed viewporter protocol
2021-03-29 12:15:47 +05:30
Kovid Goyal
aeb82e7fb0
Refactor the rendering of CSD on Wayland
2021-03-29 12:15:47 +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
4edbe0ea4f
Remove unnecessary opacity marking for decoration buffers
2021-03-25 16:28:49 +05:30
Kovid Goyal
0788b98ae4
Fix header comment
2021-03-25 16:05:14 +05:30
Kovid Goyal
8a267894f3
Make createShmBuffer re-useable
2021-03-25 16:04:12 +05:30
Kovid Goyal
0510cd47f4
Rename buffer -> edge_buffer
2021-03-25 15:19:11 +05:30
Kovid Goyal
5dbbed3dcc
Ignore text input done if serial is incorrect
2021-03-25 15:05:48 +05:30
Kovid Goyal
7b130dc220
Double buffer pre-edit and commit events
2021-03-25 14:59:58 +05:30
Kovid Goyal
d28caf15b2
More glyph grouping fixes
2021-03-25 14:06:16 +05:30
Kovid Goyal
44df11c443
Move CSD metrics into the window object
...
Makes them potentially configurable
2021-03-25 12:52:09 +05:30
Kovid Goyal
63a50ec066
Use the correct mouse cursor theme on GNOME
...
Relies on a working desktop settings portal (xdg-desktop-portal-gtk)
2021-03-25 12:20:13 +05:30
Kovid Goyal
3d0cff1f47
Merge branch 'fix-rectircle-subpixel-rendering' of https://github.com/jesseleite/kitty
2021-03-25 09:55:05 +05:30
Jesse Leite
97a8b718dd
Merge branch 'master' of https://github.com/kovidgoyal/kitty into fix-rectircle-subpixel-rendering
2021-03-25 00:17:47 -04:00
Kovid Goyal
fc8e147e4a
Fix mouse handling when using client side decorations
...
The mouse co-ordinates used by glfw were all wrong.
2021-03-25 09:27:25 +05:30
Jesse Leite
af4083a8b7
Prevent subpixel rendering via floor/ceil on left/right side of box drawn corners.
2021-03-24 23:56:53 -04:00
Kovid Goyal
7c7933efa9
Fix #3416
2021-03-24 13:17:38 +05:30
Kovid Goyal
317ecbc9fa
Wayland: Add support for the text input protocol
...
Fixes #3410
2021-03-24 11:24:37 +05:30
Kovid Goyal
67445a22d3
...
2021-03-23 16:33:05 +05:30
Kovid Goyal
62997956a0
Start work on Wayland text input protocol support
2021-03-23 16:33:04 +05:30
Kovid Goyal
df7790fdfe
...
2021-03-23 16:31:25 +05:30
Kovid Goyal
34d06fa3e9
Use a struct for IME update events
...
Allows for easier extension in the future
2021-03-23 16:05:22 +05:30
Kovid Goyal
a981b46ec9
Use an enum for updateimestate as well
2021-03-23 10:52:11 +05:30
Kovid Goyal
84dcf8fd27
Use an enum for ime_state
2021-03-23 10:42:07 +05:30
Kovid Goyal
11268ffa16
Fix marking of text not working on lines that contain zero cells
...
Zero cells are passed to the regex engine as spaces, so they must
increment the match_pos counter. Fixes #3403
2021-03-23 10:04:58 +05:30
Kovid Goyal
c0ec60c113
Forgot to change a couple of usages of line_as_unicode
2021-03-23 09:56:58 +05:30
Kovid Goyal
ca7587c084
Allow skipping zero cells when converting a line to unicode
2021-03-23 09:53:22 +05:30
Kovid Goyal
33ecfc6f84
...
2021-03-22 22:33:30 +05:30
Kovid Goyal
83bbcf0aa1
Graphics protocol: Add a control to allow clients to specify that the cursor should not move when displaying an image
...
Fixes #3411
2021-03-22 22:16:40 +05:30
Kovid Goyal
ba32e481ca
...
2021-03-22 10:46:41 +05:30
Kovid Goyal
af9da2e495
Make pt_to_px useable in state.c
2021-03-21 07:29:48 +05:30
Kovid Goyal
77f7672e98
...
2021-03-20 13:19:11 +05:30
Kovid Goyal
9dd8185f37
rectciricle -> rectircle
2021-03-20 13:17:17 +05:30
Kovid Goyal
12f61fd24f
super sample factor is included in height
2021-03-20 13:11:26 +05:30
Kovid Goyal
c9864c994f
Improve rendering of rounded corners by using a rectcircle equation rather than a cubic bezier
...
Fixes #3409
2021-03-20 12:59:20 +05:30
Kovid Goyal
9e476127d3
macOS: Add native keyboard shortcut for unicode input
...
Fixes #3407
2021-03-19 14:44:38 +05:30
Kovid Goyal
fae99a24bf
Merge branch 'installation-doc-bug' of https://github.com/Dsantra92/kitty
2021-03-18 18:17:14 +05:30
Deeptendu Santra
8d9ab15c40
Fix installation docs
...
Added `/` at the applications, otherwise applications may be considered a file if the directory is not present. The addition of `/` also ensures user knows that he/she needs to create new directory if it is not present.
2021-03-18 17:55:53 +05:30
Kovid Goyal
ccafdacc6f
Ensure cursor position is correct when filling line buffer
2021-03-18 10:39:08 +05:30
Kovid Goyal
4a996c1f76
Use the final cursor position when calculating number of continued lines in resized buffer
2021-03-17 22:29:59 +05:30
Kovid Goyal
d743aff4bc
Make the code to copy lines into linebufs general
2021-03-17 22:02:47 +05:30
Kovid Goyal
0f3ff4e2d9
Scrollback filling should happen after cursor position is finalized
2021-03-17 21:59:11 +05:30
Kovid Goyal
a4d9d948ab
...
2021-03-17 14:45:23 +05:30
Kovid Goyal
32e6c0c6a6
Add a security policy
2021-03-17 14:38:57 +05:30
Kovid Goyal
ba2efaacd8
Fix regression in launching executables as command line arguments without full paths
2021-03-17 14:32:43 +05:30
Kovid Goyal
37e3e29c8c
Fix a crash on systems using musl as libc
...
Fixes #3395
2021-03-17 14:13:50 +05:30
Kovid Goyal
90722ecbe7
historybuf should be used only when current screen is the main linebuf
2021-03-17 13:51:30 +05:30
Kovid Goyal
5a2eaa24d0
Add changelog entry for last PR
2021-03-17 13:49:24 +05:30
Kovid Goyal
071986138b
Cleanup previous merge
2021-03-17 13:43:26 +05:30
Kovid Goyal
d61c4a9569
Merge branch 'scrollback-fill-enlarged-window' of https://github.com/elebow/kitty
2021-03-17 12:22:12 +05:30
Eddie Lebow
9fff829ab4
Implement scrollback_fill_enlarged_window
2021-03-17 02:27:59 -04:00
Eddie Lebow
4682da83c1
Add linebuf_continued_lines_count()
2021-03-17 02:27:58 -04:00
Eddie Lebow
c93c87e8fe
Add linebuf_add_line_to_top()
2021-03-17 00:09:03 -04:00
Kovid Goyal
f3e2a42c29
Fix #3400
2021-03-16 20:59:54 +05:30
Kovid Goyal
b063c8cda1
Fix inactive tab closing causing active tab to change
...
Fixes #3398
2021-03-16 18:06:01 +05:30
Kovid Goyal
d360d077d1
Handle the XTMODKEYS escape code
...
Treat the XTerm specific modifyOtherKeys escape codes as putting the
disambiguate mode on/off the stack. The escape code causes XTerm to use
a (broken, naturally) variant of CSI u encoding for many keys, so we
treat it as going into the disambiguate mode.
2021-03-16 17:46:11 +05:30
Kovid Goyal
a548c31d50
Add links to rasterm and notcurses in the graphics protocol docs
2021-03-16 17:11:01 +05:30
Eddie Lebow
6c44b4f451
Add historybuf_pop_line()
2021-03-15 23:59:26 -04:00
Eddie Lebow
b76491ba82
Add tests for scrollback_fill_enlarged_window
2021-03-15 23:58:11 -04:00
Eddie Lebow
e10919496f
Add scrollback_fill_enlarged_window config option
2021-03-15 23:57:43 -04:00
Kovid Goyal
543b7dcf94
Increase the default set of recognized URL prefixes
2021-03-15 12:17:15 +05:30
Kovid Goyal
271c39cc9d
Fix reading image index not working on older ImageMagick
...
Fixes #3384
2021-03-12 12:00:44 +05:30
Kovid Goyal
18186da90e
Better error message for people running icat on systems with outdated/broken ImageMagick
2021-03-12 11:28:57 +05:30
Kovid Goyal
02d29d4816
Better error message when ImageMagick does not write correct output filenames
2021-03-12 11:07:42 +05:30
Kovid Goyal
82934b84d6
...
2021-03-12 08:25:19 +05:30
Kovid Goyal
6177a7d71f
Fix duplicated line in graphics protocol delete table
...
Fixes #3383
2021-03-12 08:06:13 +05:30
Kovid Goyal
1f4fdb174a
Fix rendering of the new infinite length ligatures on CoreText
...
Apparently on CoreText, harfbuzz gives incorrect values for glyph
positions. So we use it only for selection and grouping of glyphs.
Actual positioning is done using CoreText. This means sophisticated
positioning using GPOS tables is probably broken, but that isn't really
useable in a character grid anyway.
Also remove the hack where glyph_centering was done for calt ligatures
as it seems to not be needed with modern FiraCode and CoreText
rendering. Fixes #3372
2021-03-11 20:11:40 +05:30
Kovid Goyal
a94b94cab0
Fix macos-freeze building everything twice
2021-03-11 13:03:45 +05:30
Kovid Goyal
399c700939
Prevent Cocoa from sending us open file events from command line args
...
We process command line args ourselves, thank you very much.
2021-03-11 10:59:03 +05:30
Kovid Goyal
077097c112
Also implement openFiles
2021-03-10 21:55:00 +05:30
Kovid Goyal
f70c9842f5
macOS: Allow opening script and command
...
Fixes #3366
2021-03-10 21:33:29 +05:30
Kovid Goyal
0f020d5b37
When passing a directory or a non-executable file as the program to run to kitty open it with the shell, instead of just failing.
...
Allows using kitty as the program to open directories or shell scripts
from desktop environments.
2021-03-10 14:27:07 +05:30
Kovid Goyal
2eccc81fee
Show a message about how to exit --hold
2021-03-10 14:26:11 +05:30
Kovid Goyal
9fdaef1da6
Graphics protocol: Fix suppression of responses not working for chunked transmission
...
Now the starting escape codes q value is used unless the last escape
code specifies a non-zero q value of its own. Fixes #3375
2021-03-10 09:58:49 +05:30
Kovid Goyal
eb42edff09
Use builtin rfc linking
2021-03-10 08:30:13 +05:30
Kovid Goyal
07f27d0f54
Add a link to RFC 1950
2021-03-10 08:22:59 +05:30
Kovid Goyal
48d2aa14c8
Install libx11-xcb-dev on CI
...
Looks like it is no longer pre-installed
2021-03-10 08:20:35 +05:30
Kovid Goyal
3c1c8ecd20
Merge branch 'dankamongmen/deflate-docs' of https://github.com/dankamongmen/kitty
2021-03-10 08:07:32 +05:30
nick black
dcb8fcece4
Add some notes to graphics protocol docs
...
Clarify that RFC1950-style zlib-wrapped deflate (as opposed
to RFC1951-style raw deflate) payloads are sent in the
graphics protocol, and that base64 encoding follows
compression (implied by remarks elsewhere, but go ahead and
make it explicit here).
2021-03-09 18:25:18 -05:00
Kovid Goyal
958ccadc09
Also detect gemini:// URLs when hovering with the mouse
...
Fixes #3370
2021-03-06 11:12:45 +05:30
Kovid Goyal
c48a42bec5
Merge branch 'add-timg-to-graphics-docs' of https://github.com/hzeller/kitty
2021-03-06 10:48:54 +05:30
Henner Zeller
50858322d6
Add timg ( http://timg.sh/ ) to graphics protocol users program list.
...
Signed-off-by: Henner Zeller <h.zeller@acm.org >
2021-03-05 20:45:32 -08:00
Kovid Goyal
62912a800a
Ban a bunch of unsafe C functions from the codebase
...
List is taken from the git codebase
2021-03-05 08:26:05 +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
90c6c2a366
...
2021-03-03 15:11:05 +05:30
Kovid Goyal
fbe84698c4
Add a FAQ entry about env vars
2021-03-03 15:06:30 +05:30
Kovid Goyal
2c642406d8
Dont exclude glfw.c from LoC as it no longer is largely auto-generated
2021-03-01 10:59:57 +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
3ee7e5f800
Fix another use after free caused by a re-assigned pointer
2021-02-28 12:30:12 +05:30
Kovid Goyal
945cbca387
hints kitten: When using the linenumber action with a background action, preserve the working directory
...
Fixes #3352
2021-02-27 09:14:12 +05:30
Kovid Goyal
30c7ff341f
DRYer
2021-02-27 09:10:16 +05:30
Kovid Goyal
12d7c7314a
Only warn about Wayland's inadequacy once
2021-02-26 19:21:48 +05:30
Kovid Goyal
ce3cd691cc
macOS: Add global menu action to detach current tab
2021-02-25 12:27:10 +05:30
Kovid Goyal
81f144df15
macOS: Add entries to global menu bar for creating and changing tabs
2021-02-25 11:54:53 +05:30
Kovid Goyal
78854d4a10
macOS: Disable cocoa tabs
...
kitty has its own tabs, and macOS inserts confusing menu entries for its
non-functional tabs into the global menu. So disable tabs. Fixes #3325
2021-02-25 11:26:55 +05:30
Kovid Goyal
dc3ad80d24
Window may not be in current os window if triggerred shortcut is detach_window
2021-02-25 07:20:07 +05:30
Kovid Goyal
ed1188dc61
Forgot modifier mask
2021-02-25 07:12:00 +05:30
Kovid Goyal
52347ced85
macOS: Make the global keybinding used for preferences also configurable
2021-02-25 06:58:20 +05:30
Kovid Goyal
5fd6c6b9a1
typos in docs
2021-02-24 14:17:28 +05:30
Kovid Goyal
9e7031f5d8
Dont call window_for_id() unnecessarily
2021-02-24 13:38:38 +05:30
Kovid Goyal
cca590c20a
Fix a use-after-free introduced in the recent key handling refactor
2021-02-24 13:32:27 +05:30
Kovid Goyal
863fff8620
Cleanup previous PR
2021-02-24 12:32:26 +05:30
Kovid Goyal
18f42fe4c1
Merge branch 'tab_powerline' of https://github.com/slfotg/kitty
2021-02-24 12:23:11 +05:30
Sam Foster
2a3cc71641
Made powerline tab_bar_style have different display options
2021-02-24 00:14:00 -06:00
Kovid Goyal
bd67814485
Fix building with asan on macOS
2021-02-23 17:06:00 +05:30
Kovid Goyal
40dbf7f1c8
Use log_error instead of print
2021-02-22 08:33:26 +05:30
Kovid Goyal
42a7023203
Fix #3332
2021-02-21 13:18:48 +05:30
Kovid Goyal
14b33a845e
Avoid compiler warning about using main as a variable name
2021-02-21 11:20:10 +05:30
Kovid Goyal
56fcbb95ab
Key encoding: in legacy mode use legacy encoding for a few more combinations
...
Some legacy terminal applications get confused seeing CSI u escape
codes. Since it is relatively common to press ctrl or shift and
space/enter/tab/backspace, emit the same bytes as traditional terminals
do for these common keys.
2021-02-21 11:14:25 +05:30
Kovid Goyal
de100ac67c
DRYer
2021-02-20 11:39:31 +05:30
Kovid Goyal
2a96d2621c
Use cleanup in a few more places to simplify the code
2021-02-19 18:53:30 +05:30
Kovid Goyal
a097f5df23
Use the gcc cleanup attribute in launcher
2021-02-19 18:34:12 +05:30
Kovid Goyal
6a901ea048
Forgot that wayland is not built on CI
2021-02-19 18:09:12 +05:30
Kovid Goyal
dbc1ade5a9
Fallback to importlib_resources on python 3.6
2021-02-19 18:02:15 +05:30
Kovid Goyal
c2a924a5ea
Run all tests on the full frozen build using the frozen launcher
...
Much more comprehensive test coverage at the cost of slightly increasing
the frozen build size.
2021-02-19 17:57:59 +05:30
Kovid Goyal
e06d40cb31
Fix test suite getting type checked accidentally
2021-02-19 15:19:04 +05:30
Kovid Goyal
45d89cfe55
Install importlib.resources on python 3.6
2021-02-19 15:08:47 +05:30
Kovid Goyal
d45a8309cb
Dont use VLAs in launcher.c
2021-02-19 15:04:49 +05:30
Kovid Goyal
9cd8637e9c
Remove another use of __file__
2021-02-19 14:49:07 +05:30
Kovid Goyal
38992e25d7
Make the tests into a package
...
Useful to make the tests runnable in a frozen build.
2021-02-19 14:35:25 +05:30
Kovid Goyal
f25b3c2aee
Canonicalize resource pathnames in the frozen build
2021-02-19 13:59:33 +05:30
Kovid Goyal
e3e2261005
Fix resources path in macOS bundle
2021-02-19 13:57:58 +05:30
Kovid Goyal
38a7e77058
Add build test for filesystem locations
2021-02-19 13:42:20 +05:30
Kovid Goyal
a920919b13
Workaround for bug in libxkbcommon/Debian/Ubuntu on en_IN locale
...
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903373
2021-02-19 12:35:59 +05:30
Kovid Goyal
625f0f77bb
Ensure disk cache is cleared
2021-02-19 09:43:57 +05:30
Kovid Goyal
12604072fc
Allow querying number cached in ram from c code as well
2021-02-19 09:28:56 +05:30
Kovid Goyal
0341b64748
Allow caching of disk cache entries in RAM
2021-02-18 10:22:42 +05:30
Kovid Goyal
e0620fbb1d
Also implement the bypy freeze on macOS
2021-02-17 22:01:09 +05:30
Kovid Goyal
9114bda24c
Get the new bypy based freezing process working with linux builds
2021-02-17 15:50:53 +05:30
Kovid Goyal
4cf73204a2
Forgot to exclude modules
2021-02-16 13:57:23 +05:30
Kovid Goyal
55e7f69768
Use importlib.resources to enumerate kitten names
2021-02-16 13:48:02 +05:30
Kovid Goyal
d2a16bc8e8
...
2021-02-16 13:14:36 +05:30
Kovid Goyal
5fdeb3b3b4
Use a temp dir as cache dir when running tests during freezing on linux
2021-02-16 13:07:45 +05:30
Kovid Goyal
9ad5ef8b2d
Fix compilation on ancient Linux distros without sys/random.h
2021-02-16 12:39:18 +05:30
Kovid Goyal
c244bcd978
Allow overriding the location of the kitty base directory in frozen builds
2021-02-16 10:29:19 +05:30
Kovid Goyal
7eb8e1df79
Use importlib to load the shaders
2021-02-16 10:23:18 +05:30
Kovid Goyal
74c4e94c3d
...
2021-02-16 10:21:28 +05:30
Kovid Goyal
275b8ce2e7
Fix #3322
2021-02-15 21:27:52 +05:30
Kovid Goyal
ff1b0a7e1b
Maybe it's uuid-dev instead
2021-02-15 16:44:59 +05:30
Kovid Goyal
39026bc45c
Apparently fontconfig now depends on uuid
2021-02-15 16:39:07 +05:30
Kovid Goyal
3d9a95d0cd
...
2021-02-15 16:24:39 +05:30
Kovid Goyal
085bc09dfb
Micro-optimization
2021-02-15 16:24:04 +05:30
Kovid Goyal
886309850f
Dont add alpha when rendering alpha mask on canvas
...
Instead use the larger of the two alphas. This gives better results
for overlapping text, such as the infinite length ligature glyphs used
by FiraCode. I dont think adding ever gave better results anyway.
2021-02-15 16:08:06 +05:30
Kovid Goyal
ba005e991a
Improve handling of infinite length ligatures in newer versions of FiraCode and CascadiaCode.
...
Now such ligatures are detected based on glyph naming convention.
This removes the gap in the ligatures at cell boundaries. However, at
least in Fira Code the infinite length ligature glyphs define a negative
left side bearing. This means they overlap when drawn consecutively,
leading to unsightly bumps at the joins.
Fixes #2695
2021-02-15 15:49:09 +05:30
Kovid Goyal
912c46fc57
Fix rendering of ligatures in the latest release of Cascadia code
...
For some reason it puts empty glyphs after the ligature glyph rather than before it.
There is a possibility this fix might break something else, we will see.
Fixes #3313
2021-02-15 11:57:57 +05:30
Kovid Goyal
5675944c0c
Recognize remaining ASCII keys for legacy mode as well
2021-02-15 05:33:57 +05:30
Kovid Goyal
6b9c280214
Add a test for encoding of : as a legacy ascii key
2021-02-15 05:27:32 +05:30
Kovid Goyal
19b882a0bd
Also handle : as a legacy ASCII key
...
Fixes #3315
2021-02-15 05:24:21 +05:30
Kovid Goyal
323d5dba7e
SingleKey parsing requires ASCII lowercase
2021-02-15 04:55:51 +05:30
Kovid Goyal
cd9755ffb3
Sphinx: replace use of deprecated css_files
2021-02-15 04:35:24 +05:30
Kovid Goyal
fbcdf352ac
Allow resizing of OS Window framebuffers to a single cell
...
This is much smaller than before and essentially works around the issue
of the text being scaled when the window is resized to small sizes. Also
has the nice side effect of making the code simpler for the panel
kitten. Fixes #3307
2021-02-14 22:17:41 +05:30
Kovid Goyal
015fe9054e
Fix shifted keys not matching shortcuts in kittens
...
Broke after keyboard refactoring for new keyboard protocol. Now a key
event will match a shortcut specification if either the mods and key
match or mods without shift and shifted key match. Fixes #3314
2021-02-14 07:52:08 +05:30
Kovid Goyal
9a031c5b0c
Bump versions for bundled deps
2021-02-12 12:29:38 +05:30
Kovid Goyal
de0f225c45
Fix #3299
2021-02-09 22:10:40 +05:30
Kovid Goyal
41533bffdd
Merge branch 'build_doc' of https://github.com/spenczar/kitty
2021-02-09 07:45:25 +05:30
Spencer Nelson
cdf7c4bf97
Add two more build-time dependencies to the docs
2021-02-08 10:40:15 -08:00
Kovid Goyal
57db384953
Add packaging status to README
2021-02-06 12:10:30 +05:30
Kovid Goyal
9f0785a160
Add a link to the RFC
2021-02-05 11:36:03 +05:30
Kovid Goyal
4541cf8807
Another CodeQL warning
2021-02-05 10:41:35 +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
726d736aac
Type check return value of cache_dir
2021-02-05 10:34:17 +05:30
Kovid Goyal
db0360dc81
Fix a bunch of CodeQL warnings
2021-02-05 10:05:54 +05:30
Kovid Goyal
4ba35d4a93
Clear cache_dir lru cache when testing
2021-02-05 09:56:17 +05:30
Kovid Goyal
1d51fca879
Python 3.6 compat
2021-02-05 09:49:46 +05:30
Kovid Goyal
67ca1902a0
Use a cache dir in the cwd on CI
2021-02-05 09:42:01 +05:30
Kovid Goyal
1ef326e220
Better error message
2021-02-05 09:29:56 +05:30
Kovid Goyal
0e483f81ac
Compat for python < 3.8
2021-02-05 09:23:54 +05:30
Kovid Goyal
e969dea3b7
Remove unused function
2021-02-05 09:20:58 +05:30
Kovid Goyal
89b4f59efa
Update changelog to note animation support
2021-02-05 09:20:02 +05:30
Kovid Goyal
95dc87cf04
Prevent stack overflows when recursing to coalesce frames
2021-02-05 09:12:08 +05:30
Kovid Goyal
3fc29e0d11
...
2021-02-05 09:03:39 +05:30
Kovid Goyal
cc3b71154d
Document the animation protocol
2021-02-05 09:00:19 +05:30
Kovid Goyal
e4e9e29949
Add a note about broadcast kitten to index
2021-02-05 06:33:48 +05:30
Kovid Goyal
7a1785e1e8
Get chunked loading working with frames
2021-02-04 21:04:44 +05:30
Kovid Goyal
5d2baaac38
...
2021-02-04 17:52:18 +05:30
Kovid Goyal
b479510f6c
Allow controlling the number of loops in icat
2021-02-04 17:47:53 +05:30
Kovid Goyal
8033e9fef5
Fix error checking when rendering single frame
2021-02-04 17:16:52 +05:30
Kovid Goyal
83b8c8ea12
Reduce frequency of key frames slightly
2021-02-04 17:08:06 +05:30
Kovid Goyal
a447ba7d76
Fix typo in coalesce function causing incorrect coalesce for more than one level of recursion
2021-02-04 16:50:13 +05:30
Kovid Goyal
450e1c2f95
Use key frames for performance
2021-02-04 16:20:30 +05:30
Kovid Goyal
cf3a01f502
Handle images whose first frame is smaller than the canvas
2021-02-04 15:57:49 +05:30
Kovid Goyal
3925e18964
Use rgba data for opaque animations that uses blended frames
2021-02-04 14:39:06 +05:30
Kovid Goyal
2650c7dd9e
Avoid calculation when over px is transparent
2021-02-04 14:26:10 +05:30
Kovid Goyal
0f18fedf13
Add support for animations to icat
2021-02-04 14:18:47 +05:30
Kovid Goyal
f18a56682f
Fix animations not resuming when OS window is hidden and then shown
2021-02-04 13:34:27 +05:30
Kovid Goyal
af94e07618
Cache exe lookups
2021-02-04 11:36:59 +05:30
Kovid Goyal
7eba3b6cbc
Use the magick executable from IMv7 preferentially
2021-02-04 11:34:32 +05:30
Kovid Goyal
e5ef9d9062
Ensure IM outputs multiple images in rgba format
2021-02-04 11:23:54 +05:30
Kovid Goyal
b72dbc973d
Allow controlling how many times an animation will loop
2021-02-03 20:54:43 +05:30
Kovid Goyal
55d0e23c38
...
2021-02-03 19:29:46 +05:30
Kovid Goyal
d3489712a6
Store mode data per frame
2021-02-03 18:00:36 +05:30
Kovid Goyal
56193f6902
Handle resizing of animated images with blended frames correctly
2021-02-03 17:51:38 +05:30
Kovid Goyal
2dad179285
...
2021-02-03 16:00:31 +05:30
Kovid Goyal
19f0e2303d
Refactor to store frame deltas instead of fully coalesced frames
...
Trades CPU usage for cache/memory space
2021-02-03 15:49:33 +05:30
Kovid Goyal
c152624634
Rename state variable to be closer to its actual purpose
2021-02-02 09:00:28 +05:30
Kovid Goyal
212906cf7d
gap should be gap to next frame not gap from previous frame
...
Matches usage in the GIF format and makes the concept of gapless
clearer.
2021-02-01 17:08:59 +05:30
Kovid Goyal
bb5c5a8e4f
Allow gapless frames
2021-02-01 16:22:36 +05:30
Kovid Goyal
9cf5348c36
Modify ImageMagick wrapper to handle animated images
2021-02-01 14:12:26 +05:30
Kovid Goyal
edf4e14e4c
Work on animation support for icat
2021-01-31 20:58:43 +05:30
Kovid Goyal
8fa737f01c
Rescan for animated images on various events
2021-01-31 20:58:43 +05:30
Kovid Goyal
f16e22fbec
Forgot to convert gaps to monotonic_t
2021-01-31 20:58:43 +05:30
Kovid Goyal
19e0406459
Wire up animation state tracking
2021-01-31 20:58:43 +05:30
Kovid Goyal
354d7c2740
...
2021-01-31 20:58:42 +05:30
Kovid Goyal
00edb6058e
Start work on implementing frame transitions
...
Also ensure that the correct OS Window is current when uploading images
to GPU.
2021-01-31 20:58:42 +05:30
Kovid Goyal
597267d1d0
root frame gap should be set to the gap of the first received frame
2021-01-31 20:58:42 +05:30
Kovid Goyal
ad4665e638
Add support for newer keys to GraphicsCommand serializer
2021-01-31 20:58:42 +05:30
Kovid Goyal
b21850dd15
Implement updating of current frame on GPU
2021-01-31 20:58:42 +05:30
Kovid Goyal
4098f2d383
Add quota enforcement testing
2021-01-31 20:58:42 +05:30
Kovid Goyal
5eba754c60
Implement animation control escape codes
2021-01-31 20:58:42 +05:30
Kovid Goyal
b35084062d
Remove old data from cache when re-using image objects
2021-01-31 20:58:42 +05:30
Kovid Goyal
1d20472759
Avoid a cache move when deleting frames
2021-01-31 20:58:42 +05:30
Kovid Goyal
c0e336a971
DRYer
2021-01-31 20:58:42 +05:30
Kovid Goyal
d76e757d53
Implement delete for frames
2021-01-31 20:58:42 +05:30
Kovid Goyal
43ea58ef48
Start work on delete for frames
2021-01-31 20:58:42 +05:30
Kovid Goyal
17f485d614
Basic frame loading works
2021-01-31 20:58:41 +05:30
Kovid Goyal
35f3312a1e
Use shorter cache keys
2021-01-31 20:58:41 +05:30
Kovid Goyal
ca3c49099f
Start work on tests for frame loading
2021-01-31 20:58:41 +05:30
Kovid Goyal
6631bb0eac
Make the image dict more complete
2021-01-31 20:58:41 +05:30
Kovid Goyal
0adbbc6d62
Implement loading of frame animation data
2021-01-31 20:58:41 +05:30
Kovid Goyal
cc4f9ddad8
More work an animation handling
2021-01-31 20:58:41 +05:30
Kovid Goyal
5a182d3d13
Store image data in a disk cache
2021-01-31 20:58:41 +05:30
Kovid Goyal
c60d3af60b
Add links to locations for discussion to README
...
Proof of reddit account:
1e2b9113-2d30-48f0-8f2f-f7a2bcbd4895
2021-01-31 20:54:21 +05:30
Kovid Goyal
4e67a92ec4
DRYer
2021-01-31 12:26:54 +05:30
Kovid Goyal
e43c3118d4
...
2021-01-31 12:14:36 +05:30
Kovid Goyal
ffc0919790
Allow setting colors when creating windows using the launch command.
2021-01-31 12:13:27 +05:30
Kovid Goyal
2af145879e
Make color spec parsing re-useable
2021-01-31 12:10:45 +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
e9e8ef7210
ssh kitten: Allow using python instead of the shell on the server
2021-01-31 09:04:46 +05:30
Kovid Goyal
ee198ca863
Add versionadded notes
2021-01-31 07:42:01 +05:30
Kovid Goyal
0681e6a9b6
...
2021-01-31 07:35:58 +05:30
Kovid Goyal
965a6dfd30
Add some more kittens to the list
2021-01-31 07:18:27 +05:30
Kovid Goyal
d55fde9eea
Use EINTR safe wrappers for open() and shm_open()
2021-01-31 07:02:11 +05:30
Kovid Goyal
231f054bc3
Merge branch 'master' of https://github.com/dlh/kitty
2021-01-31 06:47:01 +05:30
Daniel Lee Harple
43fafd85f8
Allow cancellation of "detach_window ask"
2021-01-30 19:21:11 -05:00
Kovid Goyal
8a5a7b8807
Merge branch 'master' of https://github.com/dlh/kitty
2021-01-30 10:07:16 +05:30
Daniel Lee Harple
2c24cc1341
Allow quoted args to toggle_marker
2021-01-29 17:52:24 -05:00
Kovid Goyal
0fc93118f2
Make the error message when failing to get monitor display name more informative
2021-01-29 12:45:22 +05:30
Kovid Goyal
ac2a33d09f
Silence the errors about OSC 7
...
Up to now this poorly designed and completely unnecessary escape code
was relegated to only GNOME, however, off late Apple has started using
it as well, so silently ignore it, instead of spamming error messages
for it.
2021-01-29 12:43:41 +05:30
Kovid Goyal
68423b3603
Fix compiler warning on newer Xcode
...
Fixes #3271
2021-01-29 11:29:29 +05:30
Kovid Goyal
6d18223f17
Use an id for keyboard focus tracking as well
2021-01-29 11:22:39 +05:30
Kovid Goyal
0443e5ad7f
Wayland: Use window ids rather than pointers to track windows for key repeat
...
Might fix #3266
2021-01-29 08:43:00 +05:30
Kovid Goyal
4619921780
Add a link to the thread with discussion on using vim as pager
2021-01-29 08:35:15 +05:30
Kovid Goyal
df89266c03
diff kitten: Implement recursive diff over SSH
...
Fixes #3268
2021-01-28 14:23:56 +05:30
Kovid Goyal
36ca3838a6
Fix #3265
2021-01-27 17:19:06 +05:30
davidak
60ce88cf25
Update Nix package link
2021-01-27 13:43:21 +05:30
Kovid Goyal
5a2f2767ad
Fix window icon not working on X11 with 64bits
...
Apparently on X11 the maximum icon size is 128x128. 256x256 is too
large for the X11 protocol because the X server unserializes the icons
using "unsigned long" which is 64 bits on Linux. So we have to use
64bits per pixel instead of 32, with 32bits padded to 0.
While there I also got rid of the kitty.rgba file replacing it with a
128x128 PNG file.
Fixes #3260
2021-01-25 20:54:19 +05:30
Kovid Goyal
6e73d3fac8
Fix extra space at bottom of OS window when using the fat layout with the tab bar at the top
...
Fix #3258
2021-01-25 09:30:14 +05:30
Kovid Goyal
d08ae5466d
Dont use a function
2021-01-24 12:57:39 +05:30
Kovid Goyal
fc175732e1
Fix CodeQL warning
2021-01-24 12:48:47 +05:30
Kovid Goyal
dfe41217f8
Start work on allowing images to have multiple frames
2021-01-24 12:37:21 +05:30
Kovid Goyal
4870d07cbb
Refactor handle_add_command to make it more readable
2021-01-24 12:00:35 +05:30
Kovid Goyal
2dd9fd83a3
Add some text to the control reference
2021-01-23 13:44:10 +05:30
Kovid Goyal
0b93153656
Add the I key to the control data reference
2021-01-23 13:20:32 +05:30
Kovid Goyal
714d64c417
Get type checking working with mypy 0.80
...
Add workaround for https://github.com/python/typeshed/issues/4964
2021-01-23 09:25:31 +05:30
Kovid Goyal
b823af00ff
Get rid of a bunch of noqas
2021-01-22 22:04:53 +05:30
Kovid Goyal
77f456bd9c
Fix #3253
2021-01-22 21:06:58 +05:30
Kovid Goyal
874fe2ed72
...
2021-01-22 20:36:39 +05:30
Kovid Goyal
786f8c7b1f
macOS: Ensure font size is correct if the OS moves the newly created window to a different monitor after it is shown
2021-01-22 20:22:09 +05:30
Kovid Goyal
0c784346cc
Update blurb
2021-01-21 12:14:44 +05:30
Kovid Goyal
2ab0ff74c6
...
2021-01-21 11:34:21 +05:30
Kovid Goyal
22cb9b9798
Add a note about kbs = backspace
2021-01-21 11:29:01 +05:30
Kovid Goyal
2ee1a366fd
Also assert non-negative params for SET_MODE
2021-01-21 07:21:23 +05:30
Kovid Goyal
f9844ba3b0
Allow negative numbers in CSI codes
2021-01-21 07:06:43 +05:30
Kovid Goyal
7cea233de3
- is not a CSI start modifier
2021-01-21 06:44:18 +05:30
Kovid Goyal
e4d8aac3d5
Make CSI parsing a bit more spec compliant
...
Now the full list of secondary characters (intermediate bytes) is used from ECMA 48
Also the codes that accept only one parameter now report errors when
multiple parameters are passed.
2021-01-21 06:41:27 +05:30
Kovid Goyal
354d381372
Oops forgot to regen glfw wrapper
2021-01-21 05:37:13 +05:30
Kovid Goyal
60e589f775
Recognize Hyper key
...
Also use only one implementation for detecting if a key is a modifier
key
2021-01-21 05:33:14 +05:30
Kovid Goyal
f6d4b8e0b0
typo
2021-01-20 18:30:22 +05:30
Kovid Goyal
5fafd70b0f
Fix detection of ASCII control chars in key event text
2021-01-20 17:35:24 +05:30
Kovid Goyal
dcfeab8461
Remove un-needed code
...
Space is now handled as legacy ascii key
2021-01-20 16:08:15 +05:30
Kovid Goyal
2a8e8d4b38
Fix #3252
2021-01-20 16:02:28 +05:30
Kovid Goyal
e6644aebcb
Add a test to ensure caps lock does not produce bytes in legacy mode
2021-01-19 09:19:34 +05:30
Kovid Goyal
654cd54363
Add the ISO level 3 and 5 shift keys to functional keys
2021-01-19 09:11:44 +05:30
Kovid Goyal
16005d43e8
Dont send unknown keys that dont generate text
...
Fixes #3249
2021-01-19 09:01:52 +05:30
Kovid Goyal
b08c93032b
...
2021-01-19 08:58:06 +05:30
Kovid Goyal
dd08896c70
Lock keys should not be sent to applications in legacy mode
2021-01-19 08:55:01 +05:30
Kovid Goyal
f0ae5dfc73
...
2021-01-18 16:31:09 +05:30
Kovid Goyal
0adc7e4d4b
fix typo
2021-01-18 16:30:02 +05:30
Kovid Goyal
5c2056a7cb
Fix parsing of + as a shortcut
2021-01-17 19:56:32 +05:30
Kovid Goyal
f0e7d26409
Fix typo
2021-01-17 19:12:12 +05:30
Kovid Goyal
95ebeebb84
Mention alternate screen mode in the quickstart
2021-01-17 11:41:35 +05:30
Kovid Goyal
a88875f98e
...
2021-01-17 11:17:31 +05:30
Kovid Goyal
39da92d8ab
Now that glfw reports shifted keys, use it when encoding key events
2021-01-17 11:14:44 +05:30
Kovid Goyal
089d358031
...
2021-01-17 09:06:03 +05:30
Kovid Goyal
6a4885df17
Add changelog entries for the new keyboard features
2021-01-17 08:52:10 +05:30
Kovid Goyal
d45d553eaf
When using a non-US keyboard layout and pressing ctrl+key when the key matches an English key in the default layout, send that to the program running in the terminal automatically
...
See #2000
2021-01-17 08:25:19 +05:30
Kovid Goyal
2cbbd84987
Clean up some formatting
2021-01-17 07:34:35 +05:30
Kovid Goyal
1016586611
Fix compiler warning
2021-01-17 07:28:22 +05:30
Kovid Goyal
6bbf014152
...
2021-01-17 07:24:12 +05:30
Kovid Goyal
4fea7bd8ef
Fix building on systems with xkbcommon < 1.0
2021-01-17 07:22:21 +05:30
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
4c9bd368c6
Implement alternate keys on macOS
2021-01-16 20:52:16 +05:30
Kovid Goyal
b1c1c497e4
More character key name aliases
2021-01-16 20:52:16 +05:30
Kovid Goyal
86ce72e725
Port the Cocoa backend to use unicode key numbers
2021-01-16 20:52:16 +05:30
Kovid Goyal
ae37b4b09b
Add more character key aliases
2021-01-16 20:52:15 +05:30
Kovid Goyal
5ffbee1e8c
Use shifted keys to match shortcuts as well
2021-01-16 20:52:15 +05:30
Kovid Goyal
19a3635c64
Dont send release events for kitty shortcuts to children
2021-01-16 20:52:15 +05:30
Kovid Goyal
3c648c05ec
Report shifted and alternate keys from the XKB backend
2021-01-16 20:52:15 +05:30
Kovid Goyal
5607a3c2ed
...
2021-01-16 20:52:15 +05:30
Kovid Goyal
cf04a5a036
Add tests for encode/decode roundtripping
2021-01-16 20:52:15 +05:30
Kovid Goyal
c12680895e
Fix key state tracking regression
2021-01-16 20:52:15 +05:30
Kovid Goyal
0163bf3edb
Fix enter/tab/backspace not being reported in all keys mode
2021-01-16 20:52:15 +05:30
Kovid Goyal
af0a24c702
Make key demo output prettier
2021-01-16 20:52:15 +05:30
Kovid Goyal
7ea1deba8f
Clean up code tables
2021-01-16 20:52:15 +05:30
Kovid Goyal
b60c84ecdc
Add note on detection of support
2021-01-16 20:52:15 +05:30
Kovid Goyal
e09ed038e2
Port key handling in more kittens
...
Also fix decoding of enter/f3 key events
2021-01-16 20:52:15 +05:30
Kovid Goyal
9c6ba213f9
Fix key handling in diff kitten
2021-01-16 20:52:14 +05:30
Kovid Goyal
66341111e6
keyboard mode change should happen only in alternate screen
2021-01-16 20:52:14 +05:30
Kovid Goyal
abc1e3f289
Remove the function used to init glfw key events
...
Instead use C99 struct initializers. Much less error prone.
2021-01-16 20:52:14 +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
0714fd376b
Fix handling of ctrl key in legacy mode
...
Also change the glfw constants used for the modifiers to match those
used in the terminal encoding. Less likely to make mistakes translating
that way.
2021-01-16 20:52:14 +05:30
Kovid Goyal
39f41faf9f
Dont send events for modifier keys unless in all key mode
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
f94a5f4e5c
Add a Quickstart section to the protocol documentation
2021-01-16 20:52:14 +05:30
Kovid Goyal
c421fd56be
Ensure typing in shell works in disambiguate mode
2021-01-16 20:52:14 +05:30
Kovid Goyal
11de87d9d9
It's ok that Enter and F3 share a number
...
Enter has u has trailer, F3 has either ~ or 1R
2021-01-16 20:52:14 +05:30
Kovid Goyal
8f5d42fa11
Python wrapper for key events from window system
2021-01-16 20:52:14 +05:30
Kovid Goyal
e14fcf5590
Clean up docs
2021-01-16 20:52:14 +05:30
Kovid Goyal
f5b81c7ed6
...
2021-01-16 20:52:13 +05:30
Kovid Goyal
47a901385f
Implement reporting of all keys as escape codes with text
2021-01-16 20:52:13 +05:30
Kovid Goyal
819bd5cd70
Tests for alternate key reporting
2021-01-16 20:52:13 +05:30
Kovid Goyal
753ad68ca9
Add tests for event type reporting
2021-01-16 20:52:13 +05:30
Kovid Goyal
5498f4e526
...
2021-01-16 20:52:13 +05:30
Kovid Goyal
83a01b6bf4
Add tests for the disambiguate flag
2021-01-16 20:52:13 +05:30
Kovid Goyal
c519013b20
Add tests for legacy letter key encodings
2021-01-16 20:52:13 +05:30
Kovid Goyal
78d45eb161
Port another use of the old key API
2021-01-16 20:52:13 +05:30
Kovid Goyal
eeacac227a
Add tests for functional KP keys
2021-01-16 20:52:13 +05:30
Kovid Goyal
529e9f83f7
Finish up functional key tests
2021-01-16 20:52:13 +05:30
Kovid Goyal
5297f7474d
Remove another use of GLFW_KEY
2021-01-16 20:52:13 +05:30
Kovid Goyal
e06b48a344
Identify SS3 in the docs
2021-01-16 20:52:13 +05:30
Kovid Goyal
7ba57ebf62
esc also needs a low number
2021-01-16 20:52:12 +05:30
Kovid Goyal
1ec9a8b777
Fix parsing of shortcuts to support the new keys
2021-01-16 20:52:12 +05:30
Kovid Goyal
1690718710
More removal of GLFW_KEY_ constants
2021-01-16 20:52:12 +05:30
Kovid Goyal
774a6c8c8b
Remove glfw key constants
2021-01-16 20:52:12 +05:30
Kovid Goyal
f06eee8fe1
Define special numbers in one place only
2021-01-16 20:52:12 +05:30
Kovid Goyal
2b12bcc07f
Docs for legacy functional encoding
2021-01-16 20:52:12 +05:30
Kovid Goyal
a30ea2b7f8
Implement progressive enhancement of key event reporting
2021-01-16 20:52:12 +05:30
Kovid Goyal
295e8db04c
remove unused code
2021-01-16 20:52:12 +05:30
Kovid Goyal
b63ae10a09
Start documenting new keyboard protocol
2021-01-16 20:52:12 +05:30
Kovid Goyal
c8a9336160
Code to encode key events
2021-01-16 20:52:12 +05:30
Kovid Goyal
c0b6078438
Add more keypad keys
2021-01-16 20:52:11 +05:30
Kovid Goyal
ccce8c32a3
Mapping to unicode and back for XKB keys
2021-01-16 20:52:11 +05:30
Kovid Goyal
8f8be9c2b1
Add notice to not edit generated code
2021-01-16 20:52:11 +05:30
Kovid Goyal
eb8e2225e5
Add some more functional keys
...
Also define aliases for XKB codes
2021-01-16 20:52:11 +05:30
Kovid Goyal
397d7d044b
Change key data type in some functions
2021-01-16 20:52:11 +05:30
Kovid Goyal
a681162326
Start work on supporting arbitrary unicode keys
2021-01-16 20:52:11 +05:30
Kovid Goyal
f00ec0ff60
Merge branch 'm1-build-fix' of https://github.com/pjjw/kitty
2021-01-15 10:52:01 +05:30
Peter Woodman
35982a9e58
Make is_arm predicate work on macos
2021-01-15 00:09:24 -05:00
Kovid Goyal
cf0bdf4d59
Add another couple of integrations
2021-01-14 06:36:18 +05:30
Kovid Goyal
8a9d43e84d
Changelog item for last PR
2021-01-13 06:58:01 +05:30
Kovid Goyal
578bf963e3
Merge branch 'master' of https://github.com/quentin-fox/kitty
2021-01-13 06:57:25 +05:30
Quentin Fox
292c4ce450
add menu item to close window
2021-01-12 19:55:51 -05:00
Kovid Goyal
8ea589e5a3
Change blurb wording slightly
2021-01-12 20:01:44 +05:30
Kovid Goyal
ad09ccb0f2
Panel kitten: Allow setting WM_CLASS
...
Fixes #3233
2021-01-12 04:49:45 +05:30
Kovid Goyal
edfc6903ce
Remove unused code
2021-01-08 13:32:52 +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
31cb68840a
Merge branch 'bugfix-unicode-names-input' of https://github.com/purxiz/kitty
...
Fixes #3221
2021-01-07 14:18:24 +05:30
purxiz
89c62377da
fix type error
...
I moved the location of the check for an overflowing index to avoid a type error that was revealed by mypy. I also think this is a better place to put it from a code standpoint in general...
2021-01-06 13:24:38 -06:00
purxiz
85afda8832
fixes incorrect hint base
...
The bases for the hint were being decoded as base 16, despite being displayed as base 36 (0-9, a-z). This fix makes it so typing 'search string .index' returns the unicode char at the expected index, based on what is displayed by the program.
It also slightly changes the behavior. Before, only the selected result would appear. For example, musical note `musical note .18` would only show a single result, since there was only a single result at index 18. Now, searching by index doesn't remove codepoints/results, it simply highlights the result at the correct index for you.
2021-01-06 13:07:41 -06:00
Kovid Goyal
5184e4bde3
Fix #3217
2021-01-06 22:31:09 +05:30
Kovid Goyal
133b580262
Avoid error prints when rendering the space glyph and freetype fails to load it
...
Also a micro-optimization, since there is no need to actually render the
space glyph
2021-01-05 12:21:06 +05:30
Kovid Goyal
3e76cf87ce
Linux: Fix rendering of emoji followed by the graphics variation selector not being colored with some fonts
...
Harfbuzz, for some reason has started rendering variation selector
glyphs. These fail to load for some fonts. https://github.com/harfbuzz/harfbuzz/issues/2804
Fixes #3211
2021-01-05 09:35:21 +05:30
Kovid Goyal
f72ff73344
Correct return type
2021-01-05 09:17:17 +05:30
Kovid Goyal
9aae346ab5
Better error message when failing to load glyph
2021-01-05 09:10:35 +05:30
Kovid Goyal
ca65ad6fa3
Inline qsort
...
Cleaner, more local code and faster sorting by virtue of inlining the
comparisons. What's not to like.
2021-01-04 14:14:15 +05:30
Kovid Goyal
0f4156c564
...
2021-01-04 13:15:29 +05:30
Kovid Goyal
3a0d3dc0b3
Slightly improved command line
2021-01-04 13:14:14 +05:30
Kovid Goyal
d68c338304
Wait for write and check data, fixes test failure
2021-01-04 12:27:26 +05:30
Kovid Goyal
82f8c59bc7
...
2021-01-04 12:18:42 +05:30
Kovid Goyal
c55f485166
Add an example of using the remote control protocol from a shell script
2021-01-04 12:17:20 +05:30
Kovid Goyal
2762488c81
Remove double increment
2021-01-03 21:10:37 +05:30
Kovid Goyal
ac13ae727f
Fix failing test
...
We cant know what the size of the disk cache file is,
since defragmentation occurs asynchronously
2021-01-03 21:05:08 +05:30
Kovid Goyal
1b59a1c421
Finish tests of disk cache
2021-01-03 17:36:40 +05:30
Kovid Goyal
df00e9545d
Add some more ensure_state()
2021-01-03 12:13:08 +05:30
Kovid Goyal
d1496f1eb5
Use O_TMPFILE when available
2021-01-03 07:07:50 +05:30
Kovid Goyal
14d9bcb08a
Go back to nanosleep since it is in POSIX
2021-01-03 06:45:53 +05:30
Kovid Goyal
c869774c58
More tests for the disk cache
2021-01-03 06:22:48 +05:30
Kovid Goyal
18679348b2
Use usleep rather than nanosleep
2021-01-03 05:00:40 +05:30
Kovid Goyal
b3ed4c3f40
Simplify implementation of REP
...
Also make it align more with the standard by using the actual last drawn
graphics character rather than the character before the cursor
2021-01-03 04:38:02 +05:30
Kovid Goyal
8f58140419
Start work on tests for disk cache
2021-01-03 04:28:48 +05:30
Kovid Goyal
bc8a351558
Add repeat character to client.py
2021-01-02 12:49:33 +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
bc86bc91f7
Auto-defrag cache file
2021-01-02 11:32:38 +05:30
Kovid Goyal
a60f347648
Merge branch 'kitten-diff-select-fg-none' of https://github.com/tomaskrizek/kitty
2021-01-02 09:01:25 +05:30
Tomas Krizek
dbe44c9e4b
kitten/diff: allow specifying none color for select_fg
...
Allow diff kitten to not override foreground color for selections.
Related #1358
2021-01-01 23:25:06 +01:00
Tomas Krizek
fb8b9b3933
kitty/config_data: remove duplicate function
...
selection_foreground() serves the exact same purpose as
to_color_or_none()
2021-01-01 23:23:47 +01:00
Kovid Goyal
56ebc9fa92
Add a link to ctx.graphics
2021-01-01 15:20:47 +05:30
Kovid Goyal
7f73609c77
Update total_size when removing cache items
2021-01-01 14:31:57 +05:30
Kovid Goyal
3ac70042c1
Expose grman disk cache to python
2021-01-01 14:19:10 +05:30
Kovid Goyal
61637a7a74
Simplified API t read from disk cache
...
Avoids the need to pass a custom allocator by using malloc
2021-01-01 14:16:26 +05:30
Kovid Goyal
49562e96cc
Python wrappers for the disk cache methods
2021-01-01 14:08:23 +05:30
Kovid Goyal
58b1868536
When cache is emptied clear disk file to avoid fragmentation
2021-01-01 13:15:21 +05:30
Kovid Goyal
1cad40e977
...
2021-01-01 12:03:09 +05:30
Kovid Goyal
9fbf23fdcc
Implement simple defrag for on-disk cache
2021-01-01 11:54:13 +05:30
Kovid Goyal
55e53db184
...
2020-12-31 15:38:57 +05:30
Kovid Goyal
f790e8bd47
DRYer
2020-12-31 15:33:04 +05:30
Kovid Goyal
54de2d177e
Enforce max key size
...
Also allocate it dynamically
2020-12-31 15:30:55 +05:30
Kovid Goyal
ec96771e4c
track total size and since each cache has its own writer thread store current key per thread
2020-12-31 15:24:25 +05:30
Kovid Goyal
99d2647335
Code to write to cache file
2020-12-31 15:18:30 +05:30
Kovid Goyal
c346cbc252
Use a single file for the disk cache
...
This has the advantage that on crash it is automatically cleaned
2020-12-31 13:54:33 +05:30
Kovid Goyal
3c77290c2c
Code to get random bytes in C, cross-platform
2020-12-31 11:26:22 +05:30
Kovid Goyal
72d193e852
Fix python3.7 fork registration not working
2020-12-31 10:38:26 +05:30
Kovid Goyal
1f7499e841
Detect more types of BSD
2020-12-31 10:26:15 +05:30
Kovid Goyal
c486fbb7c3
Add some aliases for shift key shenanigans
2020-12-30 21:09:03 +05:30
Kovid Goyal
fe1050fc0e
More work on disk cache
2020-12-30 14:26:38 +05:30
Kovid Goyal
3162d391cc
Start work on disk cache
2020-12-29 19:16:21 +05:30
Kovid Goyal
e2d61ab5be
Fix error handling for pthread create
2020-12-29 15:53:40 +05:30
Kovid Goyal
2a026de526
More sophisticated PATH resolution for the launch command
2020-12-29 11:51:17 +05:30
Kovid Goyal
c1b7023e3a
Look in ~/.local/bin preferentially
2020-12-29 11:50:11 +05:30
Kovid Goyal
175ff4b955
DRYer
2020-12-29 11:36:30 +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
08fae7a0ac
Add sbin to default paths
2020-12-29 10:50:31 +05:30
Kovid Goyal
a7e9030c12
Make finding ImageMagick a bit more robust on macOS
2020-12-29 10:48:26 +05:30
Kovid Goyal
aa8282f8f2
Update actual terminfo files from last PR
...
Also add entry to changelog
2020-12-29 10:03:56 +05:30
Kovid Goyal
7155400eb5
Merge branch 'bawr/terminfo-u6789' of https://github.com/bawr/kitty
2020-12-29 10:02:17 +05:30
Kovid Goyal
6760e38d93
Callback to create tempdir in cache
2020-12-29 10:00:34 +05:30
Bartosz Wróblewski
6bbe995d64
Generate u[6789] with terminfo.py
...
Should not hurt anything, it's just documenting kitty's existing VT220 compatibility.
2020-12-28 14:05:25 -08:00
Kovid Goyal
85bc8b61df
Make wm_class/wm_name available in @ ls output
2020-12-26 10:46:07 +05:30
Kovid Goyal
a235509fa1
Make aliasing ssh kitten more prominent
2020-12-24 13:56:17 +05:30
Kovid Goyal
2e5b595a82
Clarify color table docs
2020-12-24 13:54:09 +05:30
Kovid Goyal
5f8dee8384
Add support for the color settings stack that XTerm copied from us without acknowledgement and decided to use incompatible escape codes for.
...
Completely in keeping with that project's past behavior.
See https://github.com/kovidgoyal/kitty/issues/879
XTerm announcement:
https://www.mail-archive.com/xorg@lists.x.org/msg06419.html
2020-12-21 21:39:05 +05:30
Kovid Goyal
e97f1a4310
Have the save/restore colors escape codes also save restore the ANSI color table
2020-12-21 19:38:03 +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
3ce04c3e4b
version 0.19.3
2020-12-19 08:19:34 +05:30
Kovid Goyal
3b5951eb2f
Add a note about aliasing the SSH kitten
2020-12-18 16:59:42 +05:30
Kovid Goyal
aa8dd4ddf4
...
2020-12-17 11:30:37 +05:30
Kovid Goyal
4cd14aee42
Add a changelog entry for the last merge
...
Also some misc code/docs cleanups for it.
2020-12-17 11:24:38 +05:30
Kovid Goyal
0b2726ec33
Cleanup fc_match_postscript_name
2020-12-17 11:16:51 +05:30
Kovid Goyal
bc7f689165
Clean up pattern_as_dict
2020-12-17 11:12:35 +05:30
Kovid Goyal
6681652c21
Merge branch 'master' of https://github.com/Diaoul/kitty
2020-12-17 11:02:26 +05:30
Kovid Goyal
ed4b5f179e
Full screen kittens: Fix incorrect cursor position after kitten quits
...
DECOM should be reset only after entering alternate screen as it also
changes cursor position. Fixes #3176
2020-12-17 08:58:44 +05:30
Kovid Goyal
e48e166584
And another
2020-12-17 08:41:58 +05:30
Kovid Goyal
e7675e8bab
Add some more commands to the client
2020-12-17 08:37:55 +05:30
Antoine Bertin
cf7eaea88c
Add documentation
2020-12-16 18:01:14 +01:00
Antoine Bertin
3e0855ff45
Properly convert font_features to a list
2020-12-16 17:52:43 +01:00
Antoine Bertin
822c9367c6
Support default font_features from fontconfig
2020-12-16 14:58:38 +01:00
Kovid Goyal
0e46e2a6a7
Forgot to add new delete flags to reference table
2020-12-16 19:07:25 +05:30
Kovid Goyal
ade7ef19e7
Fix #3173
2020-12-16 19:00:31 +05:30
Kovid Goyal
e82a6dedd9
Fix deletion with image numbers
2020-12-16 18:57:46 +05:30
Kovid Goyal
2fd6bf7442
Fix failing test
...
Error responses must be sent for put commands that refer
non-existent images
2020-12-16 18:41:47 +05:30
Kovid Goyal
d10681f27f
Send responses when only a number and no id is specified
2020-12-16 18:31:30 +05:30
Kovid Goyal
e96ff19a7a
Graphics protocol: Add support for having the terminal emulator assign image ids
...
Useful when multiple non co-operating programs want to share the screen.
Fixes #3163
2020-12-16 17:31:15 +05:30
Kovid Goyal
09e75ea329
Add a note about cursor movement after placing an image.
2020-12-15 07:37:14 +05:30
Kovid Goyal
84b03e9f77
...
2020-12-14 20:06:43 +05:30
Kovid Goyal
55597dcea5
Add the needed import to the example
2020-12-14 19:23:30 +05:30
Kovid Goyal
3290bf3c35
Merge branch 'patch-1' of https://github.com/ThatNerdyPikachu/kitty
2020-12-14 08:37:53 +05:30
Pika
6771429911
Update faq.rst
2020-12-13 19:04:14 -05:00
Kovid Goyal
e428858ad6
Micro-optimization
2020-12-12 17:43:33 +05:30
Kovid Goyal
3e73f860d1
Fix assert in ringbuf_memcpy_from
2020-12-11 21:38:58 +05:30
Kovid Goyal
4cf5bd8d70
Turn on the asserts in ringbuf for debug builds
2020-12-11 21:26:15 +05:30
Kovid Goyal
bffe0f4a6c
Use a separate, re-useable ring-buffer implementation
...
Not only is it re-useable it also allows for easier debugging by
separating the ring buffer specific logic and the pager history logic.
Hopefully it fixes #3049
2020-12-11 21:17:38 +05:30
Kovid Goyal
3b8be26cc7
Workaround for Ubuntu as usual shipping with insanely outdated packages
...
Fixes #3160
2020-12-11 12:22:28 +05:30
Kovid Goyal
9e95939c47
Add wttr.in to integrations
2020-12-11 07:21:22 +05:30
Kovid Goyal
0af7af95cf
Merge branch 'master' of https://github.com/molly-cactus/kitty
2020-12-09 08:17:22 +05:30
Margaret K. Geiger
2b3e2ea6f8
Add tab_switch_strategy option 'right'
2020-12-08 16:55:27 -08:00
Kovid Goyal
19870983ca
Allow specifying text formatting in tab_title_template
...
Fixes #3146
2020-12-08 21:42:40 +05:30
Kovid Goyal
6e83b4c1bc
Make it more prominent when you dont need allow_remote_control
2020-12-07 16:24:54 +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
ed41e3cd25
Add mentions of glkitty to the docs
...
Fixes #3111
2020-12-06 08:23:25 +05:30
Kovid Goyal
4cc58e8535
Better fix for filtering out -march=native
2020-12-04 20:59:18 +05:30
Kovid Goyal
e1d9686eb5
Merge branch 'master' of https://github.com/runchard/kitty
2020-12-04 19:35:25 +05:30
Runchard
c5cb4f9e69
do not use clang option -march=native on Apple Silicon
...
Apple Silicon arm64-apple-darwin clang do not support `-march` option.
2020-12-04 21:07:19 +08:00
Kovid Goyal
4a60413e0b
...
2020-12-03 21:38:42 +05:30
Kovid Goyal
245f5d60b5
Add a test for image put + delete + put
2020-12-03 21:37:32 +05:30
Kovid Goyal
23420adfa6
Graphics protocol: Allow suppressing responses from the terminal to graphics commands
2020-12-03 20:42:03 +05:30
Kovid Goyal
c9828dfece
Removed unused parameter
2020-12-03 20:02:16 +05:30
Kovid Goyal
f52c843fa2
Add support for placement id to GraphicsCommand
2020-12-02 05:35:57 +05:30
Kovid Goyal
b5e704a934
Graphics protocol: Add support for giving individual image placements their
...
Fixes #3133
2020-12-02 05:25:19 +05:30
Kovid Goyal
0173959e64
Make a note that images can be placed and such are known as placements
2020-12-01 21:21:24 +05:30
Kovid Goyal
b00cd5cbc3
Match save/restore cursor behavior of other terms
...
For the sake of interoperability. This means that doing a DECRC without
a prior DECSC is now undefined. However, one can now issue multiple
DECRC for a single DECSC. Fixes #1264
2020-12-01 17:55:17 +05:30
Kovid Goyal
00aba7c646
Add basic editing support for the broadcast kitten
2020-12-01 17:35:15 +05:30
Kovid Goyal
34db18ea0a
Also transmit key events when broadcasting
2020-12-01 14:11:50 +05:30
Kovid Goyal
457c292d3c
Fix one ANSI formatting escape code not being removed from the pager history buffer when piping it as plain text
...
Fixes #3132
2020-12-01 13:17:35 +05:30
Kovid Goyal
f481c17732
The broadcast kitten
...
Fixes #1569
2020-12-01 13:11:32 +05:30
Kovid Goyal
4a049b14ca
Fix infinite loop in send-text when stdin is a tty
2020-12-01 12:29:03 +05:30
Kovid Goyal
ed2dae5884
Fix error when sending empty write buf
2020-12-01 12:25:09 +05:30
Kovid Goyal
df61ee4ac3
...
2020-12-01 11:39:50 +05:30
Kovid Goyal
850bc12929
DRYer
2020-11-30 22:16:21 +05:30
Kovid Goyal
559e17eb13
Add a couple more useful options to control selected windows for @ send-text
2020-11-30 22:04:46 +05:30
Kovid Goyal
4c4f6983d1
Fix env LC_CTYPE=UTF-8 not working on macOS
2020-11-30 16:23:29 +05:30
Kovid Goyal
2dbeb151f3
Changelog entry for traditional fullscreen on Big Sur
2020-11-29 12:04:52 +05:30
Kovid Goyal
82c137878c
Graphics protocol: Dont return filename in the error message when opening file fails, since filenames can contain control characters
...
Fixes #3128
2020-11-29 12:02:14 +05:30
Kovid Goyal
8845bd6ed3
...
2020-11-27 15:28:16 +05:30
Kovid Goyal
c89d861c0e
Add A FAQ entry about opening new windows with the cwd
2020-11-25 17:47:20 +05:30
Kovid Goyal
3ed536ace1
...
2020-11-22 12:32:12 +05:30
Kovid Goyal
d13ad4ec4b
Merge branch 'nohand' of https://github.com/derekschrock/kitty
...
Also add a changelog entry and some stylistic fixes
2020-11-22 12:31:28 +05:30
Kovid Goyal
cb5ac1fcf8
DRYer
2020-11-22 12:24:00 +05:30
Kovid Goyal
53797b9ead
Wayland: Fix key repeat being stopped by the release of an unrelated key
...
Fixes #2191
2020-11-22 12:14:52 +05:30
Derek Schrock
cb164e5cac
Add new option detect_urls to check for URLs under the mouse cursor
...
Enabled by default add new option `detect_urls` that will allow you
contorl if kitty should detect URLs under the mouse cursor. If disabled
the URLs are still clickable with open_url_modifiers.
2020-11-22 00:58:26 -05:00
Kovid Goyal
c46ebebbb3
Override the min-width for body from the alabaster theme
...
For some reason it sets min width to 450px which is too wide
for some mobile screens. Fixes #3116
2020-11-22 09:14:17 +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
Kovid Goyal
05eb07caf5
Add to changelog for last merge
...
Also remove a spurious return that was disabling a test. Fixes #3113
2020-11-20 20:23:23 +05:30
Kovid Goyal
f5b2a60549
Merge branch 'scroll-region-scrollback' of https://github.com/romkatv/kitty
2020-11-20 20:20:53 +05:30
Roman Perepelitsa
620eaf1ada
Change the flow of lines from the scroll region to the scrollback
...
There are two user-visible changes in here:
1. If a scroll region is set such that there is a bottom margin and no
top margin, scrolling the region forward used to discard the top
lines. Now those lines are appended to the scrollback.
```shell
# Assuming a terminal window with 24 lines.
printf '\033[H\033[J\033[3J\033[0;5r' && seq 100
```
This command used to result in an empty scrollback. Now it contains
the numbers 1-96.
2. If a scroll region is set such that there is a top margin and no bottom
margin, scrolling the region forward used to append the top lines to
the scrollback. Now these lines are discarded.
```shell
# Assuming a terminal window with 24 lines.
printf '\033[H\033[J\033[3J\033[2;24r' && seq 100
```
This command used to populate scrollback with the numbers 2-78. Now
the scrollback is empty. The numbers on the screen are the same as
before: 1 and 79-100.
Related issue: #3113 .
2020-11-20 15:41:57 +01:00
Kovid Goyal
9193a20b44
macOS: Fix minimize not working for chromeless windows
...
Fixes #3112
2020-11-20 07:30:46 +05:30
Kovid Goyal
bdcac9aed3
Partial fix for traditional full screen on Big Turd
2020-11-16 10:23:01 +05:30
Kovid Goyal
e9a28550cc
explanatory note
2020-11-15 14:31:40 +05:30
Kovid Goyal
f3cd3e74ae
...
2020-11-15 10:17:32 +05:30
Kovid Goyal
b853fc30c0
Merge branch 'master' of https://github.com/dankamongmen/kitty
2020-11-15 10:13:00 +05:30
nick black
63e32a94c0
Sextants: fix arithmetic mistake that broke 🬓, 🬦, 🬧
...
The scheme used in draw_sextant works well enough, but the
feed was broken. 21 and 42 need to be skipped, not 20 and
40. Without this change, the following glyphs are broken:
U+1FB13 BLOCK SEXTANT-35 🬓 renders as LEFT HALF
U+1FB26 BLOCK SEXTANT-46 🬦 renders as SEXTANT-146
U+1FB27 BLOCK SEXTANT-146 🬧 renders as RIGHT HALF
With this change, the entirety of the sextant block works
correctly. Found debugging the Notcurses sextant blitter:
https://github.com/dankamongmen/notcurses/issues/1112
2020-11-14 23:30:25 -05:00
Kovid Goyal
ef596f6a8b
Distribute extra pixels among all eight-blocks rather than adding them all to the last block
...
Makes one block stand out less, every block is now at most a pixel in
size different from every other block. Fixes #3097
2020-11-14 11:06:47 +05:30
Kovid Goyal
c830097511
Add a note about using hyperlinks with the hints kitten
2020-11-14 00:03:15 +05:30
Kovid Goyal
d8790a4628
Make the help text for --linenum-action less confusing
2020-11-13 23:53:26 +05:30
Kovid Goyal
e06ef732d8
version 0.19.2
2020-11-13 09:32:53 +05:30
Kovid Goyal
792a3e7db8
Dont mix the raw/non-raw malloc/free for pagerhist
2020-11-13 08:12:26 +05:30
Kovid Goyal
9b32842f66
Fix #3096
2020-11-13 07:47:40 +05:30
Kovid Goyal
9816979169
Don't restrict the DCH control code to only the current scroll region
...
Matches behavior of other terminal emulators. Fixes #3090
2020-11-12 11:44:09 +05:30
Kovid Goyal
a74679dd95
Fix last character of URL not being detected if it is the only character on a new line
...
Fixes #3088
2020-11-11 14:00:33 +05:30
Kovid Goyal
a40059729e
Fix the send_text action not working in URL handlers
...
send_text keeps its args as byte string, so variable expansion was not
working. Fixes #3081
2020-11-11 07:51:43 +05:30
Kovid Goyal
6bab967586
Merge branch 'memory-leak' of https://github.com/Luflosi/kitty
2020-11-05 18:15:44 +05:30
Luflosi
bb88b33469
Fix memory leak
...
Found with the Clang Static Analyzer.
2020-11-05 13:15:19 +01:00
Kovid Goyal
c440470276
Entry point to edit config file
2020-11-04 16:30:29 +05:30
Kovid Goyal
ef6164eecb
Merge branch 'incorrect-reference-count-decrement' of https://github.com/Luflosi/kitty
2020-11-04 07:44:00 +05:30
Luflosi
7ad360d872
Fix incorrect decrement of the reference counts of objects
...
Found with the Clang Static Analyzer.
The function `schedule_notification()` for the new notification API also does not `release` similar objects.
2020-11-03 18:17:58 +01:00
Kovid Goyal
0870a33956
Merge branch 'memory-leak' of https://github.com/Luflosi/kitty
2020-11-01 18:47:31 +05:30
Luflosi
3ccc2f538d
Fix memory leak in unlikely failure condition
...
Found with the Clang Static Analyzer.
2020-11-01 13:41:52 +01:00
Kovid Goyal
17375f0be2
Add a link to nix-shell
2020-10-31 09:10:50 +05:30
Kovid Goyal
5a987a162e
Merge branch 'add-shell.nix' of https://github.com/Luflosi/kitty
2020-10-31 07:31:19 +05:30
Luflosi
5058fb9919
Add shell.nix
...
This makes it possible to execute `nix-shell` to create the correct environment to build kitty. Use `nix-shell --pure` to eliminate most of the influence of the outside system, e.g. globally installed packages.
This works on NixOS and any Linux or macOS system with the Nix package manager installed.
The build inputs are split into `buildInputs`, `nativeBuildInputs`, `propagatedBuildInputs` and `checkInputs` so it closely resembles 2bb3a9da24/pkgs/applications/terminal-emulators/kitty/default.nix . This makes it easy to port changes between the two files.
2020-10-31 01:44:33 +01:00
Luflosi
3335f8602b
Allow reading some build system flags as environment variables
2020-10-29 12:20:11 +01:00
Kovid Goyal
87ab1bbe54
Add a changelog entry for previous merge
2020-10-29 07:20:45 +05:30
Kovid Goyal
f8d52b33f4
Merge branch 'wl_fix_destroy_csds' of https://github.com/LeonardKoenig/kitty
2020-10-29 07:19:57 +05:30
Leonard König
bc2dcdf9db
wl: Fix destroying CSDs in correct order ( #3051 )
...
On Wayland, some compositors refuse to implement SSDs in which case we draw
primitive CSDs. However, the destructors were called in the wrong order,
leading to a dereference of an already freed object.
2020-10-28 18:57:37 +01:00
Kovid Goyal
93d1aacfb6
macOS: Fix kitty not being added to PATH automatically
...
Fixes #3063 . Apparently in newer Python, Py_Initialize() nukes
sys._xoptions when the isolate flag is set.
2020-10-27 10:38:33 +05:30
Kovid Goyal
3ddaa4aff9
Make it clear that remote control mappings dont need remote control enabled
2020-10-26 16:51:53 +05:30
Kovid Goyal
75488d568a
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-10-26 16:34:30 +05:30
Luflosi
3df80545bd
Reduce the difference of GLFW to upstream
2020-10-26 11:02:55 +01:00
Kovid Goyal
c605fd9783
Merge branch 'remove-extra-space' of https://github.com/Luflosi/kitty
2020-10-26 15:03:25 +05:30
Luflosi
60719e7bff
Remove extra space
2020-10-26 10:22:14 +01:00
Kovid Goyal
e9faa3277a
Merge branch 'fix-memory-leak' of https://github.com/Luflosi/kitty
2020-10-26 07:33:06 +05:30
Luflosi
35f7388725
Fix memory leaks in coretext_all_fonts()
...
Found with the Clang Static Analyzer.
2020-10-25 17:40:51 +01:00
Kovid Goyal
ef1486a779
Add .js and .json to known extensions
2020-10-25 20:25:31 +05:30
Kovid Goyal
95c44165e9
Merge branch 'fix-clang-analyze-error' of https://github.com/Luflosi/kitty
2020-10-25 20:24:28 +05:30
Kovid Goyal
7b816bb96f
Font independent rendering for braille characters, which ensures they are properly aligned at all font sizes.
2020-10-25 20:20:22 +05:30
Luflosi
d2ac51aa4a
Fix Clang Static Analyzer complaining about Apple coding conventions
...
The error message was: "Method accepting NSError** should have a non-void return value to indicate whether or not an error occurred".
2020-10-25 15:47:43 +01:00
Kovid Goyal
26974b1f3a
Dont ignore --title when using an empty session
...
Fixes #3055
2020-10-25 18:53:57 +05:30
Kovid Goyal
3960c6678d
Override MIME for some types that are actually text
2020-10-25 15:11:44 +05:30
Kovid Goyal
30b8991a73
DRYer
2020-10-25 13:47:12 +05:30
Kovid Goyal
75a94bcd96
Improving MIME type detection for some common file types when they are missing from the system MIME database
...
Also allow the user to specify their own database via mime.types in the
kitty config directory. See #3056
2020-10-25 13:42:11 +05:30
Kovid Goyal
e160cbf32b
ssh kitten: Fix parsing of combined single letter options to more closely match ssh. Fixes #3053
2020-10-23 16:55:53 +05:30
Kovid Goyal
2da2e63245
Add another integration
2020-10-23 09:36:35 +05:30
Kovid Goyal
f160ea6012
Fix #3048
2020-10-21 21:57:35 +05:30
Kovid Goyal
8057bc639d
Add diff context parser defs
2020-10-20 11:37:48 +05:30
Kovid Goyal
6f5ec5aa03
Merge branch 'fix-mistake-in-previous-pr' of https://github.com/Luflosi/kitty into master
2020-10-19 16:41:01 +05:30
Luflosi
e343c9445c
Creating a temporary directory is not actually required
...
While developing the previous PR (https://github.com/kovidgoyal/kitty/pull/3043 ), I was using more compiler command line arguments, one of which was `-MMD`. This caused the .d file to be created. Without this argument, there is no need to create a temporary directory.
2020-10-19 13:08:32 +02:00
Kovid Goyal
c73e374f1a
Remove unneeded space
2020-10-19 16:02:49 +05:30
Kovid Goyal
d9b292f808
Merge branch 'fix-macos-notification-api-detection' of https://github.com/Luflosi/kitty into master
2020-10-19 16:00:38 +05:30
Luflosi
46ef2f313b
macOS: Fix detection for notification API
...
For some reason it can happen that the `UserNotifications` framework exists but the `UserNotifications/UserNotifications.h` header doesn't.
Closes https://github.com/kovidgoyal/kitty/issues/3042 .
2020-10-19 12:19:51 +02:00
Luflosi
92a705c79e
Add language parameter to first_successful_compile() and test_compile()
...
This allows compiling Objective-C files.
The temporary directory is needed because clang would try to write to `/dev/null.d`, which would obviously fail.
2020-10-18 23:08:19 +02:00
Kovid Goyal
12ebdd2574
Add a changelog entry for the last PR
2020-10-18 08:48:07 +05:30
Kovid Goyal
ed2e951032
Merge branch 'pointer_shape_when_dragging' of https://github.com/jaeheum/kitty into master
2020-10-18 08:46:18 +05:30
Kovid Goyal
01a34a8846
Add links to viu that supports the graphics protocol
2020-10-18 08:42:59 +05:30
Jay Han
b13174cb9c
pointer_shape_when_dragging option + set_mouse_cursor_when_dragging()
2020-10-17 09:52:44 -07:00
Jay Han
03ac6cab99
default_pointer_shape option
2020-10-17 09:28:04 -07:00
Kovid Goyal
532eebaefb
Merge branch 'fix-garbage-pointer-dereference' of https://github.com/Luflosi/kitty into master
2020-10-16 07:35:31 +05:30
Luflosi
f825345b14
Fix potential garbage pointer dereference
...
`create_os_window()` calls `get_window_content_scale()` without initializing the `xscale` and `yscale` variables. Instead of initializing them everywhere, where this function is called, just do it once in the function itself.
Found with the Clang Static Analyzer.
2020-10-15 20:41:16 +02:00
Kovid Goyal
1409477ed7
Merge branch 'double-free' of https://github.com/Luflosi/kitty into master
2020-10-15 19:11:31 +05:30
Luflosi
d8e4294432
Fix double free and memory leak
...
Found with the Clang Static Analyzer.
This is a copy & paste error. This bug was introduced in 72e2307c16 in Jul 2018.
2020-10-15 15:29:44 +02:00
Kovid Goyal
5d13908776
github actions CI updated to python 3.9
...
Pillow wheel currently not available for python 3.9. So tries to install
from source and fails on missing zlib. So install zlib in brew and make
it available via PKG_CONFIG_PATH. Apparently, this wont be necessary
after Pillow 8, but who knows.
2020-10-14 19:13:46 +05:30
Luflosi
2832a73285
GLFW: Wayland: Assume 96 DPI if physical size is <= 0
...
From upstream: 0ef149c8f2 .
2020-10-14 14:43:40 +02:00
Kovid Goyal
4152ed5809
Update changelog
2020-10-14 08:51:07 +05:30
Kovid Goyal
8a90ed70ee
Merge branch 'fix-upwards-selection-clearing' of https://github.com/Luflosi/kitty into master
2020-10-14 05:31:08 +05:30
Luflosi
e2646c08a5
Fix upwards selection not being cleared when lines change
...
When selecting text by dragging upwards, the "end" of the selection is above the "start". This causes the `selection_has_screen_line()` to never return `true` in this case.
In practice this bug causes the selection to not be cleared when the screen contents under the selection change if it was made by dragging upwards.
2020-10-13 21:40:03 +02:00
Kovid Goyal
7122ba820f
Fix eight bar unicode chars not being rendered at very small font sizes
...
Fixes #3025
2020-10-13 20:00:25 +05:30
Kovid Goyal
efca2658ea
Fix typing issues pointed out by updated mypy
2020-10-12 23:03:07 +05:30
Kovid Goyal
91a714947c
Fix encoding error when reporting capabilities for number of colors
2020-10-12 22:39:05 +05:30
Kovid Goyal
5d3ac649ba
Fix #3017
2020-10-08 17:39:44 +05:30
Kovid Goyal
6443e726a6
Add a note about how the query_terminal kitten works
2020-10-08 07:42:47 +05:30
Kovid Goyal
6a755bda45
A new kitten to easily query kitty for config values
2020-10-07 13:35:16 +05:30
Kovid Goyal
dab555ea3b
kittens: Dont discard pending input on startup
...
Fixes #3012
2020-10-06 16:39:00 +05:30
Kovid Goyal
a3bbad0060
Allow specifying the optional actions for tcsetattr
2020-10-06 16:30:23 +05:30
Kovid Goyal
73db717a0c
version 0.19.1
2020-10-06 14:03:25 +05:30
Kovid Goyal
f1552c8354
Avoid alias related complications with completion delegation for hyperlinked_grep
2020-10-06 13:53:41 +05:30
Kovid Goyal
fb87fc32f0
Fix a regression that caused a segfault when using scrollback_pager_history_size
...
Fixes #3011
2020-10-06 13:28:48 +05:30
Kovid Goyal
b04b0c670d
Fix #3010
...
Probably ancient version of Python
2020-10-06 12:09:47 +05:30
Kovid Goyal
b33845df8a
Update Changelog
2020-10-06 06:50:29 +05:30
Kovid Goyal
12c9d8d8f8
Delay load the ipaddress module
2020-10-06 06:50:17 +05:30
Kovid Goyal
fe97bbcbbf
Merge branch 'master' of https://github.com/Sighery/kitty into master
2020-10-06 06:45:05 +05:30
Sighery
10533c3eba
Hints kitten: validate IPs with ipaddress
...
On the initial commit of this feature, IPs were just matched with a
very simple regex that prioritised simplicity/readability over
accuracy.
This commit adds a postprocessor for ip matches that makes use of
Python's `ipaddress` in the standard library to validate all the IP
matches.
This way we don't need huge and complex regex patterns to match _and_
validate the IPs, and we can just use `ipaddress` to abstract us from
implementing all the validation logic into the regex pattern.
2020-10-05 20:11:25 +02:00
Sighery
b4415c90f9
Hints kitten: add support for IPs (v4 and v6)
...
It selects v4 and v6 IPs with a simple regex that doesn't actually
check for the validity of the IPs.
2020-10-05 20:11:22 +02:00
Kovid Goyal
2970bbdf6f
Update GA tags
...
Also auto gen docs if running publish only for website
2020-10-05 20:04:32 +05:30
Kovid Goyal
95a420534d
Remove the old asciidoc files
...
By now hopefully the kitty website is well established
2020-10-05 19:34:02 +05:30
Kovid Goyal
be56a21574
...
2020-10-05 19:33:09 +05:30
Kovid Goyal
3741a235fe
Merge branch 'patch-1' of https://github.com/Nudin/kitty into master
2020-10-05 19:28:22 +05:30
Michael F. Schönitzer
523b6c4c2d
Fix wrong kittenname in documentation
...
It's called `hyperlinked_grep` not `hyperlink_grep`.
2020-10-05 15:54:11 +02:00
Kovid Goyal
c3b2300310
Merge branch 'remove-outdated-check' of https://github.com/Luflosi/kitty into master
2020-10-05 18:16:06 +05:30
Luflosi
1c4a20d86f
Remove outdated Python version check
...
The Python version is already checked at the top of the file. That check was added in 81a58186c6 .
2020-10-05 14:41:07 +02:00
Kovid Goyal
f5af475012
Merge branch 'notification_fix' of https://github.com/nertpinx/kitty into master
2020-10-05 18:09:35 +05:30
Martin Kletzander
f149b74332
Fix repeated version notifications
...
Without this fix the file with the list of notifications looks like this:
```
0.19.0,1601899026.4373078,<built-in method count of Notification object at 0x7f8c582193b0>
```
which ends up notifying about a new version all the time.
2020-10-05 14:27:47 +02:00
Kovid Goyal
8cd51386cb
Fix some typos in the OSC 99 spec
2020-10-05 17:27:41 +05:30
Kovid Goyal
fb2cca88df
Merge branch 'pip3-in-ci' of https://github.com/Luflosi/kitty into master
2020-10-04 21:23:29 +05:30
Luflosi
031d4dc85a
Use pip3 instead of pip for CI
...
There was a warning when the CI executed the "macOS Brew" job:
```
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
```
To fix this, use pip3 instead of pip.
2020-10-04 17:47:41 +02:00
Kovid Goyal
bf66d1c0f5
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty into master
2020-10-04 21:13:48 +05:30
Luflosi
0edfa88755
Reduce the difference of GLFW to upstream
2020-10-04 17:34:51 +02:00
Kovid Goyal
dba1f3bcbc
Merge branch 'add-comment' of https://github.com/Luflosi/kitty into master
2020-10-04 21:01:12 +05:30
Luflosi
e204cc8f12
Add comment on how to call send_test_notification()
2020-10-04 17:23:50 +02:00
Kovid Goyal
9e3c60f43f
Make ancient gcc happy
2020-10-04 19:56:10 +05:30
Kovid Goyal
b03dd5b6b2
...
2020-10-04 18:43:59 +05:30
Kovid Goyal
2aa9886ebb
version 0.19.0
2020-10-04 18:42:21 +05:30
Kovid Goyal
225e52b8b9
Merge branch 're-add-deprecated-macos-notifications' of https://github.com/Luflosi/kitty into master
2020-10-04 18:16:09 +05:30
Luflosi
0ae1f9906f
macOS: re-add deprecated notification API
...
The new User Notifications Framework is only available on macOS 10.14 and above, while the old NSUserNotification API is deprecated in macOS 11 (Big Sur) and will probably be removed in the future.
This commit compiles a simple test program to see if the Framework is available and then uses either the new or the old API.
2020-10-04 13:32:28 +02:00
Kovid Goyal
a5918b50f8
Merge branch 'better-build-output-for-pipes' of https://github.com/Luflosi/kitty into master
2020-10-04 15:50:39 +05:30
Luflosi
fa0374ee61
Better build system output when stdout is not a tty
...
When piping the output of `setup.py` to another program, that program cannot usually deal with escape sequences well. To fix this, output the compilation progress on new lines instead of overwriting the current line.
2020-10-04 12:02:49 +02:00
Kovid Goyal
5b1e1aee3d
Merge branch 'flag-to-disable-lto' of https://github.com/Luflosi/kitty into master
2020-10-04 15:00:10 +05:30
Luflosi
3ba11d08fb
Add flag to disable LTO
...
Disabling Link Time Optimization is useful for Nix on Darwin because LTO is broken there and has been for a long time, see https://github.com/NixOS/nixpkgs/pull/19312 .
This is currently worked around in the Nix package with a patch that removes the lines that add -flto to the compiler flags.
2020-10-04 10:50:42 +02:00
Kovid Goyal
35d0f42d07
Add a note about creating self-signed app bundles
2020-10-04 08:25:58 +05:30
Kovid Goyal
f08f222337
Merge branch 'macos-notifications-add-subtitle' of https://github.com/Luflosi/kitty into master
2020-10-03 21:31:10 +05:30
Luflosi
7c4ad278d5
macOS: add ability to show subtitles in notifications
...
This used to be implemented before 4e3c6e52aa , 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
d3d2930bd2
typo
2020-10-01 20:19:14 +05:30
Kovid Goyal
b571c20acc
Clean up docs for --copy-env
2020-10-01 12:43:26 +05:30
Kovid Goyal
f6cc0302c4
Remove trailing whitespace
2020-10-01 08:34:14 +05:30
Kovid Goyal
d9abcf0c83
Merge branch 'launch-doc' of https://github.com/poliorcetics/kitty into master
2020-10-01 08:22:30 +05:30
Alexis Bourget
5346849439
Add example of remote_control use with launch --copy-env
2020-10-01 01:01:56 +02:00
Alexis Bourget
9742b0c5b1
Add docs precisions for launch and --copy-env
2020-09-30 20:40:14 +02:00
Alexis Bourget
41cfe26898
use :code: block for @... in --stdin-source doc
2020-09-30 20:31:04 +02:00
Kovid Goyal
05a254eee9
Merge branch 'simplify' of https://github.com/Luflosi/kitty into master
2020-09-28 16:20:01 +05:30
Luflosi
8ef53aa363
Remove unnecessary condition
...
According to the python documentation, `Py_CLEAR()` has no effect when the argument is `NULL`, see https://docs.python.org/3/c-api/refcounting.html#c.Py_CLEAR .
2020-09-28 12:21:23 +02:00
Kovid Goyal
470abc25e4
Changelog entry for hyperlinks with hints kitten
2020-09-25 21:02:27 +05:30
Kovid Goyal
7fe6c7e78b
Also handle EOFError
2020-09-25 18:58:03 +05:30
Kovid Goyal
6c8a4f8d9f
Handle SIGINT more gracefully
2020-09-25 18:55:43 +05:30
Kovid Goyal
2a8c8c0cbb
Fix #2980
2020-09-25 16:06:07 +05:30
Kovid Goyal
12bbe5459d
Allow selecting hyperlinks via the hints kitten
2020-09-24 13:21:15 +05:30
Kovid Goyal
e0d9e05fd4
Preserve rg exit code
2020-09-23 20:33:03 +05:30
Kovid Goyal
8bea61cb99
hyperlinked_grep: Ensure filename is always printed
...
Fixes hyperlinks not working when a single file is searched
2020-09-23 19:11:09 +05:30
Kovid Goyal
d09666aba9
Unicode input kitten: Add symbols from NERD font
...
These are mostly Private Use symbols not in any standard,
however they are common enough to be useful.
Fixes #2972
2020-09-22 19:47:39 +05:30
Kovid Goyal
48e0ba1d3d
Add a note about completion for the hyperlinked_grep kitten
2020-09-22 19:07:36 +05:30
Kovid Goyal
fb72be41f4
Add a test for serializing id less hyperlinks
2020-09-22 17:52:40 +05:30
Kovid Goyal
ef1db6d089
macOS: Add some keys to Info.plist to allow programs running inside kitty to access protected Cocoa APIs.
2020-09-22 16:32:40 +05:30
Kovid Goyal
9d4246a285
Output hyperlink markup when serializing as ANSI
2020-09-22 16:18:22 +05:30
Kovid Goyal
e0f5c39297
Get rid of unneeded malloc in as_text_generic
2020-09-22 09:57:45 +05:30
Kovid Goyal
e4d353b105
Ignore undecodeable bytes in pagerhist
...
Also add API to get pagerhist as bytes
2020-09-22 09:33:48 +05:30
Kovid Goyal
0d665495b8
Make getting hyperlinks from ids useable throughtout the codebase
2020-09-22 09:25:16 +05:30
Kovid Goyal
fdaf857885
Add more tests for pagerhist
2020-09-22 09:05:40 +05:30
Kovid Goyal
987b41d2cb
Implement rewrp for pagerhist using the streaming wcswidth
2020-09-21 19:05:23 +05:30
Kovid Goyal
444080f320
Make wcswidth useable in a streaming fashion
2020-09-21 15:55:22 +05:30
Kovid Goyal
b5007ba276
Store pager history in UTF-8
...
Reduces storage requirement by a fator of 4 at the cost of some CPU
usage, to encode to UTF-8
2020-09-21 12:29:10 +05:30
Kovid Goyal
bf19d2b156
Add some tests for the pagerhist code
2020-09-21 09:08:46 +05:30
Kovid Goyal
a78515e5bf
Remove the max size limit for line_as_ansi
...
Needed for output of hyperlinks, also more efficient, since avoids
malloc per line. Also fix pagerhist not having SGR reset at the start of
every line.
2020-09-20 11:26:59 +05:30
Kovid Goyal
581126c748
More powerful match criteria for fragments
2020-09-19 07:31:17 +05:30
Kovid Goyal
7b3e345a2a
Document the framework for customizing URL open actions
2020-09-18 21:33:30 +05:30
Kovid Goyal
cc7cefd3ed
Use unquoted path for filename and path matching
2020-09-18 21:11:39 +05:30
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
9efdfe0de4
Fix processing of non-string key actions
2020-09-18 20:41:31 +05:30
Kovid Goyal
f936918278
...
2020-09-18 19:46:49 +05:30
Kovid Goyal
00125577a9
Add a link to rg hyperlink issue
2020-09-18 19:36:43 +05:30
Kovid Goyal
083c47b0f0
A new kitten to easily search files and open the results at the matched line by clicking on them.
2020-09-18 19:33:51 +05:30
Kovid Goyal
8021686154
Merge branch 'fix-typo' of https://github.com/Luflosi/kitty into master
2020-09-18 17:24:00 +05:30
Luflosi
f55ca296da
Fix typo
2020-09-18 13:50:56 +02:00
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
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
e36d41b46f
Add a --hold option to icat
...
Keeps it alive after display images
2020-09-18 11:48:31 +05:30
Kovid Goyal
b4693dc1b3
Fix some lines in the scrollback buffer not being properly rendered after a window resize/font size change
...
Fixes #2619
2020-09-18 08:26:50 +05:30
Kovid Goyal
ca6010789e
Fix a memory leak when changing font sizes
...
had forgotten to free unused font groups
2020-09-18 07:40:30 +05:30
Kovid Goyal
f8a80ccf5f
Move the wcswidth functions out of screen.c
...
They have nothing to do with screens
2020-09-17 21:24:52 +05:30
Kovid Goyal
6461dccbdc
Make wcswidth ignore more escape codes
...
Needed to ignore OSC 8 hyperlinks since we will
eventually have to send those with SGR formatting to the hints
kitten.
2020-09-17 20:16:17 +05:30
Kovid Goyal
b06f4f2574
Use the correct type for png_row_bytes() result
2020-09-17 16:54:21 +05:30
Kovid Goyal
7695e3a9c8
Cleanup exit flow control for remote hostname not matching
2020-09-17 16:45:02 +05:30
Kovid Goyal
ae475b408f
oops
2020-09-17 16:45:02 +05:30
Kovid Goyal
6d9d048287
Verify hostname before acting on remote file URL
...
Fixes #2971
2020-09-17 16:45:02 +05:30
Kovid Goyal
09e4d101c5
DRYer
2020-09-17 16:45:02 +05:30
Kovid Goyal
36340caf4c
Fix URL marking + scrolling
...
The ranges have to use on screen line numbers not line->ynum
Fixes #2969
2020-09-17 16:44:10 +05:30
Kovid Goyal
9a80ab0700
More robust
2020-09-17 10:42:30 +05:30
Kovid Goyal
339d972d8d
Use INT_MAX rather than self->lines + 10
...
More likely to never co-incide
2020-09-17 10:41:13 +05:30
Kovid Goyal
6d1e1030bd
...
2020-09-17 10:37:14 +05:30
Kovid Goyal
8a3665ce55
Add links to some modern terminal feature specs
2020-09-17 10:25:37 +05:30
Kovid Goyal
8351f0beab
Fix #2970
2020-09-17 09:34:22 +05:30
Kovid Goyal
c26808c59e
Fix #2967
2020-09-17 09:30:30 +05:30
Kovid Goyal
50b1dfc746
Fix #2968
2020-09-16 22:30:13 +05:30
Kovid Goyal
2ec8ec2327
Add a note about nested SSH sessions not being supported
...
Fixes #2971
2020-09-16 08:36:08 +05:30
Kovid Goyal
168480b0ee
Docs for the remote file kitten
2020-09-15 18:16:45 +05:30
Kovid Goyal
58f78afc2e
Assume localhost is always local
...
Required by the spec
2020-09-15 16:19:27 +05:30
Kovid Goyal
d60020f5ac
Allow copying hyperlink URL to clipboard
2020-09-15 13:23:31 +05:30
Kovid Goyal
437efe5473
Allow using the ask kitten to pick a choice
2020-09-15 12:39:07 +05:30
Kovid Goyal
5737904cec
Next release will be 0.19.0
2020-09-15 11:53:34 +05:30
Kovid Goyal
431a8af08b
Add changelog entry for hyperlinks support
...
Fixes #68
2020-09-15 10:35:46 +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
Kovid Goyal
0a027fad9a
Allow asking for confirmation before opening hyperlinks
2020-09-15 10:26:05 +05:30
Kovid Goyal
e21a8e3cc2
Implement save as action for remote file kitten
2020-09-15 09:28:59 +05:30
Kovid Goyal
4279d6514d
Fix path completion for ~ paths
2020-09-15 09:22:24 +05:30
Kovid Goyal
457db5994b
Fix coloring of links using target
2020-09-15 09:14:44 +05:30
Kovid Goyal
71c942d290
Add colors to the path completer
2020-09-14 22:19:56 +05:30
Kovid Goyal
ee5bc8523b
Fix input redisplay when cursor not at end
2020-09-14 20:15:36 +05:30
Kovid Goyal
70f4112643
...
2020-09-14 20:15:30 +05:30
Kovid Goyal
174f6b7ea8
Start work on a path completion implementation
2020-09-14 19:58:36 +05:30
Kovid Goyal
b14fb6f3c4
Implement editing of remote files
2020-09-12 18:43:04 +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
e6839b45e3
typo
2020-09-10 11:57:41 +05:30
Kovid Goyal
229134cf31
Misc. fixes for issues reported by clang's static analyzer
...
Most of them are false positives. A couple of mem leaks after unlikely
failure conditions.
2020-09-10 10:47:28 +05:30
Kovid Goyal
b552173185
Start work on special handling for remote file hyperlinks
2020-09-10 10:47:28 +05:30
Kovid Goyal
399a1f8fee
Add an option to disable OSC 8
2020-09-10 10:47:28 +05:30
Kovid Goyal
9293d9b0ed
Add some tests for hyperlink marking
2020-09-10 10:47:28 +05:30
Kovid Goyal
4a75952fc7
Implement marking of hyperlinks
2020-09-10 10:47:27 +05:30
Kovid Goyal
c19906eb87
Fix read overflow reported by ASAN
2020-09-10 10:47:27 +05:30
Kovid Goyal
00ea189074
Infrastructure to support multiple selection ranges
...
Needed for hyperlinks, that can be discontinuous
2020-09-10 10:47:27 +05:30
Kovid Goyal
c8e2061e2a
Move hyperlink to end of hash table when re-referenced
2020-09-10 10:47:27 +05:30
Kovid Goyal
78dc93721d
Add tests for hyperlink storage
2020-09-10 10:47:27 +05:30
Kovid Goyal
33beecddda
Implement storage of URLs in a hash map
2020-09-10 10:47:27 +05:30
Kovid Goyal
e99d93ca30
Implement parsing of OSC 8
...
Also start work on storing hyperlinks with cells
2020-09-10 10:47:24 +05:30
Kovid Goyal
0cc54484a4
Add a note about using the scrollback pager history for large scrollbacks
2020-09-09 12:17:19 +05:30
Kovid Goyal
4df7d59de0
...
2020-09-09 10:18:56 +05:30
Kovid Goyal
9a54da84dc
Add a setting tab_activity_symbol
...
Fixes #2515
2020-09-08 21:54:56 +05:30
Kovid Goyal
83315f7999
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty into master
2020-09-08 17:45:04 +05:30
Luflosi
eb5ebfd304
GLFW: Fix typo in GLFWwindowmaximizefun documentation
...
From upstream: 1ed1489831 .
2020-09-08 12:57:00 +02:00
Kovid Goyal
77c9124a3d
Merge branch 'gwl/fix-move_window_to_top-183' of https://github.com/gregorlarson/kitty into master
2020-09-08 08:38:18 +05:30
Kovid Goyal
317da76ced
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty into master
2020-09-08 07:46:13 +05:30
Luflosi
e8d8ced006
GLFW: Null: Fix out parameters not being set
...
From upstream: cd0dc76c7c .
2020-09-07 21:26:02 +02:00
Gregor Larson
0321f9bddf
tabs.py::move_window_to_top fix
2020-09-07 14:01:56 -04:00
Kovid Goyal
5937892ebc
Move focus tracking into the Screen object
2020-09-07 09:31:44 +05:30
Kovid Goyal
e429bea2f4
Move new features to the top of the changelog
2020-09-06 12:44:26 +05:30
Kovid Goyal
d33ad5c616
typo
2020-09-06 12:43:17 +05:30
Kovid Goyal
3e0614a293
Fix a regression that broke kitten_alias
...
Fixes #2952
2020-09-06 12:15:46 +05:30
Kovid Goyal
80e39212b8
Linux: Fix automatic detection of bold/italic faces for fonts such as IBM Plex Mono and have the regular face with a full name that is the same as the family name
...
Fixes #2951
2020-09-03 17:14:55 +05:30
Kovid Goyal
d7a6ceb3a6
Add character cell diagonals to box_chars
2020-09-03 13:51:54 +05:30
Kovid Goyal
9d3a9e9d1e
Add the half triangle box chars
2020-09-03 11:22:36 +05:30
Kovid Goyal
e95c789d4b
Add the block elements to box_chars
...
Also use a single eight_bar function for all blocks
2020-09-03 10:56:06 +05:30
Kovid Goyal
a508161265
Add smooth mosaic chars to box drawing
2020-09-02 22:00:58 +05:30
Kovid Goyal
a935c80adc
Use box drawing for sextants
...
See the Symbols for Legacy Computing section in the Unicode standard
https://www.unicode.org/charts/PDF/U1FB00.pdf
2020-09-01 19:40:39 +05:30
Kovid Goyal
1d607bf13e
Fix #2943
2020-08-30 20:42:01 +05:30
Kovid Goyal
ad57467c93
Avoid exception when generating minimal borders for empty tab in tall/vertical layouts
2020-08-30 20:41:57 +05:30
Kovid Goyal
430eaefc3e
If a border width in pts is non-zero have it result in a minimum 1px border
...
Change the default to 0.5pt instead of 1px
2020-08-30 15:26:37 +05:30
Kovid Goyal
3d60724651
Allow specifying border sizes in either pt or px
...
Change the default to 1px borders as this works best with the new minimal border style.
2020-08-30 14:17:47 +05:30
Kovid Goyal
31d9f663fc
Simplify border drawing code
2020-08-30 14:05:43 +05:30
Kovid Goyal
f324697c7c
Implement new minimal border style for tall layout
2020-08-30 13:49:34 +05:30
Kovid Goyal
befae7e677
Make borders code for vertical layout re-usable
2020-08-30 11:32:45 +05:30
Kovid Goyal
7a2c2587ba
Use new minimal borders style for vertical layouts
2020-08-30 09:17:14 +05:30
Kovid Goyal
cf3f9d68b3
Use similar border drawing techniques for splits
2020-08-30 08:37:16 +05:30
Kovid Goyal
c99f7c554f
Fix unfocused windows in which a bell occurs not changing their border color to red until a relayout
2020-08-29 18:12:17 +05:30
Kovid Goyal
f01c0945da
Fix mypy failing
2020-08-29 18:08:32 +05:30
Kovid Goyal
1bcd0c4471
Merge branch 'docs-kitten-example-mouse-buttons' of https://github.com/trygveaa/kitty into master
2020-08-29 18:06:55 +05:30
Trygve Aaberge
07f28e6ec7
Don't use GLFW buttons in custom kitten example
...
Since send_mouse_event now uses the same numbers as X11 for buttons
instead of the same numbers as GLFW, it is misleading to use the GLFW
constants. I forgot to change this example in commit 8efe08c4 .
2020-08-29 13:33:34 +02:00
Kovid Goyal
7074f9f776
Grid layout: Improve rendering of borders when using minimal borders
2020-08-29 15:53:14 +05:30
Kovid Goyal
5029a9ad5a
Dont use wheel_scroll_multiplier when sending scroll events in the main screen
2020-08-28 08:14:49 +05:30
Kovid Goyal
0bff30e954
Send wheel events to program when it asks to grab mouse, even in main screen
...
This matches behavior of other terminals and I dont have a strong
preference either way. Fixes #2939
2020-08-27 21:48:41 +05:30
Kovid Goyal
601d37aa3d
Avoid malloc+copy for unknown OSC codes
2020-08-24 20:14:16 +05:30
Kovid Goyal
e2b1ca10c9
Save a line :P
2020-08-24 12:08:09 +05:30
Kovid Goyal
11942ed6dc
Fix compilation on OpenBSD
...
Fixes #2935
2020-08-24 12:05:39 +05:30
Kovid Goyal
f65914599b
Remove unreachable code
2020-08-23 10:53:47 +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
f4ddaacb3c
Allow tracking focus change events in watchers
...
Fixes #2918
2020-08-23 08:51:04 +05:30
Kovid Goyal
db64aef666
Prevent an infinite recursion if a watcher causes a resize in the on_resize handler
2020-08-23 08:38:25 +05:30
Kovid Goyal
95c8bbd7fb
Forgot to increment token
2020-08-22 14:37:51 +05:30
Kovid Goyal
67b4f37d53
...
2020-08-22 11:38:05 +05:30
Kovid Goyal
427288c16b
Add a tmux FAQ
...
So I can just point to it for all the spurious tmux caused bug reports
2020-08-22 11:36:01 +05:30
Kovid Goyal
4202eee084
Fix launcher on OpenBSD
...
OpenBSD has apparently refused to move into the 21st century and lacks a
way of determining path to the executable. So we use a kludge, looking
for kitty in PATH and using that. To make it work, simply put a symlink
to kitty somewhere in PATH. Fixes #2675
2020-08-22 09:12:50 +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
cd76d109f5
Fix a couple of documentation build warnings
2020-08-21 07:50:35 +05:30
Kovid Goyal
2787f9f19b
Drain the notifications queue in FIFO
2020-08-20 14:25:07 +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
ae5ceedfe9
Allow kitty to build on Big Sur
2020-08-19 20:33:14 +05:30
Kovid Goyal
022e2eb1db
Allow updaing on ox with signed/notarized app easily
2020-08-19 20:08:34 +05:30
Kovid Goyal
2fe1ef4774
Mappable function to easily send test notification
2020-08-19 16:45:51 +05:30
Kovid Goyal
70afb2dd4d
Fix lib names for OpenSSL 1.1
2020-08-19 12:33:54 +05:30
Kovid Goyal
efa02e3f94
Bump versions of openssl and glib
2020-08-18 21:25:00 +05:30
Kovid Goyal
5eefd41059
Add support for displaying correct colors with PNG files that contain embedded ICC color profiles
2020-08-12 10:34:16 +05:30
Kovid Goyal
6ca1b7c240
Convenience command to upload CI bundles
2020-08-12 10:30:15 +05:30
Kovid Goyal
31191fd48c
Log warnings from libpng when debug rendering is on
2020-08-12 06:21:14 +05:30
Kovid Goyal
a6ed54ed48
Image display: Render PNG images with correct colors that have a gamma value different from the sRGB gamma value set in their metadata
2020-08-11 22:52:50 +05:30
Kovid Goyal
95132b4fe1
formatting
2020-08-11 20:19:29 +05:30
Kovid Goyal
df0c5d99e6
Fix #2913
2020-08-11 20:13:50 +05:30
Kovid Goyal
4b0724530e
Fix #2912
2020-08-11 14:19:32 +05:30
Kovid Goyal
e5681a93f9
version 0.18.3
2020-08-11 13:38:38 +05:30
Kovid Goyal
fb838a694e
...
2020-08-11 13:08:16 +05:30
Kovid Goyal
8c6f188767
Forgot to use " for key names
2020-08-11 13:01:33 +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
514073cb75
Fix #2911
2020-08-11 07:52:32 +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
817f0997cf
Fix one pixel mis-alignment of rounded corners when either the cell dimensions or the thickness of the line is an odd number of pixels
...
The control points of the Bezier curve and the spread due to thickness
must match up with the values used to draw straight lines. In order to
ensure that, one calculates them before upscaling by the super sampling
factor, rather than after. Fixes #2907
2020-08-10 17:28:08 +05:30
Kovid Goyal
1d651270d3
Merge branch 'weechat-hints-kitten' of https://github.com/GermainZ/kitty into master
2020-08-07 21:55:51 +05:30
GermainZ
6ea58fac1a
Add link to weechat-hints kitten
2020-08-07 17:38:38 +02:00
Kovid Goyal
c7eb63d4ff
Avoid extra layer update if clearing images has no effect
2020-08-07 09:36:28 +05:30
Kovid Goyal
4062365b19
Revert "Adjust cell height automatically for buggy fonts that draw brackets outside the bounding box"
...
This reverts commit 5555a66638 .
Since it does not fix the issue.
2020-08-06 21:20:54 +05:30
Kovid Goyal
7f48a927de
Fix image leaving behind a black rectangle when switching away and back to alternate screen
...
layer_dirty was being reset if remove_images was called more than once
without an intervening call to update_layers.
Fixes #2901
2020-08-06 19:33:28 +05:30
Kovid Goyal
4a740cc556
Cleanup
2020-08-06 18:14:56 +05:30
Kovid Goyal
628b92f20b
Speed up is_ignored_char in the common case
2020-08-06 18:05:33 +05:30
Kovid Goyal
8f9616c230
Speed up wcwidth_std in the common case
2020-08-06 17:57:57 +05:30
Kovid Goyal
df475dfde5
Fix indentation
2020-08-06 17:55:02 +05:30
Kovid Goyal
a835b56a51
Speed up is_combining_char() in the common case
2020-08-06 17:45:40 +05:30
Kovid Goyal
5555a66638
Adjust cell height automatically for buggy fonts that draw brackets outside the bounding box
...
See https://github.com/cormullion/juliamono/issues/14
2020-08-06 14:06:06 +05:30
Kovid Goyal
dad355b932
oops
2020-08-05 11:06:24 +05:30
Kovid Goyal
90a097d45c
Ensure beep works even very soon after startup
2020-08-05 11:04:07 +05:30
Kovid Goyal
dba01bc014
Make ringing bell not dependent on having a OSWindow
2020-08-05 10:58:00 +05:30
Kovid Goyal
1d0a3ce998
Merge branch 'master' of https://github.com/ayang64/kitty into master
2020-08-05 07:46:27 +05:30
Ayan George
076ad850bb
Declare _glfwPlatformInitJoysticks() to return bool
...
This patch declares _glfwPlatformInitJoysticks() to return bool which
matches its prototype in glfw/internal.h.
2020-08-04 20:24:35 -04:00
Kovid Goyal
868546abe4
Fix #2896
2020-08-03 22:14:13 +05:30
Kovid Goyal
6b421fabd1
Wayland: Fix a typo in the previous release that broke reading mouse cursor size
...
Fixes #2895
2020-08-03 17:08:08 +05:30
Kovid Goyal
ab3c9658bd
Add hunter to integrations
2020-08-03 09:05:04 +05:30
Kovid Goyal
8c7886d429
Add a changelog entry for the last PR
2020-08-03 09:00:19 +05:30
Kovid Goyal
110a3e7e0f
Merge branch 'master' of https://github.com/jaeheum/kitty into master
2020-08-03 08:58:24 +05:30
Jay Han
ee0b70f51b
allow users to choose hint colors
2020-08-02 15:33:17 -07:00
Kovid Goyal
df48061a8f
Merge branch 'master' of https://github.com/wengxt/kitty into master
2020-08-01 07:30:09 +05:30
Weng Xuetian
b1387d50f0
Register to bus when connect to ibus.
...
This is required when the actual dbus is not from ibus but session bus.
This may happen when other run a shim layer for ibus, or ibus is
running with flatpak mode.
2020-07-31 17:54:10 -07:00
Kovid Goyal
73dd218a95
Merge branch 'with-suppress' of https://github.com/Luflosi/kitty into master
2020-07-31 21:36:02 +05:30
Luflosi
ee4cedcc81
Use "with suppress()" to suppress a python exception
2020-07-31 18:00:01 +02:00
Kovid Goyal
d1b2f9c6a9
Dont use SystemExit if kitty exe not found
2020-07-31 20:03:04 +05:30
Kovid Goyal
40dee44978
Merge branch 'kitty-exe-error-message' of https://github.com/Luflosi/kitty into master
2020-07-31 20:02:15 +05:30
Luflosi
db04c70d4a
Let kitty_exe() raise an error message if kitty could not be found
2020-07-31 15:46:47 +02:00
Kovid Goyal
7401c6ac97
Merge branch 'dryer' of https://github.com/Luflosi/kitty into master
2020-07-31 16:38:23 +05:30
Luflosi
f7a1222cc3
DRYer
2020-07-30 22:11:41 +02:00
Kovid Goyal
069f09c43c
Move wlc destructor to just before the functions are unloaded
2020-07-29 17:18:03 +05:30
Kovid Goyal
35f821f6a1
Ensure wl_cursor_theme_destroy is called before it is released
...
Fix #2884
2020-07-29 17:13:00 +05:30
Kovid Goyal
67f60847ee
Fix the spawn test in the bypy environment
...
Required the launcher to be built since the pre-built
one was being used. Fixes #2881
2020-07-29 15:11:35 +05:30
Kovid Goyal
65f6b142a5
typo
2020-07-28 15:22:14 +05:30
Kovid Goyal
81bda736d8
Skip multiprocessing spawn monkeypatch test on 32bit
2020-07-28 14:15:31 +05:30
Kovid Goyal
ec3998a9b8
version 0.18.2
2020-07-28 14:01:16 +05:30
Kovid Goyal
01be77e0bc
Fix change in window size that does not change number of cells not being reported to the kernel
...
Fixes #2880
2020-07-25 22:49:39 +05:30
Kovid Goyal
6f40b8d0a1
Simplify Wayland cursor theme handling
...
Now themes are loaded once per scale and stored centrally not per
window. They are not unloaded till application shutdown. Since there
is unlikely to be more than two or three scales this is not a big waste
of resources. Since cursor lifetime is tied to theme lifetime and cursors
are stored per window, destroying a theme requires destroying all
cursors win all windows referring to that theme, which is too much work.
Should hopefully fix #2810
2020-07-25 15:36:46 +05:30
Kovid Goyal
a083aa04b2
vim also produces CSI > 4;m ignore that as well
2020-07-24 19:19:18 +05:30
Kovid Goyal
1f33348cf6
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-07-24 15:10:35 +05:30
Luflosi
a45651933c
GLFW: Cocoa: Support some sim page joystick elements
...
From upstream: 0d355379e0 .
2020-07-24 11:28:53 +02:00
Kovid Goyal
ab57fbff73
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-07-24 14:56:54 +05:30
Luflosi
6b3f774f05
GLFW: Cocoa: Fix potential leak of CFNumber object
...
From upstream: a2674a9034 .
2020-07-24 10:59:04 +02:00
Kovid Goyal
1ef2880c6c
Also make the platform window id available via kitty @ ls
2020-07-24 08:47:13 +05:30
Kovid Goyal
ace152d8a3
DRYer
2020-07-24 08:41:55 +05:30
Kovid Goyal
8d08036a9d
Update changelog for previous PR
2020-07-24 08:35:01 +05:30
Kovid Goyal
b0876fae64
Merge branch 'cocoa-window-number' of https://github.com/eraserhd/kitty
2020-07-24 08:33:16 +05:30
Kovid Goyal
01633776d3
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-07-24 08:26:18 +05:30
Jason Felice
e4202228eb
Update fast_data_types.pyi
2020-07-23 19:09:16 -04:00
Jason Felice
79d5049273
Provide cocoa_window_id() on non-Mac, also
...
So that its import in tabs.py doesn't have to be conditional.
2020-07-23 18:55:04 -04:00
Jason Felice
9120e3b790
Reorganize window id functions slightly
2020-07-23 18:47:36 -04:00
Jason Felice
974e6140b3
Extract find_os_window()
2020-07-23 18:36:32 -04:00
Jason Felice
1fd338cc6c
Set Cocoa window number
2020-07-23 18:36:32 -04:00
Luflosi
bc61a81d7a
GLFW: X11: Fix joystick detection before joystick init
...
From upstream: c01acc267a .
2020-07-23 23:57:03 +02:00
Luflosi
06b30d1cc3
GLFW: Cleanup
...
From upstream: f771d41292 .
2020-07-23 23:56:32 +02:00
Luflosi
785973bb5e
GLFW: Make joystick platform code init on demand
...
From upstream: 782e6b6cef .
2020-07-23 23:56:30 +02:00
Luflosi
78efefcea1
Revert "Linux: Fix slow startup on some systems caused by GLFW searching for joysticks. Since kitty does not use joysticks, disable joystick support."
...
This reverts commit ab960ea12d .
2020-07-23 23:56:21 +02:00
Kovid Goyal
1bb6242020
macOS: no longer render emoji 20% below the baseline. This causes some emoji to be cut-off and also look misaligned with very high cells
...
Fixes #2873
2020-07-23 20:38:02 +05:30
Kovid Goyal
1af426bf84
Add support for legacy DECSET codes 47, 1047 and 1048
...
Fixes #2871
2020-07-22 09:00:51 +05:30
Kovid Goyal
dc4762a69a
Dont crash if Wayland returns a cursor image array with some null images
2020-07-21 19:33:05 +05:30
Kovid Goyal
a785b77da9
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-07-19 09:27:44 +05:30
Luflosi
1342767805
GLFW: Wayland: Fix scroll offsets being inverted
...
From upstream: f760b124ca .
This commit does not actually change any behaviour, it merely makes the code style of the two lines more similar to the new upstream code.
2020-07-18 19:32:03 +02:00
Kovid Goyal
a3fc3233cd
Fix pre-edit text not always being cleared with iBus input
...
Fixes #2862
2020-07-18 19:31:38 +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
9d9ec84b54
fix talk mutex typo unlock -> lock
2020-07-18 11:47:22 +05:30
Kovid Goyal
6b26088c27
move wakeup out of locked region
2020-07-18 11:42:57 +05:30
Kovid Goyal
43af715caa
free peer message queue at shutdown
2020-07-18 10:50:09 +05:30
Kovid Goyal
c6eea488b1
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-07-18 09:24:01 +05:30
Luflosi
b1c3999a81
GLFW: Wayland: Fix partial framebuffer size retrieval
...
From upstream: 5f60c22cfa .
2020-07-17 21:10:32 +02:00
Kovid Goyal
4f19403518
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-07-17 19:48:06 +05:30
Luflosi
4d1b537f78
GLFW: Documentation work for GLFW_MOUSE_PASSTHROUGH
...
From upstream: a122d91303 .
2020-07-17 00:08:22 +02:00
Luflosi
dd54db47a9
GLFW: Move mouse passthrough before window showing
...
From upstream: dfeacee000 .
2020-07-17 00:07:36 +02:00
Luflosi
44775e4644
GLFW: Remove no-op call at window creation
...
From upstream: 1095a43708 .
2020-07-16 23:55:24 +02:00
Luflosi
805921d6a3
GLFW: Move management of shared state to shared code
...
From upstream: 6d2003d07a .
2020-07-16 23:54:16 +02:00
Luflosi
d7cd6edaa5
GLFW: X11: Include X Shape extension headers
...
From upstream: 68e4261d73 .
2020-07-16 23:50:26 +02:00
Luflosi
6a472bd6da
GLFW: X11: Fix disabling of GLFW_MOUSE_PASSTHROUGH
...
From upstream: e81d381256 .
2020-07-16 23:24:48 +02:00
Luflosi
d0c6ce9fd7
GLFW: Add support for mouse input transparency
...
From upstream: d285a9fdeb .
2020-07-16 22:25:12 +02:00
Kovid Goyal
df48e2f9e2
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-07-16 23:43:07 +05:30
Luflosi
2b4b3bbf18
GLFW: Null: Fix typos in workarea retrieval
...
From upstream: 6c031af245 .
2020-07-16 20:01:57 +02:00
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
ff763b099e
Merge branch 'patch-1' of https://github.com/tammersaleh/kitty
2020-07-16 08:06:47 +05:30
Kovid Goyal
741ae4c04b
Merge branch 'typo' of https://github.com/Luflosi/kitty
2020-07-16 08:06:20 +05:30
Tammer Saleh
d84ec941c0
Fix typo
2020-07-15 17:44:02 -07:00
Luflosi
f0b5dd9799
Fix typo
2020-07-15 19:09:35 +02:00
Kovid Goyal
cec4371b51
Rewrite the talk loop for interaction with peers
...
The new code is simpler and hopefully more robust. Supports
multiple requests/responses. Fixes #2852
2020-07-15 14:31:45 +05:30
Kovid Goyal
c0ff39c59d
Fix extra close for loops with no signal_read_fd
2020-07-14 20:23:45 +05:30
Kovid Goyal
022634f2d9
Log an extra error message
2020-07-14 20:18:38 +05:30
Kovid Goyal
392f576d07
Instrument safe_close() to make it easy to see where an fd is closed from
2020-07-14 20:18:04 +05:30
Kovid Goyal
6d59e2125e
Prevent invalid fds from spinning the talk thread forever
2020-07-14 19:09:04 +05:30
Kovid Goyal
6476a1d2e0
When a character from the Unicode Dingbat block is followed by a space, use the extra space to render a larger version of the character
...
Fixes #2850
2020-07-12 21:12:34 +05:30
Kovid Goyal
ca998fb4b0
Fix incorrect centering when a PUA or symbol glyph is followed by more than one space
2020-07-12 20:16:16 +05:30
Kovid Goyal
48631c4ea6
Add changelog entry for previous merge
...
Also clean up use of typing.cast
2020-07-12 14:47:14 +05:30
Kovid Goyal
294be2a772
Merge branch 'neighboring_window_changes' of https://github.com/juho-p/kitty
2020-07-12 14:33:21 +05:30
Kovid Goyal
533688a67a
Implement support for box drawing rounded-corners characters
...
Fixes #2240
2020-07-12 12:35:52 +05:30
Kovid Goyal
4309e2371d
Simplify code by using supersampling for diagonal lines as well
...
Wu antialiasing obviously performs better but since characters are
rendered only once and are very small in pixel size, performance is
irrelevant here.
2020-07-12 10:07:55 +05:30
Juho Peltonen
ea30c84240
Fix grid layout neighbors
...
Grid layout can have multiple neighbors in one side when either current
column or neighboring column is special.
2020-07-11 23:52:37 +03:00
Juho Peltonen
d4c2b13dda
Prefer most recently activated window when selecting neighbors
...
This affects both activating and moving neighbor windows.
2020-07-11 23:52:33 +03:00
Juho Peltonen
1decae2938
Change splits layout neighbors to only include real neighbors
2020-07-11 21:35:29 +03:00
Kovid Goyal
145ec86d3b
Forgot to add supersampling to rendering of filled D
2020-07-11 23:10:43 +05:30
Kovid Goyal
e17c96b20f
Improve anti-aliasing of triangular box drawing characters, noticeable on low-resolution screens
...
Fixes #2844
2020-07-11 23:08:28 +05:30
Kovid Goyal
2cfcefd9eb
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-07-11 22:57:53 +05:30
Luflosi
356e950122
X11: Fix cursor hover query retry behavior
...
From upstream: 49dbcfcb8c .
2020-07-11 18:59:28 +02:00
Kovid Goyal
64dee63b73
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-07-11 22:26:32 +05:30
Luflosi
431d013d32
X11: Fix race in window hovered query
...
From upstream: ceb20c7f97 .
2020-07-11 18:18:33 +02:00
Kovid Goyal
40eb8455d0
Fix `launch --location=last` not working
...
Fixes #2841
2020-07-09 22:29:24 +05:30
Kovid Goyal
c46b36509b
macOS: Fix cmd+plus not increasing font size with keyboards where the + key is a shifted key. Fixes #2839
2020-07-09 22:14:07 +05:30
Kovid Goyal
f7ff63132d
Merge branch 'remove-trailing-whitespace' of https://github.com/Luflosi/kitty
2020-07-09 07:42:02 +05:30
Luflosi
e17036a7a5
Remove trailing whitespace
2020-07-09 01:57:39 +02:00
Kovid Goyal
e678c41f56
More code scanning warning fixes
2020-07-07 10:24:57 +05:30
Kovid Goyal
ee3462592a
Silence more code scanning warnings
2020-07-07 10:01:38 +05:30
Kovid Goyal
521f921424
Fix a bunch of code scanning warnings
2020-07-07 09:52:59 +05:30
Kovid Goyal
ee47a10b37
Simplify code a bit
2020-07-07 09:44:51 +05:30
Kovid Goyal
b81700144d
Silence another code scanning warning
2020-07-07 09:38:33 +05:30
Kovid Goyal
9f28dd61d3
Silence a spurious code scanning warning
...
I hope it silences it anyway
2020-07-07 09:31:00 +05:30
Kovid Goyal
dad7d366b3
Fix out of bounds write on platforms where sizeof(bool) != 1
...
Found by code scanning
2020-07-07 09:25:14 +05:30
Kovid Goyal
209b78a3ec
Silence a code scanning warning
2020-07-07 09:20:59 +05:30
Kovid Goyal
17f34d1f95
Use the more secure localtime_r variant
...
Pointed out by code scanning
2020-07-07 09:20:27 +05:30
Kovid Goyal
26699cd9ef
Fix incorrect format specifier to printf
...
Detected by code scanning
2020-07-07 09:14:33 +05:30
Kovid Goyal
907db09a58
Only use pythonLocation if it is available
2020-07-07 08:57:50 +05:30
Kovid Goyal
d506fa0565
Use python3 in code analysis build step
2020-07-07 08:41:20 +05:30
Kovid Goyal
de1a0d48a6
Use ci script to build kitty for code scanning
2020-07-07 08:35:04 +05:30
Kovid Goyal
a20e5fefd3
...
2020-07-07 08:27:10 +05:30
Kovid Goyal
44558560f9
Dont use autobuild for code scanning
2020-07-07 08:24:37 +05:30
Kovid Goyal
677f154f03
Create codeql-analysis.yml
...
Enable GitHub code scanning for vulnerabilities
2020-07-07 08:21:14 +05:30
Kovid Goyal
0adaf064e7
Fix #2832
2020-07-05 07:34:11 +05:30
Kovid Goyal
3c828feef2
Merge branch 'environmenterror-to-oserror' of https://github.com/Luflosi/kitty
2020-07-02 08:29:27 +05:30
Kovid Goyal
4d3c5e61fd
Update changelog
2020-07-02 08:26:37 +05:30
Kovid Goyal
67baefb52a
Merge branch 'hints-linenum-expand-home' of https://github.com/trygveaa/kitty
2020-07-02 08:23:59 +05:30
Trygve Aaberge
d509a4fa8c
Expand ~ in the path argument for linenum in hints
...
Fixes #2822
2020-07-02 01:01:14 +02:00
Luflosi
cad1c12b7b
Replace EnvironmentError with OSError
...
See 527ff0238a .
2020-07-01 22:39:01 +02:00
Kovid Goyal
9f751d8715
Add kitti3 to integrations.rst
2020-06-30 08:15:16 +05:30
Kovid Goyal
cf8a1dff33
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-06-30 08:13:27 +05:30
Luflosi
973d98457f
EGL: Add support for EGL_ANGLE_platform_angle
...
From upstream: 0dea8a4441 .
2020-06-30 00:34:32 +02:00
Kovid Goyal
ce262f810d
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-06-29 19:13:34 +05:30
Luflosi
bd31c2b484
Add GLFW_CONTEXT_DEBUG window hint alias
...
From upstream: b420ca7404 .
2020-06-29 15:30:38 +02:00
Kovid Goyal
ef0e610802
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-06-29 18:45:19 +05:30
Luflosi
3040d4c83f
Re-word docs for GLFW_OPENGL_DEBUG_CONTEXT attrib
...
From upstream: 4e3b43383a .
2020-06-29 11:43:24 +02:00
Kovid Goyal
c9252e8639
When erasing in display upto cursor, the line containing the cursor should be marked as not continued.
...
Also add some tests for the action of ED on continued flags
2020-06-29 14:29:03 +05:30
Kovid Goyal
e2e701460b
Fix the CSI J (Erase in display ED) escape code not removing line continued markers
...
Fixes #2809
Remains to write tests for this.
2020-06-29 14:17:40 +05:30
Kovid Goyal
f0c3641ebd
Some more commands for replay commands
2020-06-29 13:04:10 +05:30
Kovid Goyal
025f6d7701
Add keypad mode support to replay commands
...
Also name the constants correctly
2020-06-29 12:46:34 +05:30
Kovid Goyal
c68516ca8d
Wayland: Fix a crash when using animated mouse cursors
...
Fixes #2810
2020-06-29 08:03:25 +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
fd3a4536e7
Fix imperative close request being ignored in absence of any other activity
2020-06-26 16:37:17 +05:30
Kovid Goyal
75caafb5ac
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-06-26 16:34:33 +05:30
Kovid Goyal
cf2f8165eb
Only ask application to abort once
2020-06-26 16:33:25 +05:30
Luflosi
a2f80740d7
Remove EGL and OSMesa struct member macros
...
From upstream: bcb8558189 .
2020-06-26 12:51:11 +02:00
Kovid Goyal
c7703791d1
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-06-26 16:19:04 +05:30
Luflosi
c39e9e9c61
EGL: Add support for EGL_EXT_platform_base
...
From upstream: aec9fae8f3 .
2020-06-26 12:39:17 +02:00
Kovid Goyal
713059319c
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-06-26 15:59:34 +05:30
Luflosi
d7a7509da6
EGL: Replace native handle macros with functions
...
From upstream: d7f7b0e1b5 .
2020-06-26 12:17:13 +02:00
Kovid Goyal
57e6e7b2c5
Use ctrl+[] for changing tabs in unicode input as ctrl+tab is taken on macOS
...
ctrl+tab remains in addition for backwards compat
2020-06-26 12:29:42 +05:30
Kovid Goyal
d675977f10
Better error message for xterm specific key resource CSI codes that vim has started emitting
2020-06-25 23:07:34 +05:30
Kovid Goyal
7ef911e17d
Fix #2798
2020-06-25 21:43:54 +05:30
Kovid Goyal
9a384c5045
Allow passing the current selection to kittens
...
Fixes #2796
2020-06-25 08:46:05 +05:30
Kovid Goyal
2b3753d99c
Prevent super large tab margin widths from causing a crash
...
Fixes #2793
2020-06-24 22:56:54 +05:30
Kovid Goyal
d173ab9f45
macOS: Fix the LC_TYPE env var being set to UTF-8 on systems in which the language and country code do not form a valid locale
...
Fixes #1233
2020-06-24 22:09:25 +05:30
Kovid Goyal
fbd0e8e26a
X11: Improve handling of multiple keyboards
...
Now pressing a modifier key in one keyboard and a normal key in another works. Fixes #2362
Don't rebuild keymaps on new keyboard events that only change geometry. Fixes #2787
Better handling of multiple keyboards with incompatible layouts (this is for free from the above fixes). Fixes #2726
2020-06-24 12:05:30 +05:30
Kovid Goyal
50414b333a
Re-enable the spawn tesRe-enable the spawn test
2020-06-23 20:43:40 +05:30
Kovid Goyal
ee2fdb3d25
Merge branch 'typos' of https://github.com/Luflosi/kitty
2020-06-23 20:16:42 +05:30
Luflosi
2b884377d4
Fix typos
2020-06-23 16:35:13 +02:00
Kovid Goyal
36a20f7b00
Temporarily disable spawn test as it is failing in the Linux build container
...
Will investigate later
2020-06-23 17:37:04 +05:30
Kovid Goyal
35cbf49b08
version 0.18.1
2020-06-23 17:29:22 +05:30
Kovid Goyal
21836cedda
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-06-21 22:07:44 +05:30
Luflosi
0a892b72e6
Fix GLU header inclusion being disabled
...
From upstream: 81f475bccb .
2020-06-21 18:07:31 +02:00
Kovid Goyal
2c6e5a6e73
Get multiprocessing working in kitty
...
Monkeypatch the stdlib multiprocessing module to
use kitty as its python interpreter for spawning worker
processes.
2020-06-21 14:47:24 +05:30
Kovid Goyal
2cb25cf5a8
Build the launcher when freezing on macOS as well
...
Can be used by the test suite
2020-06-21 14:37:36 +05:30
Kovid Goyal
e07916425e
macOS: Fix for diff kitten not working with python 3.8
...
Fixes #2780
2020-06-20 19:03:45 +05:30
Kovid Goyal
f62e2374e4
Ensure mimetype is sent to github
2020-06-20 13:02:34 +05:30