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
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
40dbf7f1c8
Use log_error instead of print
2021-02-22 08:33:26 +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
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
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
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
9114bda24c
Get the new bypy based freezing process working with linux builds
2021-02-17 15:50:53 +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
275b8ce2e7
Fix #3322
2021-02-15 21:27:52 +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
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
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
de0f225c45
Fix #3299
2021-02-09 22:10:40 +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
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
95dc87cf04
Prevent stack overflows when recursing to coalesce frames
2021-02-05 09:12:08 +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
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