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
Kovid Goyal
eb4ee2f0af
version 0.18.0
2020-06-20 12:48:59 +05:30
Kovid Goyal
be3c76da20
Fix remote control command docs order randomized
2020-06-20 12:45:05 +05:30
Kovid Goyal
b15e58621c
Fix the kitty shell launched via a mapping needlessly requiring :opt:allow_remote_control to be turned on.
2020-06-20 12:43:46 +05:30
Kovid Goyal
601a6c9e3d
Allow sending arbitrary signals to the current foreground process in a window using either a mapping in kitty.conf or via remote control
...
Fixes #2778
2020-06-20 12:37:27 +05:30
Kovid Goyal
3ff184348e
Merge branch 'unused-macro' of https://github.com/Luflosi/kitty
2020-06-19 18:33:28 +05:30
Luflosi
c8efcd2be1
Remove unused macro
2020-06-19 14:31:58 +02:00
Kovid Goyal
9c116a2975
Fix #2776
2020-06-19 12:13:32 +05:30
Kovid Goyal
8818b5d8df
Set CFBundleAllowMixedLocalizations in the app bundle to have NSLocale.currentLocale return the correct locale on non-English systems
2020-06-18 20:16:36 +05:30
Kovid Goyal
e96dfadae7
Ensure cocoa_get_lang() returns a valid locale or None
...
See #1233
2020-06-18 20:15:01 +05:30
Kovid Goyal
deb564e5a6
Even more integrations
2020-06-17 18:09:34 +05:30
Kovid Goyal
ffc71c348c
A couple more integrations with external tools
2020-06-17 18:07:19 +05:30
Kovid Goyal
19df7b94ea
Clarify documentation a bit
2020-06-16 09:53:08 +05:30
Kovid Goyal
a3ecc79f0d
Dont actually need -- since kitty's option processing code is smart enough to stop looking for options after the first non-optional argument
2020-06-16 09:31:42 +05:30
Kovid Goyal
b140b15119
Add a -- to linenum hints examples
2020-06-16 08:30:34 +05:30
Kovid Goyal
b7b2b6075a
Add mdcat
2020-06-15 09:31:51 +05:30
Kovid Goyal
7525e152b8
Make comment a bit better
2020-06-15 06:55:52 +05:30
Kovid Goyal
bc9dfec615
Fix #2764
2020-06-15 06:53:35 +05:30
Kovid Goyal
7824739034
Ensure selection GPU buffer is refreshed after a resize
...
Fixes #2747 (I hope since I cannot reproduce)
2020-06-13 22:59:46 +05:30
Kovid Goyal
e7b60a3628
Fix #2763
2020-06-13 20:09:26 +05:30
Kovid Goyal
97c3061b8f
Allow having no tab separator
...
Fixes #2761
2020-06-13 12:33:15 +05:30
Kovid Goyal
1a042c873c
Add a link to vim-test
2020-06-11 08:02:17 +05:30
Kovid Goyal
064aa3a150
Wayland: Ensure cursor theme is loaded before trying to set cursor
2020-06-11 07:57:08 +05:30
Kovid Goyal
8a178ebe55
Wayland: Apply the same framebuffer selection optimisation
...
Not as much of a win, since EGL only causes approx 1K getpid() calls of
which this optimization eliminates only half
2020-06-09 21:59:25 +05:30
Kovid Goyal
9a97f0bced
X11: Further reduce startup time
...
Use the GLX 1.3 API function to choose the best framebuffer config
instead of doing it ourselves. Reduces the number fo getpid() calls by
a further ~15K
2020-06-09 20:18:07 +05:30
Kovid Goyal
5c7471910d
Fix #2752
2020-06-09 09:51:15 +05:30
Kovid Goyal
27b6517594
X11: Reduce startup time by ~25% by only querying GLX for framebuffer configurations once
...
On my system reduces the number of getpid() calls from 67982 to 17327
I dont know why get framebuffer config attributes requires getpid() and
why it is so slow, probably a driver bug. Fixes #2754
2020-06-09 01:04:09 +05:30
Kovid Goyal
cd4dacb406
Fix #2753
2020-06-08 21:40:59 +05:30
Kovid Goyal
5f6faa1bf0
Make a central list of integrations in the docs
...
Fixes #2750
2020-06-08 14:49:59 +05:30
Kovid Goyal
cfc5a952f8
Add --no-response to @ last-used-layout
2020-06-08 09:16:26 +05:30
Kovid Goyal
10b186957b
Update link to termpdf.py
2020-06-08 08:57:50 +05:30
Kovid Goyal
f597481736
Update changelog for last merge
2020-06-06 22:32:52 +05:30
Kovid Goyal
9fa97e6187
Merge branch 'mouse-events' of https://github.com/trygveaa/kitty
2020-06-06 22:27:54 +05:30
Kovid Goyal
3844321f20
Use a multiple of 8 size for mouse_button_pressed
2020-06-06 22:24:01 +05:30
Trygve Aaberge
8efe08c45b
Support more mouse buttons for terminal mouse events
...
Previously, the mouse back and forward buttons sent the same codes as
scroll up and down. Now they instead send the same codes as xterm. Mouse
button 10 (in X11 numbering) also now sends the same as xterm, instead
of not sending anything.
This also changes the `send_mouse_event` function which can be called
from kittens to use X11 numbering for mouse buttons instead of what it
previously used, which turns out to be a hybrid of X11 and GLFW. It was
documented to use GLFW numbering, but GLFW doesn't have numbers for
scroll events (that's separate events with x/y offsets) and 4 and 5 in
GLFW is actually back and forward, while `send_mouse_event` interpreted
it as scroll up and down.
That means that this is a breaking change for `send_mouse_event` because
it swaps the number for the middle and right button to be consistent
with X11. I did this because I think it's better to use one consistent
numbering scheme for the function, and because people probably know X11
numbering better than GLFW numbering and GLFW doesn't have numbers for
the scroll buttons.
2020-06-06 14:19:06 +02:00
Trygve Aaberge
c78563b452
Report modifier key state when sending move and drag events to the terminal program
2020-06-06 12:28:42 +02:00
Trygve Aaberge
122e172092
Track modifier state correctly
...
When a modifier key is pressed, that modifier is not included in mods.
When it is released, it is included. Therefore, we have to special case
the modifier keys when storing the modifiers that are active. When a
modifier key is pressed, we add the modifier to
mods_at_last_key_or_button_event, and when it is released, we remove it.
This fixes an issue where move and drag events would still be sent to
the terminal program after pressing shift, but would stop being sent
after releasing shift until another key or button was pressed.
2020-06-06 12:28:42 +02:00
Kovid Goyal
8f85c0d167
Use bypy in update-on-ubuntu
2020-06-06 09:23:36 +05:30
Kovid Goyal
ac6d1ce174
Use bypy in the publish script
2020-06-06 09:19:48 +05:30
Kovid Goyal
03e0bf4c0e
Migrate update-on-ox to use bypy
2020-06-06 09:11:50 +05:30
Kovid Goyal
1cb183f5e1
Add a note about what sort of ligatures disable_ligatures affects
2020-06-06 09:11:32 +05:30
Kovid Goyal
d78a553910
Fix #2739
2020-06-06 07:50:43 +05:30
Kovid Goyal
1326532850
macOS: Notarize the kitty application
...
This required the kitty package to be moved from Frameworks to
Resources, because Apple cant codesign .pyc files and its notarization
requires everything in Frameworks to be signed. Hopefully that does not
break anything. Also removed the kitty-deref-symlink since it is not
needed anyway and was only present for backwards compatibility.
Fixes #2040
2020-06-05 22:52:30 +05:30
Kovid Goyal
408508247d
Merge branch 'replace_glfw_true' of https://github.com/Luflosi/kitty
2020-06-05 22:32:53 +05:30
Luflosi
e2be09e028
Remove GLFW_TRUE in comment
...
In 55ad228166 I forgot to replace `GLFW_TRUE` with `true` in a comment.
2020-06-05 18:51:50 +02:00
Kovid Goyal
c7c14f184c
X11: Recompile keymaps on XkbNewKeyboardNotify events
...
Hopefully fixes #2726
2020-06-05 22:11:15 +05:30
Kovid Goyal
24ca919f33
Merge branch 'fake_scroll_correct_window' of https://github.com/Luflosi/kitty
2020-06-05 20:20:40 +05:30
Luflosi
85fe783652
Fix fake scroll when scrolling in unfocused kitty window
...
Scrolling should happen in the kitty window under the mouse cursor, not in the currently active kitty window.
2020-06-05 16:44:11 +02:00
Kovid Goyal
04b6bf3b74
bypy builds on macOS
2020-06-05 19:38:00 +05:30
Kovid Goyal
8b2fb105d0
Fix #2735
2020-06-05 19:24:40 +05:30
Kovid Goyal
558caa232d
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-06-05 07:10:39 +05:30
Luflosi
d8886edbeb
Null: Make platform more conformant
...
From upstream: e0c77f71f9 .
2020-06-05 00:27:47 +02:00
Kovid Goyal
f72ecf1791
Start work on building macOS binary with bypy
2020-06-04 23:18:48 +05:30
Kovid Goyal
45d1b978d8
bypy now builds the Linux binary
2020-06-04 19:54:01 +05:30
Kovid Goyal
0b780cc065
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-06-04 19:24:40 +05:30
Luflosi
5263f6598c
Add feature available/implemented errors
...
From upstream: 9a87c2a4b4 .
2020-06-04 13:55:52 +02:00
Kovid Goyal
f9e60e7ef6
Start work on using bypy to build the binaries
2020-06-04 13:51:50 +05:30
Kovid Goyal
45c00d0b1f
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-06-04 07:15:09 +05:30
Luflosi
c70e2f7d3e
Add statement to docs for glfwTerminate
...
From upstream: 7486e12f88 .
2020-06-03 20:07:09 +02:00
Kovid Goyal
1ec0bed1ce
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-06-03 22:45:24 +05:30
Luflosi
46b5e4513a
Win32: Fix VS /W4 compile warnings
...
From upstream: a84a30ab63 .
2020-06-03 19:05:05 +02:00
Kovid Goyal
ffb5196f3b
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-06-03 22:04:21 +05:30
Luflosi
107f1af3c4
Fix desktop GL header not always being suppressed
...
From upstream: 105cf32e0b .
2020-06-03 11:32:59 +02:00
Kovid Goyal
03b1484c96
Wayland: Abort on fatal error should bypass quit confirmation
2020-06-03 14:39:27 +05:30
Kovid Goyal
aaf64ad63e
Add links to config settings to change mouse modifiers in the main mouse docs
2020-06-03 08:17:28 +05:30
Kovid Goyal
f548e795d5
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-06-02 17:05:02 +05:30
Luflosi
767da68239
Reduce difference to GLFW upstream
...
Only whitespace, formatting and comments were changed. This does not alter any functionality.
2020-06-02 11:45:08 +02:00
Kovid Goyal
f44e0ff4bd
Merge branch 'patch-1' of https://github.com/TheDaemoness/kitty
2020-06-02 10:54:44 +05:30
TheDaemoness
7f226f2ea1
Avoid incrementing hidden cursors' images
2020-06-02 05:10:51 +00:00
Kovid Goyal
1c82a39a6e
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-06-02 08:13:33 +05:30
Kovid Goyal
b70cf276b4
Change the cursor image immediately on scale change
2020-06-02 08:09:27 +05:30
Kovid Goyal
80b2df2ef4
Better code when using a stack cursor
2020-06-02 07:59:32 +05:30
Kovid Goyal
ad27452275
Wayland: Avoid infinite timer fires if arrow cursor is animated
2020-06-02 07:53:15 +05:30
Kovid Goyal
196a0b6b7e
Merge branch 'patch-1' of https://github.com/TheDaemoness/kitty
2020-06-02 07:49:57 +05:30
Luflosi
f356f63994
wayland: save serial from all input sources
...
From upstream: 92b3fd02e5 .
2020-06-01 21:29:14 +02:00
TheDaemoness
4947fb6b57
Fix a missing cursorWayland-scale assignment.
2020-06-01 17:41:16 +00:00
Kovid Goyal
622f12b84e
Add a changelog entry for wayland hidpi cursors
2020-06-01 21:26:18 +05:30
Kovid Goyal
c1f84ce603
cleanup for wayland hidpi cursors merge
2020-06-01 21:14:56 +05:30
Kovid Goyal
14912461ad
Use left_ptr as default arrow cursor on Wayland
...
Matches X11.
2020-06-01 20:33:54 +05:30
Kovid Goyal
a9f265e8b7
Initialize a couple of local vars
2020-06-01 20:33:54 +05:30
TheDaemoness
199ee20adb
Fixed an instance of eager cursor loading.
...
Also fixed a minor formatting issue.
2020-06-01 20:33:53 +05:30
TheDaemoness
7c3c87abf6
Initial implementation of proper HiDPI cursor support on Wayland.
2020-06-01 20:33:53 +05:30
Kovid Goyal
b0ad44bcf2
Fix #2714
2020-06-01 20:31:05 +05:30
Kovid Goyal
9ba808ec3c
Merge branch 'ft/csi-code-rep' of https://github.com/keynslug/kitty
2020-06-01 14:31:34 +05:30
Kovid Goyal
eacf849e3a
Add bounds check to left_shift_line()
...
Fixes #2710
2020-05-31 08:10:58 +05:30
Andrew Mayorov
42c2791182
Do not cap repetitions by row length
...
Instead cap by 65535 as a safeguard. This is more in line with ECMA 48.
2020-05-29 20:36:30 +03:00
Andrew Mayorov
390e883ecf
Update terminfo with CSI REP support
2020-05-29 01:06:16 +03:00
Andrew Mayorov
9fe631ee3f
Provide support for CSI REP control code
2020-05-29 01:05:49 +03:00
Kovid Goyal
82d8c4b230
Fix #2699
2020-05-27 20:18:05 +05:30
Kovid Goyal
9775bb0a9d
Merge branch 'patch-1' of https://github.com/aslpavel/kitty
2020-05-27 09:05:09 +05:30
Pavel
139c9a2d6d
Fix incorrect examples in graphic protocol
...
Examples in `Deleting images` section were incorrect.
2020-05-26 20:39:31 +01:00
Kovid Goyal
542880f87b
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-05-25 22:17:42 +05:30
Luflosi
3846286bee
Wayland: Implement raw mouse motion control
...
From upstream: 44af6bb936 .
2020-05-25 18:21:32 +02:00
Kovid Goyal
72be402a2d
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-05-25 21:47:56 +05:30
Luflosi
c6b9cb759a
Wayland: Rename handlers for more unicity
...
From upstream: 754b7feaa1 .
1fa66ca45d didn't include the changes to `wl_window.c`.
2020-05-25 15:29:17 +02:00
Kovid Goyal
13ccf269a6
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-05-25 15:25:01 +05:30
Luflosi
fcc7a0255a
Align joystick axis to gamepad button behavior
...
From upstream: 02874d9c14 .
2020-05-25 11:44:14 +02:00
Luflosi
e7447f38cf
Fix half-axis to gamepad button value mapping
...
From upstream: c32dc3a085 .
2020-05-25 11:44:02 +02:00
Kovid Goyal
7ae35631a6
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-05-25 10:32:54 +05:30
Luflosi
55ad228166
Rename raw input to raw mouse motion, cleanup
...
From upstream: 1155c83013 .
2020-05-24 21:57:29 +02:00
Luflosi
48fb051253
Add GLFW_RAW_INPUT and glfwRawInputSupported
...
From upstream: 9e29f556fd .
2020-05-24 20:49:52 +02:00
Kovid Goyal
f97e8b7eeb
The title for @ set-window-title is optional
2020-05-24 21:51:33 +05:30
Kovid Goyal
84f914742b
Fix command names using undersore instead of hyphens in completion for the shell
2020-05-24 21:34:34 +05:30
Kovid Goyal
0d704f3715
kitty shell: show the previously active window id
2020-05-24 16:40:10 +05:30
Kovid Goyal
d8896eb210
Fix #2688
2020-05-24 12:40:54 +05:30
Kovid Goyal
b9d74e2012
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-05-24 08:16:51 +05:30
Luflosi
803fba9cfd
Cocoa: Replace display link with IOKit query
...
From upstream: 4ec7daf3e9 .
2020-05-23 16:28:31 +02:00
Kovid Goyal
581548ed67
Merge branch 'freebsd' of https://github.com/rkitover/kitty
2020-05-23 19:56:51 +05:30
Kovid Goyal
9a8c0f8e7e
Merge branch 'cut_utf-8' of https://github.com/Luflosi/kitty
2020-05-23 19:53:40 +05:30
Rafael Kitover
328f569c16
Fix child spawn on FreeBSD.
...
Fix typo: "#ifdef TIOCSTTY" -> "#ifdef TIOCSCTTY"
Include standard header sys/ioctl.h for ioctl(), needed on MacOS.
Include standard header termios.h for TIOCSCTTY.
Fixes this error on spawn of child shell process:
bash: cannot set terminal process group (-1): Inappropriate ioctl for
device
bash: no job control in this shell
Tested on FreeBSD and Linux.
- Fix #2529
Signed-off-by: Rafael Kitover <rkitover@gmail.com >
2020-05-23 12:21:57 +00:00
Luflosi
7931654a7c
Ensure valid UTF-8 when cutting string
2020-05-23 13:59:23 +02:00
Kovid Goyal
6eb0c10339
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-05-23 17:24:03 +05:30
Luflosi
269f294d19
Use CALayer instead of NSView for EGLNativeWindowType
...
From upstream: 91eebe922d .
2020-05-23 12:48:26 +02:00
Kovid Goyal
d19e2f1350
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-05-23 16:17:30 +05:30
Luflosi
3b745b82db
X11: Clarify function name and comment
...
From upstream: 5f9dfe3d83 .
2020-05-23 11:34:17 +02:00
Kovid Goyal
02f30c2a03
Merge branch 'master' of https://github.com/ahlinc/kitty
2020-05-23 10:47:26 +05:30
Andrew Hlynskyi
54002b386a
Fixed issue with a cwd for kitty_mod+h scroll buffer viewer
...
There is an issue with ability to save scroll buffer from a default less
scroll buffer viewer by just typing relative path to an output file,
because the running less instance inherits cwd from Kitty's cwd
instead of cwd of active window.
How to reproduce:
1. Start Kitty.
2. Go to some place.
3. Press 'kitty_mod+h'
4. Press 's' and you'll see a less prompt like 'log file:'
5. Type a just file name without any path and press Enter then press 'q'
6. See that there is no such file in a current shell directory.
2020-05-23 07:19:45 +03:00
Kovid Goyal
0e2ff077af
Fix #2682
2020-05-23 09:03:44 +05:30
Kovid Goyal
012cf70321
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-05-23 07:22:07 +05:30
Luflosi
9da0ba52db
X11: Clarify code flow for Clang static analysis
...
From upstream: ef5220d6b1 .
2020-05-22 23:32:12 +02:00
Kovid Goyal
7bfb07e59e
Merge branch 'simplify' of https://github.com/Luflosi/kitty
2020-05-22 19:58:48 +05:30
Luflosi
9cb2c4b1ff
Simplify code
...
There is already a check if `m` is `NULL`, so there is no need for a second `NULL` check after that.
2020-05-22 16:04:28 +02:00
Kovid Goyal
8c088fad0f
Merge branch 'master' of https://github.com/ahlinc/kitty
2020-05-22 08:23:55 +05:30
Andrew Hlynskyi
392722aed0
Fixed misprint in .github/ISSUE_TEMPLATE/bug_report.md
2020-05-21 22:24:04 +03:00
Kovid Goyal
fabfb30fc4
Merge branch 'convert-tabs-to-spaces' of https://github.com/Luflosi/kitty
2020-05-21 19:51:02 +05:30
Luflosi
c7cb021e92
Convert two tabs to spaces
...
The rest of the file is also indented with spaces.
2020-05-21 15:34:08 +02:00
Kovid Goyal
be05d9c3e9
Proper confirm_os_window_close check condition
2020-05-21 15:12:20 +05:30
Kovid Goyal
e38690e8d9
Dont link against librt and libdl on OpenBSD
...
These are part of libc there
2020-05-21 11:43:55 +05:30
Kovid Goyal
7172115559
Merge branch 'patch-1' of https://github.com/TheDaemoness/kitty
2020-05-21 07:37:56 +05:30
TheDaemoness
7314019832
Fixed a typo and added some missing files.
2020-05-20 20:10:37 +00:00
TheDaemoness
b9684941c4
Create .editorconfig
...
[Most major editors](https://editorconfig.org/#download ) support EditorConfig for declaring per-file per-project indentation rules. It costs almost nothing to maintain, and it makes it easier to follow the coding styles already used in kitty.
2020-05-20 19:46:13 +00:00
Kovid Goyal
a27289352c
Merge branch 'master' of https://github.com/ahlinc/kitty
2020-05-20 19:56:58 +05:30
Andrew Hlynskyi
dc77009e55
Fixed confirm_os_window_close bug introduced in commit 7bf83603c8
2020-05-20 15:29:21 +03:00
Kovid Goyal
d12e10830d
Wayland: Fix kitty being killed on some Wayland compositors if a hidden window has a lot of output
...
Sway falls over and dies if it receives many render frame
requests. So send only a single one per damaged window and hope and pray
that the compositor hasn't dropped it. Shrug, Wayland, no surprise.
Fixes #2329
2020-05-20 14:19:09 +05:30
Kovid Goyal
936f6c22f0
Merge branch 'configure_library_paths' of https://github.com/Luflosi/kitty
2020-05-20 07:17:07 +05:30
Kovid Goyal
9712be903d
Fix #2667
2020-05-20 07:05:35 +05:30
Luflosi
7441cefdbb
Make paths to libraries configurable at build time
2020-05-19 18:36:46 +02:00
Kovid Goyal
7bf83603c8
Forgot to treat confirm_os_window_close as a count
2020-05-19 08:19:17 +05:30
Kovid Goyal
6768bc1705
Fix SIGTERM/SIGINT on macOS causing kitty to enter an infinite loop
2020-05-18 17:53:35 +05:30
Kovid Goyal
707cb37212
Have the confirm on close also apply to quitting kitty
...
Use a dedicated API for handling quit requests on macOS rather than a
quit canary. Also create a mappable "quit" action for all platforms.
2020-05-18 16:06:40 +05:30
Kovid Goyal
1cf0a8b78e
Allow only a single OS window close confirmation per OS window
2020-05-18 13:56:19 +05:30
Kovid Goyal
3d2cb37af0
Linux: Workaround for broken Nvidia drivers for old cards
...
Fixes #456
2020-05-18 13:41:23 +05:30
Kovid Goyal
09fbd6f5e0
Merge branch 'master' of https://github.com/ahlinc/kitty
2020-05-18 09:59:31 +05:30
Andrew Hlynskyi
474bef65cb
Fixed marks grouping and coloring for simultaneous multi marks definition
2020-05-18 06:53:56 +03:00
Kovid Goyal
e97454c4a5
And ever more coalesce tests
2020-05-17 23:20:26 +05:30
Kovid Goyal
936dc74a27
Some more coalesce tests
2020-05-17 23:08:27 +05:30
Kovid Goyal
362e4266bb
Better coalescing of multiple symbol_maps
...
When specifying multiple symbol_map values in kitty.conf later ones
should override conflicting previous ones. Fixes #2662
2020-05-17 23:03:28 +05:30
Kovid Goyal
d08f2e10f1
Add bug label to bug bug report template
2020-05-17 13:12:35 +05:30
Kovid Goyal
f1e5ee74a6
Add a feature request template
2020-05-17 13:11:23 +05:30
Kovid Goyal
7832d33348
Add a bug report template
2020-05-17 13:07:49 +05:30
Kovid Goyal
de25f94fae
When extending selections to words, recognize ://
...
As part of the word even if : is not in select_word_chars. This allows
double-clicking to select common URLs with the default select_word_chars
2020-05-16 13:49:39 +05:30
Kovid Goyal
98625e9c36
Add an option confirm_on_os_window_close to ask for confirmation when closing an OS window with multiple kitty windows.
2020-05-15 13:39:58 +05:30
Kovid Goyal
5768cc98b6
...
2020-05-15 13:31:35 +05:30
Kovid Goyal
da1cc6c1c5
Add a yes/no mode to the ask kitten
2020-05-15 13:16:14 +05:30
Kovid Goyal
50384fac97
DRYer
2020-05-14 09:18:29 +05:30
Kovid Goyal
424bd8a6cd
Only compile tab template once
2020-05-14 09:15:11 +05:30
Kovid Goyal
421fae2b57
Merge branch 'fix/tab-title-template-f-string' of https://github.com/chriszarate/kitty
2020-05-14 09:09:18 +05:30
chriszarate
8bb8615a5a
Compile template and restrict globals for eval
2020-05-13 23:30:12 -04:00
Kovid Goyal
80f8692e92
Tall/fat layout: Fix resizing of windows when number of windows is <= num of full size windows not working
2020-05-13 23:33:23 +05:30
Kovid Goyal
25623c758d
Tall and Fat layouts: Add a `mirrored` option to put the full size window on the opposite edge of the screen
...
Fixes #2654
2020-05-13 23:19:34 +05:30
Kovid Goyal
e1a0a195a9
Forgot to change one call site for switch_focus_to
2020-05-13 21:39:26 +05:30
Kovid Goyal
f8cf49a90c
Merge branch 'simplify' of https://github.com/Luflosi/kitty
2020-05-13 17:22:39 +05:30
Luflosi
ac9f8595c9
DRYer
...
Don't write `cppflags.extend()` twice.
2020-05-13 13:43:43 +02:00
Kovid Goyal
97f22bbff6
Update changelog
2020-05-13 11:01:04 +05:30
chriszarate
d6ddfa9d18
Use f-string instead of format for tab_title templates
2020-05-12 22:29:03 -04:00
Kovid Goyal
5e48ae8bac
pep8
2020-05-12 22:54:08 +05:30
Kovid Goyal
cdd943ded4
Port layout tests to new API
2020-05-12 22:43:55 +05:30
Kovid Goyal
39b2bf963c
Port the splits layout to the new groups API
2020-05-12 22:43:54 +05:30
Kovid Goyal
06827fd437
Update docs to point to new layouts package
2020-05-12 22:43:54 +05:30
Kovid Goyal
70ccc1cf6d
Port Grid layout to new groups API
2020-05-12 22:43:54 +05:30
Kovid Goyal
f801c47d1e
Port vertical/horz layouts to new groups API
2020-05-12 22:43:54 +05:30
Kovid Goyal
01c0e8da93
Tall and Fat layouts ported to new groups API
2020-05-12 22:43:54 +05:30
Kovid Goyal
e844ad6db3
Respect per-window margin/padding in stack layout
...
Also use the margin/padding of the base window for all overlay windows
2020-05-12 22:43:54 +05:30
Kovid Goyal
3f8c042bc3
Preserve active idx when removing windows/tabs
2020-05-12 22:43:54 +05:30
Kovid Goyal
707ad705a4
Notify on active window changed when adding/removing to same group
2020-05-12 22:43:54 +05:30
Kovid Goyal
79a780004f
Remove references to overlay_for from boss
2020-05-12 22:43:54 +05:30
Kovid Goyal
81b28bc1bd
More work on refactoring window groups, stack layout works
2020-05-12 22:43:54 +05:30
Kovid Goyal
e9c4d540b1
More work on refactoring window groups
2020-05-12 22:43:54 +05:30
Kovid Goyal
50d9718c68
Start work on refactoring management of windows
2020-05-12 22:43:53 +05:30
Kovid Goyal
e39da2b2bb
Merge branch 'icat-http-timeout' of https://github.com/lamby/kitty
2020-05-11 16:58:21 +05:30
Chris Lamb
f08ec1522a
Set a default socket timeout when retrieving remote items in icat.
...
Otherwise we can easily hang when "icat"-ing resources from unreliable
websites/webcams, etc.
2020-05-11 12:24:57 +01:00
Kovid Goyal
e61e93712c
Merge branch 'patch-3' of https://github.com/ctrlcctrlv/kitty
2020-05-11 11:47:14 +05:30
Fredrick Brennan
c9e198e02e
Graphics protocol: note best detection method
...
Per https://github.com/kovidgoyal/kitty/issues/2636#issuecomment-626467852
2020-05-10 23:02:12 -07:00
Kovid Goyal
0ce181b578
Fix #2639
2020-05-10 21:28:55 +05:30
Kovid Goyal
99950fe448
DECQRM responses for mouse tracking modes
2020-05-09 20:55:51 +05:30
Kovid Goyal
d8daf84a09
Fix #2636
2020-05-09 17:21:23 +05:30
Kovid Goyal
3d32202b3a
version 0.17.4
2020-05-09 10:48:21 +05:30
Kovid Goyal
4f4d562670
Fix background_tint making the window semi-transparent
...
Fixes #2618
2020-05-09 09:06:18 +05:30
Kovid Goyal
28fc9c69da
Allow showing the name of the current layout and the number of windows in tab titles
...
Fixes #2634
2020-05-09 08:00:17 +05:30
Kovid Goyal
6edf00e699
Wayland: Fix OS window title not updating for hidden windows
...
Fixes #2629
2020-05-05 17:51:36 +05:30
Kovid Goyal
a0d6445dda
Move expandvars to utils
2020-05-05 08:22:08 +05:30
Kovid Goyal
e74797037c
...
2020-05-04 13:30:35 +05:30
Kovid Goyal
3fb125dba7
Fix mypy editor integration for changes in syntastic
2020-05-04 13:19:03 +05:30
Kovid Goyal
3c8640f9ad
Infrastructure for close confirmation
2020-05-02 18:19:08 +05:30
Kovid Goyal
2e63a4c83f
Wayland: Remove unused link-time dependency
...
6aca3e99f0
2020-05-01 15:00:38 +05:30
Kovid Goyal
9da5bee178
X11: Filter out Xlib errors from other connections
...
2c8e0512dd
2020-05-01 14:59:16 +05:30
Kovid Goyal
2fc6f3b542
Merge changes from upstream
...
e65de2941c
2020-05-01 14:57:55 +05:30
Kovid Goyal
4754f42e51
Merge branch 'omit-final-tab-separator' of https://github.com/trygveaa/kitty
2020-05-01 14:05:26 +05:30
Trygve Aaberge
941fe918fb
Omit final tab separator
...
This makes tab separators only drawn between the tabs.
Relates to #2616
2020-05-01 10:29:18 +02:00
Kovid Goyal
f4e82e972e
...
2020-05-01 08:10:11 +05:30
Kovid Goyal
f66dbf111d
Pass env to get_vcs_revs()
2020-05-01 08:03:31 +05:30
Kovid Goyal
1a2da5c49d
Use python3 in session.vim
2020-04-30 23:12:37 +05:30
Kovid Goyal
8327dabb29
Allow @ send-text over a socket to work with more than 1MB of text
2020-04-30 08:58:46 +05:30
Kovid Goyal
195ea6c140
Dont send back an rc disallowed response for commands that dont expect responses
2020-04-29 21:53:20 +05:30
Kovid Goyal
fcc0707174
Fix kitty @ send-text not working with text larger than 1024 bytes when using --listen-on
...
Fixes #2607
2020-04-29 21:48:09 +05:30
Kovid Goyal
aa9c3cd634
Report modifier key state when sending wheel events to the terminal program
2020-04-29 20:02:55 +05:30
Kovid Goyal
b541341681
Avoid use of goto
2020-04-29 14:37:26 +05:30
Kovid Goyal
e5d50aca6d
...
2020-04-29 09:21:36 +05:30
Kovid Goyal
b738f4d4ff
Fix a regression that broke drag and drop on macOS
...
Fixes #2605
2020-04-29 09:12:04 +05:30
Kovid Goyal
5c38aabf0e
...
2020-04-29 07:50:01 +05:30
Kovid Goyal
03e9ed6947
Fix set_window_padding() only working on first window
2020-04-28 22:34:32 +05:30
Kovid Goyal
63493fad22
Fix a regression that caused clicking in the padding/margins of windows in the stack layout to switch the window to the first window
...
Fixes #2604
2020-04-28 22:23:38 +05:30
Kovid Goyal
696b857f91
By default, double clicking no longer considers the : as part of words
...
Fixes #2602
2020-04-28 19:57:40 +05:30
Kovid Goyal
53ae2bbe0d
Merge branch 'use_loop' of https://github.com/Luflosi/kitty
2020-04-28 19:40:40 +05:30
Luflosi
01069e919d
Use loop instead of calling dlopen() multiple times
...
Having an array of library names and iterating over it looks nicer than having several variables and calling `dlopen()` multiple times manually.
It should also make it easier to use custom library names instead by using the preprocessor, which I plan to do in the near future.
2020-04-28 15:53:58 +02:00
Kovid Goyal
fc0095f505
Merge branch 'master' of https://github.com/ixydo/kitty
2020-04-27 21:34:52 +05:30
Jinn Koriech
421528e130
Update note about icat + tmux to be more generic
2020-04-27 16:40:24 +01:00
Jinn Koriech
7b70356515
Add note clarifying that icat won't work with tmux
...
When using icat with tmux we get the following:
```
$ kitty icat ~/Pictures/fc.jpg
Terminal does not support reporting screen sizes via the TIOCGWINSZ ioctl
```
I found a suggestion[1] this is due to limitations between kitty and tmux, so I'm raising this PR to either confirm this is the case and make it clear in the documentation, or to have it rejected so an issue can be raised to address the feature.
1: https://unix.stackexchange.com/a/484776/41996
2020-04-27 14:11:16 +01:00
Kovid Goyal
e803505aad
CoreText: When centering glyphs ignore negative origins
...
This is needed for FiraCode ligatures to line up correctly. See
https://github.com/kovidgoyal/kitty/issues/2591#issuecomment-619937030
2020-04-27 18:02:53 +05:30
Kovid Goyal
ad1ff455a0
macOS: Fix a regression in the previous release that caused ligatures to be not be centered horizontally
...
Fixes #2591
2020-04-27 16:17:05 +05:30
Kovid Goyal
7692cb5c3d
Merge branch 'graphics-big-endian' of https://github.com/jamessan/kitty
2020-04-26 09:36:53 +05:30
James McCoy
a94e208db3
Use T_PYSSIZET for GraphicsManager.image_count
...
GraphicsManager.image_count is declared as a size_t, so the Python type
needs to be the same width. On 64-bit big-endian architectures, this
mismatch was showing up as test failures:
======================================================================
FAIL: test_gr_delete (kitty_tests.graphics.TestGraphics)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/kitty_tests/graphics.py", line 319, in test_gr_delete
self.ae(len(layers(s)), 0), self.ae(s.grman.image_count, 1)
ch = 20
cw = 10
delete = <function TestGraphics.test_gr_delete.<locals>.delete at 0x3ffb7fc38b0>
dx = 0.2
dy = 0.4
layers = <function put_helpers.<locals>.layers at 0x3ffb77709d0>
put_image = <function put_helpers.<locals>.put_image at 0x3ffb77708b0>
put_ref = <function put_helpers.<locals>.put_ref at 0x3ffb7770940>
rect_eq = <function put_helpers.<locals>.rect_eq at 0x3ffb7770a60>
s = <fast_data_types.Screen object at 0x1b60df0>
self = <kitty_tests.graphics.TestGraphics testMethod=test_gr_delete>
AssertionError: 0 != 1
2020-04-25 23:25:18 -04:00
Kovid Goyal
ba9d5cf3ff
Merge branch 'use-fPIC' of https://github.com/jamessan/kitty
2020-04-25 21:11:10 +05:30
James McCoy
0dff0d03f9
Use -fPIC instead of -fpic
...
With large objects, use of -fpic will fail to link on certain
architectures due to size limitations of the global offset table (GOT).
For example, the link stage for glfw-wayland.so fails on sparc64, as
below. Using -fPIC avoids these size limitations.
./glfw/osmesa_context.c:73:(.text+0xf2c): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
/tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `swapIntervalEGL':
./glfw/egl_context.c:238:(.text+0xf68): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
/tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `destroyContextOSMesa':
./glfw/osmesa_context.c:80:(.text+0x10a4): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
/tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `data_offer_action':
./glfw/wl_window.c:1692:(.text+0x15e4): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
/tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `data_offer_source_actions':
./glfw/wl_window.c:1683:(.text+0x1648): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
/tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `keyboardHandleRepeatInfo':
./glfw/wl_init.c:471:(.text+0x1704): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
/tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `checkScaleChange':
./glfw/wl_window.c:55:(.text+0x1768): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
/tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `primary_selection_copy_callback_done':
./glfw/wl_window.c:1833:(.text+0x18bc): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
/tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `clipboard_copy_callback_done':
./glfw/wl_window.c:1825:(.text+0x1910): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
/tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `primary_selection_source_canceled':
./glfw/wl_window.c:1582:(.text+0x1968): relocation truncated to fit: R_SPARC_GOT13 against symbol `_glfw' defined in .bss section in /tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o
/tmp/glfw-wayland.so.SYvdxr.ltrans0.ltrans.o: in function `data_source_canceled':
./glfw/wl_window.c:1576:(.text+0x19c0): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
2020-04-25 10:08:28 -04:00
Kovid Goyal
c92aca5d19
Use a Literal as the type for choice based options
2020-04-24 19:45:51 +05:30
Kovid Goyal
5762baeed7
Typing fixes
2020-04-24 19:27:22 +05:30
Kovid Goyal
601cf01222
Fix #2581
2020-04-24 19:24:11 +05:30
Kovid Goyal
0eef48b516
Use literals as the type for cli opts that take choices
2020-04-24 15:28:04 +05:30
Kovid Goyal
3c1954f329
...
2020-04-24 15:07:44 +05:30
Kovid Goyal
cc29640604
version 0.17.3
2020-04-23 08:39:07 +05:30
Kovid Goyal
d0329460b8
Fix #2573
2020-04-21 22:04:34 +05:30
Kovid Goyal
717c0c96de
Allow mapping arbitrary remote control commands to key presses in kitty.conf
2020-04-19 20:14:23 +05:30
Kovid Goyal
b3f161efce
...
2020-04-19 19:39:56 +05:30
Kovid Goyal
0286940163
Allow changing margings/padding via remote control
...
Fixes #2546
2020-04-19 19:29:36 +05:30
Kovid Goyal
d4a4ee386f
Fix minimal borders in grid layout
2020-04-19 17:58:35 +05:30
Kovid Goyal
33498f9133
...
2020-04-19 11:01:22 +05:30
Kovid Goyal
da3d4d1bef
...
2020-04-19 09:51:06 +05:30
Kovid Goyal
c69b8870d2
Allow individually setting margins and padding for each edge (left, right, top, bottom)
2020-04-19 09:36:26 +05:30
Kovid Goyal
85b55b31b6
Add a new :opt:listen_on option in kitty.conf
...
Also allow using environment variables in this option
Fixes #2569
2020-04-19 09:23:52 +05:30
Kovid Goyal
948919e42b
Forgot to apply --title on creation of subsequent OS windows
...
Also update changelog
2020-04-19 08:42:30 +05:30
Kovid Goyal
85c40090ed
Fix #2570
2020-04-19 08:36:29 +05:30
Kovid Goyal
98b50ec145
...
2020-04-19 08:28:40 +05:30
Kovid Goyal
1ab4f7d2d0
Fix a regression in 0.17 that broke displaying graphics over SSH
...
The new types GraphicsCommand can generate a command with only a payload
and no control keys, as the last command during chunked transfer.
Fix the parser to handle this. Fixes #2568
2020-04-19 08:13:33 +05:30
Kovid Goyal
98801b6fa6
Update changelog
2020-04-19 07:22:02 +05:30
Kovid Goyal
bdd68284b5
Merge branch 'terminfo' of https://github.com/wladh/kitty
2020-04-19 07:21:10 +05:30
Vlad Hanciuta
a61d70ea9a
Add strikethrough capabilities to terminfo
...
The termcap aliases are not standard, but they are used by Vim, it
seems. As far as I can tell, there are no standard termcap attribute for
strikethrough.
2020-04-18 16:37:09 +01:00
Vlad Hanciuta
e271719dd2
Add strikeout capability to terminfo
2020-04-18 16:05:30 +01:00
Kovid Goyal
a08efa1fc5
Fix failing test
2020-04-17 19:57:37 +05:30
Kovid Goyal
ffac3600e0
Layouts: Apply per window padding and margin values
...
Also make the calculation of blank rects more robust and with less code,
which should hopefully fix #1762
2020-04-17 19:47:34 +05:30
Kovid Goyal
6499f8ac24
Allow window objects to store custom margin/padding
2020-04-17 09:02:08 +05:30
Kovid Goyal
63307cb1d8
Code to serialize state
2020-04-17 08:42:45 +05:30
Kovid Goyal
0a6fb362f6
kitty @ kitten: Allow no_ui kittens to return data to the remote client
...
Fixes #2552 since the OP can now write a kitten to query the window
manager and return position data even over SSH.
2020-04-15 08:29:55 +05:30
Kovid Goyal
457fcbfb90
Merge branch 'master' of https://github.com/akobel/kitty
2020-04-15 07:44:27 +05:30
Alexander Kobel
3b6277b9e2
Hide "No render frame received" without --debug-rendering
2020-04-14 19:36:58 +02:00
Alexander Kobel
e6e61028b1
Rename --debug-gl to --debug-rendering
2020-04-14 19:35:40 +02:00
Kovid Goyal
e9be66126b
Merge branch 'hints-support-empty-word-characters' of https://github.com/trygveaa/kitty
2020-04-14 08:17:13 +05:30
Trygve Aaberge
681fe7f2f2
Don't set word_characters to select_by_word_characters when empty string
...
This allows you to pass in --word-characters "" which will make hints
only match \w.
2020-04-13 23:02:44 +02:00
Kovid Goyal
0196920533
icat kitten: Fix display of 16-bit depth images
...
Fixes #2542
2020-04-13 23:05:10 +05:30
Kovid Goyal
5f5bb3ace0
Update Changelog
2020-04-12 20:10:29 +05:30
Kovid Goyal
3c970e0122
Merge branch 'kitten-send-mouse-events' of https://github.com/trygveaa/kitty
2020-04-12 20:09:45 +05:30
Trygve Aaberge
43af6e3b8a
Add support for sending mouse events from a kitten
...
This allows you to a control a program running in kitty from a kitten
using mouse events. If the program is not receiving mouse events of that
type, it is not sent.
2020-04-12 16:19:50 +02:00
Kovid Goyal
ac8cfc12fb
Merge branch 'docs-fix-kitten-custom-indentation' of https://github.com/trygveaa/kitty
2020-04-12 19:49:18 +05:30
Trygve Aaberge
b19472e0f5
Fix indentation in kittens/custom.rst to 4 spaces
...
This file used 3 spaces some places and 4 spaces other places. Other
files like diff.rst and hints.rst use 4 spaces.
2020-04-12 16:04:32 +02:00
Kovid Goyal
b4d08044a0
...
2020-04-12 17:01:39 +05:30
Kovid Goyal
b2fe02e63f
Merge branch 'patch-1' of https://github.com/LesnyRumcajs/kitty
2020-04-12 16:55:10 +05:30
Kovid Goyal
d1a5d30233
Add another test for marking
2020-04-12 16:54:38 +05:30
LesnyRumcajs
bba30138e1
Update Fedora link
...
The link was pointing to a deprecated `copr`. Let's point it to official Fedora repos! (as copr page suggests anyway)
2020-04-12 13:13:02 +02:00
Kovid Goyal
082546a1e7
Marks: Fix marks not handling wide characters and tab characters correctly
...
Fixes #2534
2020-04-12 13:28:21 +05:30
Kovid Goyal
41ffd58e26
A bit of cleanup
2020-04-11 21:22:17 +05:30
Kovid Goyal
b4f24e4e1e
Merge branch 'must_draw_borders_flag' of https://github.com/franco/kitty
2020-04-11 21:19:52 +05:30
Franco Sebregondi
75c8ffd715
Add flag to Layout to enforce drawing a border
...
Layout.must_draw_borders = True enforces drawing of a border even
though only a single window is visible. See #2531 .
2020-04-11 17:01:44 +02:00
Kovid Goyal
688606ff7c
Merge branch 'ignore-keyboard-layout-switch-keys' of https://github.com/trygveaa/kitty
2020-04-10 21:46:07 +05:30
Trygve Aaberge
2e3f9dffa7
Ignore keys for switching keyboard layout
...
XKB has various options for using keys to switch the keyboard layout.
When these are set, XKB will return keysyms which are unknown to GLFW,
so kitty will fallback to using a keymap without the options set, which
causes the keys to be interpreted as the original keysyms.
However, when these options are set, kitty shouldn't interpret the keys.
Therefore, check for some specific keysyms and return before translating
to GLFW keysyms.
There may be more keysyms which should be ignored, but as far as I can
see from https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/blob/xkeyboard-config-2.29/symbols/group
these are the ones which can be triggered by XKB options.
Fixes #2519
2020-04-10 17:21:53 +02:00
Kovid Goyal
859033415b
macOS: Fix incorrect horizontal positioning of some full-width East Asian characters
...
Fixes #1457
Also render multi-cell PUA characters centered, matching behavior on other platforms
2020-04-09 13:25:19 +05:30
Kovid Goyal
1f1b52b580
Fix specifying options for layouts in the startup session file not working
...
Fixes #2520
2020-04-09 12:40:09 +05:30
Kovid Goyal
4e7bf80447
diff kitten: New option to control the background color for filler lines in the margin
...
Fixes #2518
2020-04-08 20:42:49 +05:30
Kovid Goyal
e39df50884
Merge branch 'patch-1' of https://github.com/georgeabr/kitty
2020-04-08 18:56:15 +05:30
George Abraham
8d6a9d45c2
Changing match target to "font"
...
As suggested in #2516 , changing match target to "font" in the fonts.conf file.
2020-04-08 14:02:54 +01:00
Kovid Goyal
0862e85577
Rewrite wcswidth as a state machine
2020-04-07 10:10:30 +05:30
Kovid Goyal
0b9a37139e
Render any flag pair in two cells not just known ones
2020-04-06 23:00:34 +05:30
Kovid Goyal
6357f7b811
Update wcswidth() to match new country flag rendering
2020-04-06 22:56:34 +05:30
Kovid Goyal
24197dc422
Render known country flags designated by a pair of unicode codepoints in two cells instead of four.
2020-04-06 22:16:59 +05:30
Kovid Goyal
9bc2ab3245
Function to detect flag pairs
2020-04-06 21:16:14 +05:30
Kovid Goyal
bf4e8c490c
Update to Unicode 13.0
...
Fixes #2513
2020-04-06 18:59:35 +05:30
Kovid Goyal
590a4d70ee
Fix --stdin-add-formatting not working
...
Fixes #2512
2020-04-06 09:35:16 +05:30
Kovid Goyal
40341d2ddd
...
2020-04-04 09:17:38 +05:30
Kovid Goyal
0cd2c41ee3
Update changelog
2020-04-03 22:42:06 +05:30
Kovid Goyal
5d65cdb6a8
Fix reverse video not being rendered correctly when using transparency or a background image
...
Fixes #2419
2020-04-03 22:40:33 +05:30
Kovid Goyal
759a15ccbb
X11: Handle invalid data being sent with drag events by some applications
...
Fixes #2505
2020-04-02 21:01:19 +05:30
Kovid Goyal
5aead5eebe
Replace new-window with launch in the docs
2020-04-01 08:39:37 +05:30
Kovid Goyal
a325a5fdee
Merge branch 'strikethrough-info-from-font' of https://github.com/trygveaa/kitty
2020-03-31 09:34:07 +05:30
Trygve Aaberge
931e91f1a7
Read strikethrough info from font when using FreeType
...
This reads the strikethrough position and thickness from the font so it
is rendered correctly.
This is only implemented for FreeType, not Core Text, because I didn't
find any way to get the info from Core Text, and I don't have a Mac to
test it on either. When using Core Text or when the font doesn't provide
the info, the same approximation as before is used.
2020-03-30 20:09:30 +02:00
Kovid Goyal
6e13509720
Allow entry points and external command combined completion on first word
2020-03-30 11:38:54 +05:30
Kovid Goyal
5b4844e71e
oops
...
Broke normal completion in previous commit. Delegate should only be used
when actual unknown words are present
2020-03-30 11:12:00 +05:30
Kovid Goyal
66cbbea9bb
Add completion for executables at kitty invocation in zsh
...
So now kitty vi<TAB> and kitty vim something<TAB> delegate
completion to zsh for the command that will be executed inside kitty.
2020-03-30 10:54:17 +05:30
Kovid Goyal
b65119b8a9
Color separators in the tab bar using inactive bg except for the last one
2020-03-29 09:20:17 +05:30
Kovid Goyal
86703da917
version 0.17.2
2020-03-29 09:09:16 +05:30
Kovid Goyal
610e9afdf0
Add completion of conf filenames to kitty @ set-colors
2020-03-29 08:41:27 +05:30
Kovid Goyal
e3af9f68d3
Linux: Fix selection of fonts with multiple width variants not preferring the normal width faces
...
Fixes #2491
2020-03-29 01:52:33 +05:30
Kovid Goyal
747ac85e7c
Add an :option:launch --watcher option that allows defining callbacks that are called for various events in the window's life-cycle
...
Fixes #2440
2020-03-28 12:13:42 +05:30
Kovid Goyal
8c23f9e526
DRYer
2020-03-28 09:20:28 +05:30
Kovid Goyal
e6e339fcd3
...
2020-03-28 08:44:48 +05:30
Kovid Goyal
f04680ac47
Fix a regression in 0.17 that broke the kitty @ launch remote command and also broke the --tab-title option when creating a new tab.
...
Fixes #2488
2020-03-28 08:43:32 +05:30
Kovid Goyal
90985cc846
Merge branch 'hints-copy-to-primary-selection' of https://github.com/trygveaa/kitty
2020-03-28 08:21:08 +05:30
Trygve Aaberge
63917944f2
Add an option to hints for copying to the primary selection
2020-03-27 20:23:02 +01:00
Kovid Goyal
793605f80f
Update changelog
2020-03-26 22:06:13 +05:30
Kovid Goyal
93a281c7e3
Add a new mappable action `close_other_windows_in_tab` to close all but the active window
...
Fixes #2484
2020-03-26 22:05:00 +05:30
Kovid Goyal
8f1c6c4d74
Fix #2482
2020-03-26 00:53:19 +05:30
Kovid Goyal
1610dba7ab
patch tab bar colors correctly
2020-03-26 00:46:30 +05:30
Kovid Goyal
d9d419991c
Respect tab_bar_background again
2020-03-26 00:41:19 +05:30
Kovid Goyal
f9e86b19aa
Fix #2480
2020-03-26 00:20:10 +05:30
Kovid Goyal
fffb976e43
Fix blank space at the start of tab bar in powerline style when first tab is inactive
...
Fix #2478
2020-03-25 19:20:35 +05:30
Kovid Goyal
0da566b49f
Hints kitten: Adjust the default regex used to detect line numbers to handle line+column numbers
...
See #2268
2020-03-25 10:03:25 +05:30
Kovid Goyal
da55717d20
The splits layout needs its own draw_minimal_borders implementation
2020-03-25 09:54:06 +05:30
Kovid Goyal
254836902c
Merge branch 'fix/window-border' of https://github.com/pyrho/kitty
2020-03-25 09:35:46 +05:30
Damien Rajon
d01f8d1865
fix(window): inactive window border fix
...
Fixes #2474 .
2020-03-25 00:09:10 +01:00
Kovid Goyal
a46c3f7007
Replace use of cast()
2020-03-24 22:03:10 +05:30
Kovid Goyal
4e58062025
Improve rendering of :option: in cli docs
2020-03-24 22:03:00 +05:30
Kovid Goyal
aa3be0535f
version 0.17.1
2020-03-24 19:45:19 +05:30
Kovid Goyal
8ebf5e007c
Fix rc setting cursor_text_color to background not working
2020-03-24 19:43:31 +05:30
Kovid Goyal
c2957e7f12
Fix a regression in 0.17 that caused kitty @ set-colors to require setting cursor_text_color
...
Fixes #2470
2020-03-24 19:29:25 +05:30
Kovid Goyal
bf7c26d357
CoreText: Prefer less bold variants over heavier variants when auto-selecting the bold face
2020-03-24 19:27:14 +05:30
Kovid Goyal
0547102bdd
Fix #2468
2020-03-24 18:33:32 +05:30
Kovid Goyal
a07369ce69
Update changelog
2020-03-24 18:14:14 +05:30
Kovid Goyal
21c5610431
...
2020-03-24 18:02:44 +05:30
Kovid Goyal
6dbdf72f40
CoreText: When matching fonts prefer non-expanded/condensed variants
2020-03-24 17:55:38 +05:30
Kovid Goyal
76a6bba643
Fix #2466
2020-03-24 17:07:37 +05:30
Kovid Goyal
b0b8222a96
...
2020-03-24 17:04:17 +05:30
Kovid Goyal
0d87b8fac5
Fix a regression in 0.17 that caused tab bar background to be rendered after the last tab as well
...
Fixes #2464
2020-03-24 16:05:02 +05:30
Kovid Goyal
5227b1f98b
Fix :opt:cursor_underline_thickness not working
...
Fixes #2465
2020-03-24 15:53:13 +05:30
Kovid Goyal
c4f7c5c1cd
More explanation for OSC 52 extension
2020-03-24 11:58:30 +05:30
Kovid Goyal
33a84a609c
...
2020-03-24 11:35:34 +05:30
Kovid Goyal
037111715a
...
2020-03-24 11:34:29 +05:30
Kovid Goyal
93271b93e6
version 0.17.0
2020-03-24 10:33:51 +05:30
Kovid Goyal
04488ada06
Merge branch 'png2icns' of https://github.com/Luflosi/kitty
2020-03-21 08:50:57 +05:30
Luflosi
21c7002c68
Add support for png2icns as an alternative to iconutil
...
png2icns is used when building kitty with nix because iconutil seems to be closed-source.
libicns also has an iconutil clone called icnsutil in the source tree but the last release is from 2012, which does not include this utility yet.
2020-03-21 02:11:08 +01:00
Luflosi
97cae0e355
Simplify code
...
This piece of code ends up just extracting `appname` from `iconset_dir`.
2020-03-21 00:10:16 +01:00
Luflosi
85fc0a59b1
Rename variable logo_dir -> iconset_dir
2020-03-21 00:10:16 +01:00
Kovid Goyal
eddd45bbc3
diff kitten: Fix images losing position when scrolling using mouse wheel/touchpad
2020-03-19 18:46:10 +05:30
Kovid Goyal
e2339697b9
Fix #2449
2020-03-19 17:22:58 +05:30
Kovid Goyal
cfe9b408ce
Move startup of first child out of the constructor of Boss
2020-03-19 16:48:16 +05:30
Kovid Goyal
83e8018787
Exclude very small values for content scale
2020-03-19 14:13:23 +05:30
Kovid Goyal
372d2008a6
Actually, we should use text/plain rather than text/uri-list since we are already converting to filesystem paths
2020-03-19 13:40:02 +05:30
Kovid Goyal
ab9a36f8c1
Port cocoa backend to use new drop API
2020-03-19 13:36:03 +05:30
Kovid Goyal
2458c3a7c6
Implement drag and drop of text/plain for Wayland as well
2020-03-19 13:28:21 +05:30
Kovid Goyal
e827e6fa21
X11: Allow drag and drop of text/plain in addition to text/uri-list
...
Fixes #2441
2020-03-18 22:37:23 +05:30
Kovid Goyal
342f0981d8
Add tests for selection extension by right click
2020-03-18 20:57:19 +05:30
Kovid Goyal
9c19e88288
Allow extending selections by dragging with right button pressed
...
Fixes #2445
2020-03-18 20:52:25 +05:30
Kovid Goyal
7329bd4910
Fix incorrect first line selection rendering when scrolling down
2020-03-18 20:27:54 +05:30
Kovid Goyal
b9ad62226e
Fix selection not being extended by right click when scrolling down
...
Fix #2443
2020-03-18 20:17:38 +05:30
Kovid Goyal
3bff3bcbe4
Fix selection not updating properly while scrolling
...
Fixes #2442
2020-03-18 18:48:59 +05:30
Kovid Goyal
a06fdad034
Use a dedicated exception for rc_cmd.fatal()
2020-03-17 11:40:42 +05:30
Kovid Goyal
a49bd98ec6
...
2020-03-15 13:36:09 +05:30
Kovid Goyal
90f41108d3
...
2020-03-15 13:30:02 +05:30
Kovid Goyal
382c31ddf2
Use a stub rather than TYPE_CHECKING
2020-03-15 13:27:40 +05:30
Kovid Goyal
871ca4dda6
oops
2020-03-15 08:58:46 +05:30
Kovid Goyal
fa003f8233
Fix #2431
2020-03-15 08:55:04 +05:30
Kovid Goyal
12f37bcfad
Dont strip trailing punctuation from end of URL if next line startswith url characters
2020-03-15 08:47:52 +05:30
Kovid Goyal
e86c712424
Dont strip :code:& and :code:- from the end of URLs
...
Fixes #2436
2020-03-15 08:29:56 +05:30
Kovid Goyal
e8a9935cb2
Allow setting WM_CLASS and WM_NAME when creating new OS windows with the launch command
2020-03-15 08:12:28 +05:30
Kovid Goyal
f353131b44
Fix #2433
2020-03-15 07:54:55 +05:30
Kovid Goyal
7c4a2ba329
Fix #2434
2020-03-14 20:19:26 +05:30
Kovid Goyal
dfb543bd94
...
2020-03-14 15:27:38 +05:30
Kovid Goyal
c912eef040
Minor strictness increases
2020-03-14 14:59:31 +05:30
Kovid Goyal
5f06d3a427
Disallow untyped decorators
2020-03-14 14:50:04 +05:30
Kovid Goyal
a70fa9abc5
oops
2020-03-14 14:38:56 +05:30
Kovid Goyal
5956277863
All defs are now typed
2020-03-14 14:37:11 +05:30
Kovid Goyal
d3f37eeba4
more typing work
2020-03-14 11:42:05 +05:30
Kovid Goyal
ea48332f46
more typing work
2020-03-14 09:52:56 +05:30
Kovid Goyal
eb12511646
The uber-fussy sway does not like calling wl_data_offer_finish on a version 1 data manager
2020-03-14 09:12:06 +05:30
Kovid Goyal
aa11ddf32c
Wayland: Fix a crash when drag and dropping into kitty
...
Fixes #2432
2020-03-14 08:20:44 +05:30
Kovid Goyal
a348f64833
more typing work
2020-03-13 21:41:07 +05:30
Kovid Goyal
626a96e20f
Clean up code for matching windows/tabs in rc
2020-03-13 21:03:06 +05:30
Kovid Goyal
60995ff04b
Fix #2429
2020-03-13 19:14:49 +05:30
Kovid Goyal
ba4e711715
Fix #2428
2020-03-13 18:13:11 +05:30
Kovid Goyal
891b184195
misc typing fixes
2020-03-13 16:45:39 +05:30
Kovid Goyal
5414dc398e
Correct a few type definitions in layout.py
2020-03-13 16:21:36 +05:30
Kovid Goyal
917559f883
more typing work
2020-03-13 16:13:26 +05:30
Kovid Goyal
9f2fb76309
more typing work
2020-03-12 15:09:21 +05:30
Kovid Goyal
b6692849d6
more typing work
2020-03-12 14:52:11 +05:30
Kovid Goyal
b27f6d5957
more typing work
2020-03-12 14:26:51 +05:30
Kovid Goyal
cda1e28b32
more typing work
2020-03-12 13:51:51 +05:30
Kovid Goyal
8a3e71d3d0
oops
2020-03-12 11:28:58 +05:30
Kovid Goyal
149ae2866a
more typing work
2020-03-12 08:10:51 +05:30
Kovid Goyal
21707171bb
Simplify the protocol for the send-text remote command
2020-03-12 07:14:47 +05:30
Kovid Goyal
2ebdf738ca
more typing work
2020-03-11 20:08:16 +05:30
Kovid Goyal
0e871a89aa
more typing work
2020-03-11 09:57:49 +05:30
Kovid Goyal
2d4f194f0d
more typing work
2020-03-11 09:43:28 +05:30
Kovid Goyal
ce94a9b2df
More typing work
2020-03-11 09:35:59 +05:30
Kovid Goyal
bfbb3c7068
Merge branch 'zsh_compdef_comment' of https://github.com/Luflosi/kitty
2020-03-11 07:17:47 +05:30
Luflosi
6d1fd20542
Add #compdef comment to zsh completion
...
This will allow adding completions without using `kitty + complete setup zsh | source /dev/stdin` by piping the code into a file named `_kitty` in a directory in `$fpath` instead of piping to `source`. This is especially handy for package managers that package kitty.
See https://github.com/zsh-users/zsh-completions/blob/master/zsh-completions-howto.org .
The `compdef _kitty kitty` line at the end doesn't seem to have any ill effects when using the completion code in a completion function file. When piping the code to `source` like before, the added line should be interpreted as a comment and be ignored.
2020-03-10 20:48:43 +01:00
Kovid Goyal
bb8cab3a02
Add type information for tui operations cmds
2020-03-10 22:25:57 +05:30
Kovid Goyal
10435c23c2
more typing work
2020-03-10 20:25:09 +05:30
Kovid Goyal
01142cdc8c
Add type information to the Graphics Command infrastructure
2020-03-10 20:14:04 +05:30
Kovid Goyal
fc0adfd965
more typing work
2020-03-10 15:48:51 +05:30
Kovid Goyal
8803eeb890
more typing work
2020-03-10 12:58:53 +05:30
Kovid Goyal
25be705bcf
DRYer
2020-03-09 21:19:17 +05:30
Kovid Goyal
d8f214a267
oops
2020-03-09 21:11:21 +05:30
Kovid Goyal
f74fb846e5
Fix #2421
2020-03-09 21:10:04 +05:30
Kovid Goyal
8ae110691e
More typing work
2020-03-09 21:06:13 +05:30
Kovid Goyal
abff2292c1
Workaround for sphinx type info being available magically on the CI server
2020-03-09 18:37:23 +05:30
Kovid Goyal
7d690bbad2
Run mypy on CI
2020-03-09 18:24:55 +05:30
Kovid Goyal
7298de646a
more typing work
2020-03-09 18:17:24 +05:30
Kovid Goyal
3c2f3ecd8e
Fix #2420
2020-03-09 17:24:51 +05:30
Kovid Goyal
ac2c21e046
more typing work
2020-03-09 16:13:00 +05:30
Kovid Goyal
c817ba9eae
more typing work
2020-03-09 13:32:45 +05:30
Kovid Goyal
92827ae647
More typing work
2020-03-09 09:56:37 +05:30
Kovid Goyal
5bdb405635
More typing work
2020-03-09 08:56:02 +05:30
Kovid Goyal
9beae321d7
More typing work
2020-03-08 22:08:18 +05:30
Kovid Goyal
353db678a2
Add typing to box_drawing
2020-03-08 21:30:50 +05:30
Kovid Goyal
9b973ef99c
More typing work
2020-03-08 20:36:50 +05:30
Kovid Goyal
308d171dae
More typing work
2020-03-08 18:55:30 +05:30
Kovid Goyal
7057bc663e
Implement proper editor integration for mypy
2020-03-08 14:39:46 +05:30
Kovid Goyal
d84cff0baf
The hints kitten should by default use the URL prefixes from kitty.conf
2020-03-08 13:26:55 +05:30
Kovid Goyal
645890ccc8
Make the set of URL prefixes that are recognized while hovering with the mouse configurable
...
Fixes #2416
2020-03-08 13:16:34 +05:30
Kovid Goyal
cc1336a616
More typing work
...
Also use a mypy based linter when editing
2020-03-08 11:02:14 +05:30
Kovid Goyal
9b32f18109
Refactor remote control commands into individual modules
...
Also add type information
2020-03-08 08:39:26 +05:30
Kovid Goyal
a0321376d5
Fix `@selection` placeholder not working with launch command
...
Fixes #2417
2020-03-08 08:00:36 +05:30
Kovid Goyal
0a6e264d09
Fix #2414
2020-03-07 15:15:27 +05:30
Kovid Goyal
afec07b124
More typing work
2020-03-06 14:19:46 +05:30
Kovid Goyal
8a34fede55
More typing work
2020-03-06 08:35:23 +05:30
Kovid Goyal
686b5f297e
Ensure glfw is imported from the correct place
2020-03-06 08:23:01 +05:30
Kovid Goyal
6609d219f4
Add type checking for glfw module as well
2020-03-06 07:59:55 +05:30
Kovid Goyal
804998ca69
oops
2020-03-06 07:55:54 +05:30
Kovid Goyal
de5254469c
Fix #2412
2020-03-06 07:48:41 +05:30
Kovid Goyal
ef879bab9c
Fix #2411
2020-03-06 07:19:33 +05:30
Kovid Goyal
f729985346
More typing work
...
Also move notification_activated into a standalone function which will
hopefully fix #2410
2020-03-06 07:07:18 +05:30
Kovid Goyal
1e998b6a3f
Use mypy in daemon mode
2020-03-05 20:38:51 +05:30
Kovid Goyal
77e9460eea
Make mypy a bit stricter
2020-03-05 19:57:28 +05:30
Kovid Goyal
81a58186c6
Drop support for python 3.5
2020-03-05 18:31:20 +05:30
Kovid Goyal
ac149be2bb
py3.5 compat
2020-03-05 18:23:45 +05:30
Kovid Goyal
a76a163db5
kitty.config is typed
2020-03-05 18:17:21 +05:30
Kovid Goyal
4ae59d3f77
The launch module is now fully typed
2020-03-05 16:20:56 +05:30
Kovid Goyal
d83a450260
A command for test.py to generate the typing stubs and run mypy
2020-03-05 15:58:30 +05:30
Kovid Goyal
61acc0784e
Dont store generated stubs in source control
2020-03-05 15:50:54 +05:30
Kovid Goyal
f05890719d
Add type checking for the various CLI options objects
2020-03-05 15:47:12 +05:30
Kovid Goyal
0f4e7921ee
Create an auto-generated stub file for the kitty Options object
2020-03-04 19:14:50 +05:30
Kovid Goyal
ec8c96b8e6
diff kitten: Highlight pyi files as python
2020-03-04 11:52:58 +05:30
Kovid Goyal
f0b29e15c3
The utils and constants modules are now fully typechecked
2020-03-04 10:26:41 +05:30
Kovid Goyal
8ad62106e0
No global typing issues in all code (excluding tests)
2020-03-04 08:10:20 +05:30
Kovid Goyal
36eb52424f
No top level typing issues for kittens
2020-03-04 07:49:28 +05:30
Kovid Goyal
c9ce2f47dc
No top level typing issues found in kitty package
2020-03-04 07:31:22 +05:30
Kovid Goyal
5035ed61ee
More typing work
2020-03-04 06:26:02 +05:30
Kovid Goyal
a4cc10c41b
More typing work
2020-03-04 06:10:57 +05:30
Kovid Goyal
5730ce5f53
More typing work
2020-03-03 20:18:24 +05:30
Kovid Goyal
27524bfc3d
Restore global key definitions so as not to break third party kittens that might use them
2020-03-03 15:06:10 +05:30
Kovid Goyal
8843ded1c9
Refactor key encoding
...
Cannot have key names in global namespace as not all key names are valid
python identifiers. So move them into a dict.
2020-03-03 14:54:30 +05:30
Kovid Goyal
64b497589f
Start adding typing info
2020-03-03 14:31:25 +05:30
Kovid Goyal
ee48fd7151
...
2020-03-03 12:25:02 +05:30
Kovid Goyal
291cd5e23f
Also switch badges in manual
2020-03-01 17:13:27 +05:30
Kovid Goyal
be668cfd9a
Switch status badge to github actions
2020-03-01 17:11:39 +05:30
Kovid Goyal
f889c1c75a
Switch to using GitHub actions for CI
2020-03-01 17:02:53 +05:30
Kovid Goyal
55c5f3e9fd
...
2020-02-29 11:17:01 +05:30
Kovid Goyal
242d335095
A new `copy_and_clear_or_interrupt` function
...
Fixes #2403
2020-02-28 21:17:05 +05:30
Kovid Goyal
c763db94ce
Fix #2401
2020-02-28 10:28:01 +05:30
Kovid Goyal
a391732600
left half of cell should happen only if url is truly empty
2020-02-28 07:37:10 +05:30
Kovid Goyal
06b45fcace
Fix #2402
2020-02-28 07:19:31 +05:30
Kovid Goyal
bdac5f7d5b
Add a bounds check in text_for_range() as well
2020-02-27 21:33:42 +05:30
Kovid Goyal
74865efddb
move break condition into for loop
2020-02-27 21:31:42 +05:30
Kovid Goyal
b1f4d16692
Left in a printf()
2020-02-27 21:23:27 +05:30
Kovid Goyal
01b8e2c3f5
...
2020-02-27 21:16:48 +05:30
Kovid Goyal
8c1ef94b26
Bounds check for apply selection
...
Fixes #2400
2020-02-27 20:27:20 +05:30
Kovid Goyal
507fbc7abf
Fix #2399
2020-02-27 07:14:44 +05:30
Kovid Goyal
2f8002c567
Add a test for #1616
2020-02-26 09:20:08 +05:30
Kovid Goyal
551e28d8e0
Run tests python3.8 on linux
2020-02-26 07:34:31 +05:30
Kovid Goyal
e84163e838
Remove unused code
2020-02-26 07:31:43 +05:30
Kovid Goyal
3a64b835fb
DRYer
2020-02-26 07:28:39 +05:30
Kovid Goyal
08a44ed4dd
Fix #2397
...
Have to send selection data to GPU on first render.
2020-02-26 07:22:22 +05:30
Kovid Goyal
4b8cc23a86
Fix selection marking incorrect when scrolling
2020-02-25 22:06:53 +05:30
Kovid Goyal
c4b2de8939
Refactor function to not combine input and output parameters
2020-02-25 21:49:31 +05:30
Kovid Goyal
e2a603dcda
Fix failing selection test
...
Unintialized memory use, was not creating an issue in debug builds only
on the CI servers
2020-02-25 21:44:54 +05:30
Kovid Goyal
294d01def6
Clear the click queue before a multi-click
2020-02-25 21:20:41 +05:30
Kovid Goyal
05f289f912
Make py 3.8 available in the CI docker image
2020-02-25 21:14:16 +05:30
Kovid Goyal
4343c4067e
Make clang happy
2020-02-25 20:33:19 +05:30
Kovid Goyal
c167dcc4e9
Allow selection of single cells with the mouse. Also improve mouse selection to follow semantics common to most programs
...
Fixes #945
Fixes #1007
2020-02-25 20:19:38 +05:30
Kovid Goyal
9a67176719
Fix scrolling selection tests
2020-02-25 20:17:49 +05:30
Kovid Goyal
42d1a4755a
Add tests for multiline movement
2020-02-25 20:03:14 +05:30
Kovid Goyal
1690e6933f
Clean up handling of scrolling in selections
2020-02-25 20:03:14 +05:30
Kovid Goyal
5bbc15583e
Non-scrolling based selection tests all pass
2020-02-25 20:03:14 +05:30
Kovid Goyal
e03aabd972
Some consting
2020-02-25 20:03:14 +05:30
Kovid Goyal
6f5968eeb0
Get rid of the ugly macro used for iteration over selections
2020-02-25 20:03:14 +05:30
Kovid Goyal
71b6e8f12a
More selection fixes
2020-02-25 20:03:14 +05:30
Kovid Goyal
9c486f6e69
Track left to right for selections based on actual mouse positions
...
Cant use the selection boundaries as these can be programmatically
altered when extending selection by word or line.
2020-02-25 20:03:14 +05:30
Kovid Goyal
2f24588c66
Fix cell select mode tests
2020-02-25 20:03:14 +05:30
Kovid Goyal
6b1ea326a0
Initial implementation of half cell based selection
2020-02-25 20:03:14 +05:30
Kovid Goyal
4512d0dbac
Update test for changes to ANSI serialization
2020-02-25 19:23:05 +05:30
Kovid Goyal
511c4da6a3
Workaround for bug in less that causes colors to reset at wrapped lines
...
Fixes #2381
2020-02-25 19:14:24 +05:30
Kovid Goyal
af8fdf1dbe
Dont use a macro for as_text_generic
2020-02-25 15:33:12 +05:30
Kovid Goyal
b7d12de0a7
Avoid transitions in line_as_ansi on marks
2020-02-25 14:49:17 +05:30
Kovid Goyal
2d870fc84a
Fix colors in scrollback pager off if the window has redefined terminal colors using escape codes
...
Fixes #2381
2020-02-25 10:46:51 +05:30
Kovid Goyal
6e87929603
Dont imply inline comments are supported in the config file
2020-02-24 18:52:51 +05:30
Kovid Goyal
2b441df9e9
Log an error for invalid detach_tab argument
2020-02-24 18:43:15 +05:30
Kovid Goyal
3e672ac178
Log an error for invalid detach_window arguments
2020-02-24 18:42:52 +05:30
Kovid Goyal
12a24d5c86
Remove unused code
2020-02-24 07:10:05 +05:30
Kovid Goyal
dec1a0886d
typo
2020-02-23 19:34:31 +05:30
Kovid Goyal
a82e45ad71
Allow passing the currently active kitty window id in the launch command
...
See #2391
2020-02-23 19:17:26 +05:30
Kovid Goyal
82e5750d71
Merge branch 'tui-line-edit-cursor-end' of https://github.com/trygveaa/kitty
2020-02-23 18:21:27 +05:30
Trygve Aaberge
6a3eb3f3d7
tui line_edit: Set correct cursor position on end
...
Previously, the cursor would end up one character after the last typed
character when pressing end in the unicode input kitten.
2020-02-23 11:58:44 +01:00
Kovid Goyal
533a739e2b
Put back the Brewfile
2020-02-22 19:07:17 +05:30
Kovid Goyal
b12a8331f1
Bump version of macOS for brew based CI
2020-02-22 18:59:34 +05:30
Kovid Goyal
8f4ec036e7
Install sphinx via pip rather than brew
...
That's what brew advises
2020-02-22 18:47:46 +05:30
Kovid Goyal
cba36f2240
brew bundle seems to have been removed
2020-02-22 18:36:07 +05:30
Kovid Goyal
b54ffbefe4
Ignore setlocale() failures on Linux as well
...
There are apparently some Linux systems that manage to bork their
locales out there. So just go on with the C locale on these systems.
2020-02-22 18:13:49 +05:30
Kovid Goyal
6d470e4da0
Merge branch 'patch-1' of https://github.com/MaxNoe/kitty
2020-02-20 15:57:18 +05:30
Kovid Goyal
4e1ebec8c2
Merge branch 'fix-menory-leak' of https://github.com/Luflosi/kitty
2020-02-20 15:55:18 +05:30
Maximilian Nöthe
e9779258e9
Make links clickable in INSTALL.md
2020-02-20 11:10:49 +01:00
Luflosi
5c83f45bc6
Fix memory leak when realloc() fails
2020-02-20 10:54:10 +01:00
Kovid Goyal
eb65aca1f4
Merge branch 'fix-boolean-assign-to-pointer' of https://github.com/Luflosi/kitty
2020-02-20 08:02:30 +05:30
Luflosi
5d7e393c93
Fix boolean value assigned to pointer
...
Found with Cppcheck.
2020-02-20 02:51:40 +01:00
Kovid Goyal
d6d01102fe
diff kitten: Fix directory diffing with removed binary files failing
...
Fixes #2378
2020-02-19 19:53:19 +05:30
Kovid Goyal
1ad802b194
Make re-using the tall neighbor code safer
2020-02-19 15:42:01 +05:30
Kovid Goyal
4a191b65bb
Fix a regression in the previous release that broke switching to neighboring windows in the Grid layout when there are less than four windows
...
Fixes #2377
2020-02-19 15:27:56 +05:30
Kovid Goyal
65cc9f4e1b
Merge branch 'patch-1' of https://github.com/felixonmars/kitty
2020-02-19 08:28:15 +05:30
Felix Yan
9f4b13b523
Correct a typo in cmds.py
2020-02-19 05:12:25 +08:00
Kovid Goyal
97e1b62a1e
Merge branch 'typo' of https://github.com/Luflosi/kitty
2020-02-18 21:02:48 +05:30
Luflosi
3ac966a38b
Fix typo
2020-02-18 16:00:28 +01:00
Kovid Goyal
6f1fda0a48
Store cell half information in selection objects
2020-02-18 17:45:07 +05:30
Kovid Goyal
c00b486864
Track which horizontal half of the cell the mouse is in
2020-02-18 10:20:26 +05:30
Kovid Goyal
7928fff645
Update list of GLFW keys in the doc to use kitty's forked GLFW
2020-02-17 17:52:35 +05:30
Kovid Goyal
0285f5a1ad
oops
2020-02-17 16:24:40 +05:30
Kovid Goyal
56e5c8be32
macOS: When switching inpt method while a pending multi-key input is in progress, clear the pending input
...
Fixes #2358
2020-02-17 15:30:03 +05:30
Kovid Goyal
ef569976cb
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-02-17 09:40:55 +05:30
Luflosi
f8ae048d60
X11: Fix setting the clipboard string to itself
...
From upstream: 0c27ed1d0e .
2020-02-17 01:12:52 +01:00
Kovid Goyal
c51f4df0ca
When the application running in the terminal grabs the mouse, pass middle clicks to the application unless the terminal_select_modifiers are pressed
...
Fixes #2368
2020-02-16 22:55:18 +05:30
Kovid Goyal
84453bf15c
Add a test for #2284
2020-02-16 21:14:08 +05:30
Kovid Goyal
917350f058
Fix incorrect rendering of selection when using rectangular select and scrolling
...
Fixes #2351
2020-02-16 21:10:09 +05:30
Kovid Goyal
0c58662eb6
Fix fade style tab bar showing opaque background after last tab
2020-02-16 15:11:55 +05:30
Kovid Goyal
52ca75855e
Use some of th eglyphs from the poweline extra glyphs set in the symbol_map example
2020-02-16 12:17:34 +05:30
Kovid Goyal
49a07651b9
Merge branch 'typo' of https://github.com/Luflosi/kitty
2020-02-16 08:13:06 +05:30
Luflosi
90a8ba3789
Fix typo in comment
2020-02-15 18:52:18 +01:00
Kovid Goyal
734c3199f0
Fix rendering of combining characters with fonts that have glyphs for precomposed characters but not decomposed versions
...
Fix #2365
2020-02-15 21:55:17 +05:30
Kovid Goyal
64567646d9
Build with fortify source on clang as well
2020-02-13 11:20:57 +05:30
Kovid Goyal
1a1638cc7f
Build with _FORTIFY_SOURCE on gcc
2020-02-13 10:39:57 +05:30
Kovid Goyal
fdf055312c
DRYer
2020-02-13 10:07:55 +05:30
Kovid Goyal
b0b8b06b56
Scrolling test
2020-02-13 10:02:44 +05:30
Kovid Goyal
9c1ffb1adf
Test for rectangle select
2020-02-13 08:52:33 +05:30
Kovid Goyal
563bafea08
Merge options when testing
2020-02-13 08:33:57 +05:30
Kovid Goyal
efe4c32ffd
Fix mock window not being zeroes on creation
2020-02-12 21:34:19 +05:30
Kovid Goyal
0f003a9a77
Remove unused code
2020-02-12 21:28:48 +05:30
Kovid Goyal
3eff929652
More mouse interaction tests
2020-02-12 21:19:25 +05:30
Kovid Goyal
3010ebfef5
More mouse interaction tests
2020-02-12 19:02:38 +05:30
Kovid Goyal
ff14f47781
First mouse interaction test
2020-02-12 15:21:59 +05:30
Kovid Goyal
0b99a5caae
APIs for testing mouse interaction
2020-02-12 10:14:17 +05:30
Kovid Goyal
467b96f2f2
Ensure vao_idx is invalid when releasing gpu resources
2020-02-12 09:20:41 +05:30
Kovid Goyal
18751a05c0
Dont use splitlines() to replace \n with \r in pasted text
...
splitlines breaks on a whole bunch of characters besides \r and \n.
2020-02-11 08:16:20 +05:30
Kovid Goyal
9007623d0c
macOS: Fix menubar title not updating on OS Window focus change
...
Fixes #2350
2020-02-10 07:27:40 +05:30
Kovid Goyal
c1abb7038d
Fix border/margin/padding sizes not being recalculated on DPI change
...
Fixes #2346
Fixes #2347
2020-02-09 08:31:09 +05:30
Kovid Goyal
53f7eebc4d
Add changelog entry
2020-02-09 08:04:18 +05:30
Kovid Goyal
d54d29122d
Merge branch 'Nudin-patch-1' of https://github.com/Nudin/kitty
2020-02-09 08:03:06 +05:30
Michael F. Schönitzer
1d71791b3c
Bugfix exception when executing marker functions
...
Fixes the exception below that happened for function-markers:
```
Traceback (most recent call last):
File "/usr/bin/../lib/kitty/kitty/boss.py", line 540, in dispatch_special_key
return self.dispatch_action(key_action)
File "/usr/bin/../lib/kitty/kitty/boss.py", line 612, in dispatch_action
passthrough = f(*key_action.args)
File "/usr/bin/../lib/kitty/kitty/window.py", line 615, in toggle_marker
self.screen.set_marker(marker_from_spec(ftype, spec, flags))
File "/usr/bin/../lib/kitty/kitty/marks.py", line 92, in marker_from_spec
return marker_from_function(runpy.run_path(path, run_name='__marker__').marker)
```
2020-02-08 19:28:53 +01:00
Kovid Goyal
0c6145d4f2
...
2020-02-08 14:08:10 +05:30
Kovid Goyal
62e273c5bb
unicode input kitten: Allow pressing :kbd:ctrl+tab to change the input mode
...
Fixes #2343
2020-02-08 13:29:50 +05:30
Kovid Goyal
d82f399be7
...
2020-02-06 21:16:16 +05:30
Kovid Goyal
20a7050564
Merge branch 'underline_thickness_option' of https://github.com/noomly/kitty
2020-02-06 21:14:34 +05:30
Kovid Goyal
b235f411b0
X11: Fix arrow mouse cursor using right pointing instead of the default left pointing arrow
...
Fixes #2341
2020-02-06 21:11:09 +05:30
Eyal Chojnowski
99faeeacfc
Add PR number to changelog
2020-02-06 16:24:51 +01:00
Eyal Chojnowski
08ad4f389d
Fix linting
2020-02-06 16:21:32 +01:00
Eyal Chojnowski
edba63d0d9
Make underline cursor thickness configurable
2020-02-06 16:15:12 +01:00
Kovid Goyal
e33f882abc
Changelog entry for cursor beam thickness option
2020-02-06 17:52:40 +05:30
Kovid Goyal
53e059f4f7
Merge branch 'beam_thickness_configurable' of https://github.com/noomly/kitty
2020-02-06 17:49:34 +05:30
Eyal Chojnowski
830364e026
Fix option_type
2020-02-06 13:05:10 +01:00
Eyal Chojnowski
332714a925
Make cursor beam thickness configurable
2020-02-06 12:54:42 +01:00
Kovid Goyal
1eee6deb22
Fix #2339
2020-02-06 16:21:40 +05:30
Kovid Goyal
547f138703
Bound width and height for render_curosr
2020-02-06 06:55:13 +05:30
Kovid Goyal
b6c345fc3c
Merge branch 'patch-2' of https://github.com/ctrlcctrlv/kitty
2020-02-05 09:58:07 +05:30
Fredrick Brennan
29c40a4957
Update changelog.rst
...
This change was discussed privately, lest I appear presumptuous for thanking myself :-)
2020-02-05 12:22:54 +08:00
Kovid Goyal
72af821e1b
Freeing bgimage should always null its pointer
2020-02-04 09:51:35 +05:30
Kovid Goyal
5fe4d10f38
Only do processing if pager is not an absolute path
2020-02-03 08:05:34 +05:30
Kovid Goyal
3b36470e84
When resolving scrollback pager if it is not present in system PATH try using shell PATH
2020-02-03 08:03:35 +05:30
Kovid Goyal
f9e8a4050c
Allow leading and trailing spaces in tab_title_template by using quotes
...
Fixes #2332
2020-02-02 21:02:34 +05:30
Kovid Goyal
ce308286df
Dont need to bind blit vertex array as cells vertex array is already bound
2020-02-02 20:56:42 +05:30
Kovid Goyal
b670973226
When unsetting bg image borders need to be redone to ensure blank rects are present
2020-02-02 20:51:31 +05:30
Kovid Goyal
01b11b8a53
Allow removing background image via @ set-background-image
2020-02-02 20:41:52 +05:30
Kovid Goyal
75c47a8659
Proper fix for not drawing blank rects when bg image is present
2020-02-02 20:20:45 +05:30
Kovid Goyal
5b4e0ed483
Fix #2331
...
Some leftover unused code from the bg image merge
2020-02-02 20:09:17 +05:30
Kovid Goyal
7432a7f346
Bind empty VAO when tinting
2020-02-02 14:48:47 +05:30
Kovid Goyal
0830fc3b5a
Make background_image tint useable even without a background image in a transparent window
2020-02-02 12:40:29 +05:30
Kovid Goyal
ab2c901e85
Implement bg image tint for transparent windows
2020-02-02 12:34:35 +05:30
Kovid Goyal
3774cc54c7
Fix rendering of semi-transparent bg images in semi-transparent windows
...
Output colors must be premultiplied
2020-02-02 11:45:48 +05:30
Kovid Goyal
330ed8e4ae
Add an option to tint background images using the current background color
...
Note still has to be implemented for transparent windows
2020-02-02 11:22:21 +05:30
Kovid Goyal
eddae44d6d
Fix leak when changing background image using remote control
2020-02-02 09:27:58 +05:30
Kovid Goyal
226488717a
Add completion for image filenames at command line
...
Sadly could not get it to work with the shell
2020-02-01 12:33:11 +05:30
Kovid Goyal
2f9dabd344
Fix unwanted scaling when tiling bg image
2020-02-01 11:41:06 +05:30
Kovid Goyal
cf1b7c0adb
Allow set_background_image to work over SSH
2020-02-01 11:35:12 +05:30
Kovid Goyal
eb57d0d431
Remote control command to set background image
2020-02-01 10:50:56 +05:30
Kovid Goyal
8116ee015a
API for changing the background image of OS windows
...
Uses reference counting
2020-02-01 09:17:41 +05:30
Kovid Goyal
0fa3cec61f
Add support for specifying a background image
...
Fixes #163
2020-01-31 20:22:29 +05:30
Kovid Goyal
eb60464177
No need to zero background opacity
...
We anyway dont draw the default background color in
draw_interleaved(_premult)
2020-01-31 18:51:02 +05:30
Kovid Goyal
44b2651a0f
Fix draw_cells_interleaved_premult() for drawing with and without a background image
2020-01-31 15:40:00 +05:30
Kovid Goyal
f2e91b5ed2
Remove incorrect setting of bgimage unit in graphics program
2020-01-31 15:28:21 +05:30
Kovid Goyal
e72b60c882
tiling->tiled
2020-01-31 15:11:30 +05:30
Kovid Goyal
5263babc9a
Use a single program for drawing background images
2020-01-31 15:09:47 +05:30
Kovid Goyal
9034b50b3a
Dont use a separate background image opacity setting
2020-01-31 14:05:25 +05:30
Kovid Goyal
fdd7fe1948
Properly release resources used by bgimage
...
Also allow per OS Window bg images in the future
2020-01-31 12:17:54 +05:30
Kovid Goyal
8e7b8b70dc
A VAO is not needed to draw background images
2020-01-31 11:34:34 +05:30
Kovid Goyal
9bf24bdff5
Cleanup png_path_to_bitmap()
2020-01-31 09:46:16 +05:30
Kovid Goyal
ee53edd96d
Fix conversion of background_image option to C
...
Should handle None and not rely on the python object's lifetime.
Also some miscellaneous cleanups.
2020-01-31 09:03:19 +05:30
Kovid Goyal
1bc5d7038d
Merge branch 'bgimage' of https://github.com/ctrlcctrlv/kitty
2020-01-31 07:58:55 +05:30
Fredrick Brennan
8a6b8b415c
More stylistic fixes
2020-01-31 09:48:28 +08:00
Kovid Goyal
86174c81c8
Some tests for splits layout
2020-01-30 20:30:52 +05:30
Kovid Goyal
374500d7b0
py3.5 compat
2020-01-30 18:55:58 +05:30
Kovid Goyal
319a141967
grammar
2020-01-30 18:52:40 +05:30
Kovid Goyal
c0d0062ef8
Add docs for individual layouts
...
Also changelog entry for the splits layout
Fixes #2308
2020-01-30 18:50:28 +05:30
Fredrick Brennan
aaaa34e119
Move a bunch of unneeded stuff
2020-01-30 18:08:25 +08:00
Fredrick Brennan
fba9502a9d
Fix background_image_linear
2020-01-30 18:01:28 +08:00
Kovid Goyal
6670cc1534
Dont swap when removing overlay window in splits
2020-01-30 15:28:51 +05:30
Kovid Goyal
970729dca0
Work on expanding documentation for layouts
2020-01-30 15:06:23 +05:30
Fredrick Brennan
6627586d6e
Fix pedantic compiler test
2020-01-30 17:31:37 +08:00
Fredrick Brennan
9f364209af
Add background_image
2020-01-30 17:23:42 +08:00
Kovid Goyal
c31a39a052
Action to convert between vertical and horizontal splits
2020-01-30 14:34:40 +05:30
Kovid Goyal
36fda90814
Implement window movement for splits
2020-01-30 13:33:15 +05:30
Kovid Goyal
7ccfbc16e9
DRYer
2020-01-30 07:26:32 +05:30
Kovid Goyal
ad3b527bc4
Neighboring windows for splits
2020-01-30 07:09:33 +05:30
Kovid Goyal
f7eef3f456
Minimal borders for the splits layout
2020-01-30 06:12:45 +05:30
Kovid Goyal
1870364888
When laying out windows in splits shove them offscreen if their widths/heights become too small as too small values will cause crashes
2020-01-30 06:12:45 +05:30
Kovid Goyal
d7dfc85cf7
A __repr__ for Pairs
2020-01-30 06:12:45 +05:30
Kovid Goyal
c047e5f16a
Implement perpendicular axis resizing for splits
2020-01-30 06:12:45 +05:30
Kovid Goyal
8d21f63ec2
Resizing of a single split
2020-01-30 06:12:45 +05:30
Kovid Goyal
85b6a91e5c
Blank rects for splits layout
2020-01-30 06:12:45 +05:30
Kovid Goyal
c788e30b66
Implement adding of windows to splits layout
2020-01-30 06:12:45 +05:30
Kovid Goyal
a99caed693
Basic implementation of splits layout
2020-01-30 06:12:45 +05:30
Kovid Goyal
9589fb5275
Clarify docs for background_opacity
2020-01-30 05:59:52 +05:30
Kovid Goyal
1a6dc530a4
Improve create_marker docs
2020-01-29 14:41:01 +05:30
Kovid Goyal
60835871eb
Better error message when user does not specify strategy for disabling ligatures
2020-01-28 15:23:08 +05:30
Kovid Goyal
644ee646a2
version 0.16.0
2020-01-28 08:48:00 +05:30
Kovid Goyal
8f1ec053ef
...
2020-01-27 08:50:29 +05:30
Kovid Goyal
2e3037ce3a
Wayland: Fix window titles being set to very long strings on the order of 8KB causing a crash
...
Fixes #1526
2020-01-27 08:49:25 +05:30
Kovid Goyal
109a856b91
Fix #2313
2020-01-26 08:00:06 +05:30
Kovid Goyal
eaec854bfb
...
2020-01-25 11:51:17 +05:30
Kovid Goyal
2c6cc6f047
Remove unused slot
2020-01-25 11:22:22 +05:30
Kovid Goyal
f32ae10339
Use a global cache instead of a per window cache for grid size calculation
2020-01-25 11:21:05 +05:30
Kovid Goyal
c46317f96f
Use typed layout data
2020-01-25 11:11:55 +05:30
Kovid Goyal
a67e4e550e
Merge branch 'issue2310' of https://github.com/ctrlcctrlv/kitty
2020-01-24 13:43:15 +05:30
Fredrick Brennan
65a7b19f40
Make each OS window have its own framebuffer
...
This commit fixes graphics rendering when more than one OS window is
open, all OS windows are semi-transparent, and multiple windows contain
graphics.
This commit closes #2310 .
2020-01-24 16:06:57 +08:00
Kovid Goyal
1b5daf930a
Make the comment explaining wayland polling more detailed
2020-01-23 15:08:54 +05:30
Kovid Goyal
748ca81d4b
Wayland: Fix a freeze in rare circumstances when having multiple OS Windows
...
Fixes #2307
Fixes #1722
2020-01-23 15:07:22 +05:30
Kovid Goyal
0ea7d24ba4
Fix incorrect offset when rendering images and there are +z-index, -z-index and --z-index images
2020-01-21 08:09:04 +05:30
Kovid Goyal
6c9861cb76
Fix incorrect blending of default bg color when using draw_cells_interleaved_premult with images but no below images
2020-01-21 07:59:44 +05:30
Kovid Goyal
a1125b5cc8
Move draw_bg multiplication into vertex shader
2020-01-21 07:58:34 +05:30
Kovid Goyal
b4e189d2bf
Merge branch 'simplify' of https://github.com/Luflosi/kitty
2020-01-21 06:54:28 +05:30
Luflosi
dbc763fca0
Remove useless code from shader
2020-01-21 00:28:55 +01:00
Kovid Goyal
4c03ffeae2
Merge branch 'patch-1' of https://github.com/ctrlcctrlv/kitty
2020-01-18 15:11:03 +05:30
Fredrick Brennan
2719ac7d01
Add :pull:2248 to changelog.rst
...
It was missing
2020-01-18 17:34:27 +08:00
Kovid Goyal
219b81b5ee
typo
2020-01-18 08:19:42 +05:30
Kovid Goyal
8e1443360f
Merge branch 'force_ltr' of https://github.com/ctrlcctrlv/kitty
2020-01-18 08:07:56 +05:30
Kovid Goyal
d55242aa82
Merge branch 'master' of https://github.com/mfilenko/kitty
2020-01-17 21:40:10 +05:30
Max Filenko
ba531969ec
List layouts in their default order
2020-01-17 16:28:44 +01:00
Max Filenko
c12e7587cb
Document default configuration
2020-01-17 16:28:30 +01:00
Kovid Goyal
3aac0860a2
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-01-17 20:28:26 +05:30
Luflosi
e4fd12001c
Cocoa: Add fully dynamic loading of Vulkan loader
...
From upstream: 7da87aaae7 .
2020-01-17 14:18:28 +01:00
Luflosi
3581ffe04b
Cocoa: Select Vulkan surface extension at runtime
...
From upstream: 15d91801b7 .
2020-01-17 14:18:21 +01:00
Luflosi
f6901e4a3d
Cocoa: Add support for VK_EXT_metal_surface
...
From upstream: c5cb4a253a .
2020-01-17 14:18:05 +01:00
Fredrick Brennan
5a2cc4578e
force_ltr also makes FriBidi usable
...
Add above fact to documentation.
2020-01-17 17:57:26 +08:00
Fredrick Brennan
6b5acc4d3d
Add force_ltr
...
Close #2252
2020-01-17 16:22:40 +08:00
Kovid Goyal
43326c9bd0
Fix URL detection not working for urls of the form scheme:///url
...
Fixes #2292
2020-01-17 07:49:01 +05:30
Kovid Goyal
96f3253e6d
goto_tab now maps numbers larger than the last tab to the last tab
...
Fixes #2291
2020-01-16 20:17:17 +05:30
Kovid Goyal
f5090c951a
Merge branch 'with_open' of https://github.com/Luflosi/kitty
2020-01-16 19:41:55 +05:30
Luflosi
edacdc5e25
Use python context manager to open file
2020-01-16 14:11:54 +01:00
Kovid Goyal
c67661af61
oops
2020-01-15 21:39:13 +05:30
Kovid Goyal
5e60329adf
Changelog entry to titlebar-only
2020-01-15 21:37:20 +05:30
Kovid Goyal
6b4f8408de
Merge branch 'macos_hide_titlebar' of https://github.com/Luflosi/kitty
2020-01-15 21:36:03 +05:30
Luflosi
ea1ef709c6
macOS: Allow hiding the titlebar only instead of all window decorations
...
Thanks to @ntruong for writing cb8279ec54 and 6807411365 , the code was very helpful.
2020-01-15 16:35:36 +01:00
Kovid Goyal
bbf247c5c0
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-01-15 19:32:12 +05:30
Kovid Goyal
8243fd505f
Make mark colors per window
2020-01-15 18:42:37 +05:30
Luflosi
ed9f9db1b0
X11: Fix parent window handle initialization
...
From upstream: 9372ba95fa .
2020-01-15 13:19:33 +01:00
Luflosi
74bed658e1
X11: Fix no window position events during resize
...
From upstream: fe57e3c292 .
2020-01-15 13:19:32 +01:00
Kovid Goyal
2f7bdc274d
Fix failing test
2020-01-15 11:48:13 +05:30
Kovid Goyal
1347ff27d9
Changelog entry for triple click change
2020-01-15 11:46:50 +05:30
Kovid Goyal
5bf4d520f5
Merge branch 'master' of https://github.com/copy/kitty
2020-01-15 11:43:20 +05:30
Kovid Goyal
cf8d665eb7
Allow having more than one full height window in the :code:tall layout
...
Fixes #2276
2020-01-15 11:28:58 +05:30
Fabian
b2eee6df5c
Multiline triple-click selections: Don't ignore leading spaces in first line
2020-01-14 21:04:59 -06:00
Kovid Goyal
e8121b39ec
Add newer layout classes to tests
2020-01-15 08:14:45 +05:30
Kovid Goyal
5359abab76
next version should be 0.16.0
2020-01-15 08:05:45 +05:30
Kovid Goyal
01644ac3f0
Changelog entry for marks
2020-01-15 08:05:12 +05:30
Kovid Goyal
8fbf552494
Allow opening new tabs/windows before the current tab/window as well as after it with the :option:launch --location option.
2020-01-15 08:02:05 +05:30
Kovid Goyal
9c3390c5e6
Allow specifying a marker when launching windows
2020-01-15 07:22:32 +05:30
Kovid Goyal
24d45b99e3
typo
2020-01-15 07:13:32 +05:30
Kovid Goyal
936f2186cc
Allow scrolling to marks
2020-01-15 07:11:34 +05:30
Kovid Goyal
c68b302fa2
Merge branch 'wayland' of https://github.com/kennylevinsen/kitty
2020-01-15 06:51:24 +05:30
Kenny Levinsen
ca7cab1a2d
wayland: Consistently use errno for errors
2020-01-14 20:06:13 +01:00
Kenny Levinsen
083b294659
wayland: Simplify dispatch_pending error handling
...
wl_display_dispatch_pending does not return EAGAIN, and always sets an
error when it fails. This allows us to handle errors in a simpler
manner.
2020-01-14 20:04:23 +01:00
Kenny Levinsen
bc24716476
wayland: errno does not have to be cleared
...
As long as errno is only read on error from an errno-setting function,
then there is no need to reset errno between uses.
2020-01-14 20:04:23 +01:00
Kenny Levinsen
4acab65016
wayland: Only cancel display read after prepare success
...
The display reader count only increments when wl_display_prepare_read
succeeds. Calling wl_display_cancel_read when wl_display_prepare_read
has not succeeded results in a negative reader count, which does not
have well-defined behavior.
2020-01-14 20:00:47 +01:00
Kenny Levinsen
f6b03f106c
wayland: Cancel display read before abortOnFatalError
...
Calling wl_display_cancel_read immediately ensures that other readers
waiting on us will have a chance to wake up and discover the error in a
timely manner.
2020-01-14 19:59:02 +01:00
Kovid Goyal
8f9bbeabd7
Fix reference to --debug-config
2020-01-14 19:50:18 +05:30
Kovid Goyal
ac72ac7af2
Wayland: On dispatch error cancel read before running fatal error handlers
...
Might help #1722
2020-01-14 19:48:28 +05:30
Kovid Goyal
68e00bc8e1
Proper fix for #2270
...
Fixes #2270
2020-01-14 18:50:06 +05:30
Kovid Goyal
922d6b3b32
Fix #2270
2020-01-14 17:20:35 +05:30
Kovid Goyal
4dde98305e
Allow setting markers using remote control
2020-01-14 15:06:52 +05:30
Kovid Goyal
3593189a75
Add a link to the marks docs
2020-01-14 13:45:37 +05:30
Kovid Goyal
4f135be86c
Allow creating markers dynamically
2020-01-13 20:05:50 +05:30
Kovid Goyal
605b32f78a
Merge branch 'dryer' of https://github.com/Luflosi/kitty
2020-01-13 19:42:56 +05:30
Luflosi
476a8b1429
DRYer
...
Inspired by e0c66ea5ba .
2020-01-13 14:35:17 +01:00
Kovid Goyal
da9165aebf
More marker docs
2020-01-13 12:54:29 +05:30
Kovid Goyal
455a1e9532
Basic docs for marking
2020-01-13 12:38:58 +05:30
Kovid Goyal
f12031e284
Make the run-program example a little fancier
2020-01-13 12:16:43 +05:30
Kovid Goyal
df551bc992
Change marker 1 color
2020-01-13 11:58:18 +05:30
Kovid Goyal
35fb702833
Use only a single marker function
...
Multipe colors/expressions can instead be combined at definition time
2020-01-13 11:57:19 +05:30
Kovid Goyal
072cd29e3c
Make add_marker easier to use with combine
2020-01-13 09:56:39 +05:30
Kovid Goyal
624dd78460
Actually apply mark colors when rendering
2020-01-13 09:51:03 +05:30
Kovid Goyal
51c4737a29
Test function marking
2020-01-13 06:50:37 +05:30
Kovid Goyal
d63ea11cac
Marking now works
2020-01-13 06:50:37 +05:30
Kovid Goyal
3d307794be
Function to get marks for testing
2020-01-13 06:50:36 +05:30
Kovid Goyal
d32a05925f
Code to add and remove markers using maps
2020-01-13 06:50:36 +05:30
Kovid Goyal
04006ea81e
Wrapper functions to handle passing matching values to C code
2020-01-13 06:50:36 +05:30
Kovid Goyal
1723616968
Code to apply match colors based on match results
2020-01-13 06:50:36 +05:30
Kovid Goyal
23bc2171c9
Avoid a double call for mark functions
2020-01-13 06:50:36 +05:30
Kovid Goyal
0b3602f764
Code to add markers to Screen
2020-01-13 06:50:36 +05:30
Kovid Goyal
0e448347cd
Fix #2279
2020-01-13 06:50:14 +05:30
Kovid Goyal
e0c66ea5ba
DRYer
2020-01-12 21:42:12 +05:30
Kovid Goyal
268de9a9d5
Merge branch 'add_CIRCUMFLEX_to_control_codes' of https://github.com/Luflosi/kitty
2020-01-12 21:03:27 +05:30
Luflosi
74eb523178
Add GLFW_KEY_CIRCUMFLEX to control_codes
...
See https://github.com/kovidgoyal/kitty/issues/1990 .
2020-01-12 16:27:40 +01:00
Kovid Goyal
8c540d5a46
Fix #2277
2020-01-12 20:00:08 +05:30
Kovid Goyal
2045055ae3
Use actual color value comparison when detecting default background color
...
This is very slightly more GPU intensive but means that even if
an application explicitly sets the color to be the same as the default
color, it will be transparent.
2020-01-12 18:14:03 +05:30
Kovid Goyal
d8ed135b46
Clean up rendering of cell backgrounds
2020-01-12 13:20:23 +05:30
Kovid Goyal
3a4ba7e834
Remove un-needed variable
2020-01-12 10:55:14 +05:30
Kovid Goyal
fab57fbdf1
Micro-optimization
2020-01-12 10:53:27 +05:30
Kovid Goyal
76a93b6cd6
DRYer
2020-01-12 10:52:42 +05:30
Kovid Goyal
f44c3a4606
Forgot to update comment describing render pipeline
2020-01-12 10:26:25 +05:30
Kovid Goyal
714bee7f45
Only use an extra draw call for the background when drawing interleaved cells if it is actually required
2020-01-12 09:37:16 +05:30
Kovid Goyal
91673642b3
icat: Allow easily specifying z-index values below background threshold
2020-01-12 09:36:11 +05:30
Kovid Goyal
fee08d746c
Merge branch 'replace_exception_with_alias' of https://github.com/Luflosi/kitty
2020-01-11 21:21:52 +05:30
Luflosi
527ff0238a
Replace all instances of EnvironmentError with OSError
...
According to the text just above https://docs.python.org/3/library/exceptions.html#EnvironmentError , `EnvironmentError` has been an alias of `OSError` since Python 3.3. Replacing it makes the code more consistent since `OSError` is used in other places in the code too.
2020-01-11 16:47:36 +01:00
Kovid Goyal
789d649b5c
defaultbg should be a local variable
2020-01-11 16:59:50 +05:30
Fredrick Brennan
8020657d8c
Allow drawing images below cells w/background
2020-01-11 16:56:59 +05:30
Kovid Goyal
a15d3ff12d
...
2020-01-10 10:19:02 +05:30
Kovid Goyal
fbce95aeda
Add an example for open file hints
2020-01-10 10:18:18 +05:30
Kovid Goyal
9bc1b5a2d9
hints kitten: Allow pressing :sc:goto_file_line to quickly open the selected file at the selected line in vim
...
Fixes #2268
2020-01-10 10:01:03 +05:30
Kovid Goyal
6a8b7bf92f
Merge branch 'with_suppress' of https://github.com/Luflosi/kitty
2020-01-09 20:58:37 +05:30
Luflosi
48728bdfdc
Use "with suppress()" to suppress a python exception
2020-01-09 16:21:56 +01:00
Kovid Goyal
b6416cf8a9
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-01-09 06:58:30 +05:30
Luflosi
053de5763a
X11: Fix BadMatch focusing a window on non-EWMH WM
...
From upstream: aa5e313561 .
2020-01-08 19:50:17 +01:00
Kovid Goyal
fdb915d0c8
Merge branch 'zindex' of https://github.com/ctrlcctrlv/kitty
2020-01-08 18:20:34 +05:30
Fredrick Brennan
c2769c9aed
Add --z-index to icat kitten
...
Meow.
2020-01-08 20:08:01 +08:00
Kovid Goyal
57deb19d0b
typo
2020-01-07 10:45:05 +05:30
Kovid Goyal
321771b150
Merge branch 'resize-by-increments' of https://github.com/aes/kitty
2020-01-07 10:44:55 +05:30
Kovid Goyal
61dd2011f5
Dont rely on fontconfig to get postscript names
2020-01-07 09:30:41 +05:30
Kovid Goyal
8a5f189213
Ignore invalid font features when parsing config
2020-01-07 09:20:04 +05:30
Kovid Goyal
14560b008a
Clean up font features merge
2020-01-07 08:54:32 +05:30
Kovid Goyal
db85e07d41
Merge branch 'master' of https://github.com/ctrlcctrlv/kitty
2020-01-07 07:18:31 +05:30
Kovid Goyal
07c838fe24
Merge branch 'round_printed_timeout' of https://github.com/Luflosi/kitty
2020-01-06 07:14:53 +05:30
Luflosi
1583b1b0c6
Print warning message timeout rounded to two digits after the dot
...
The timeout is 0.25 seconds. Printing 0.25 instead of 0.250000 looks a lot nicer and a resolution of 10 milliseconds should be enough for this warning message anyways.
2020-01-05 16:10:10 +01:00
Fredrick Brennan
d250555cd0
Make font_feature_settings respect disable_ligatures
2020-01-04 20:11:34 +08:00
Fredrick Brennan
dbd0dab154
Revert addition of ffs_set to Font struct
...
It was from an earlier stage of development and is not needed
2020-01-04 15:37:05 +08:00
Fredrick Brennan
b479ea410d
Prevent leaks
...
Thanks @martinetd
2020-01-04 15:34:47 +08:00
Fredrick Brennan
1db613e95b
Add font_feature_settings
...
Close #2247
2020-01-04 14:36:20 +08:00
Kovid Goyal
70071fe1f6
Merge branch 'simplify' of https://github.com/Luflosi/kitty
2020-01-03 07:46:58 +05:30
Luflosi
58688dda38
Remove duplicate code
...
The hints, once set with `glfwWindowHint()`, retain their values until changed again. This means, that the `GLFW_DECORATED` hint only needs to be set once, even on non-macOS.
2020-01-03 03:01:53 +01:00
Kovid Goyal
756d65c41e
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-01-03 07:18:25 +05:30
Luflosi
b9a08eacb0
X11: Cleanup
...
From upstream: 8149a5fc00 .
2020-01-03 02:37:19 +01:00
Kovid Goyal
b653711446
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2020-01-03 06:48:30 +05:30
Luflosi
e725c647ef
Cocoa: Only create per-monitor display link once
...
From upstream: b4a8eb9b19 .
2020-01-02 18:05:38 +01:00
Kovid Goyal
003f77b257
Merge branch 'add_macos_help_menu_item' of https://github.com/Luflosi/kitty
2019-12-29 22:03:08 +05:30
Luflosi
10b578e6d2
Add help menu to macOS menu bar
...
Most macOS Apps have a Help menu as the last menu item in the menu bar. They usually have a menu item with the keyboard shortcut <kbd>⌘</kbd>+<kbd>?</kbd>, which shows some kind of help or documentation. I named the menu item "Visit kitty website" and let it open the kitty website as documentation.
macOS also magically adds a search feature to the help menu.
2019-12-29 17:24:12 +01:00
Kovid Goyal
151c6c2c70
Merge branch 'always_show_menu_item' of https://github.com/Luflosi/kitty
2019-12-29 20:53:22 +05:30
Luflosi
53e6de9bd9
Always show the macOS New OS Window menu item
...
When there is no keyboard shortcut for a new OS window, the macOS menu item should still exist, it should just not have a keyboard shortcut.
2019-12-29 15:27:52 +01:00
Kovid Goyal
66a455a079
Merge branch 'simplify' of https://github.com/Luflosi/kitty
2019-12-29 19:45:07 +05:30
Luflosi
f8855410e0
Simplify some code in kitty/cocoa_window.m
...
`addItemWithTitle:` can be used instead of `initWithTitle:`. It returns an `NSMenuItem`, which removes the need for allocating an `NSMenuItem` manually and releasing it again.
2019-12-29 14:33:19 +01:00
Kovid Goyal
93e8074325
...
2019-12-28 08:49:53 +05:30
Kovid Goyal
296f512bfb
Forgot you cant use sizeof on arrays passed as function parameters
2019-12-28 08:44:32 +05:30
Kovid Goyal
c8f20d0edf
Ensure key name is null terminated
2019-12-28 08:33:13 +05:30
Kovid Goyal
286f3630d7
Merge branch 'macos_fix_keyboard_shortcut_encoding' of https://github.com/Luflosi/kitty
2019-12-28 08:26:03 +05:30
Luflosi
38423505b1
Remove numpad keys from macOS keyboard shortcuts
...
See previous commit message for the reason.
2019-12-27 15:12:26 +01:00
Luflosi
9a3c621eb6
Fix macOS keyboard shortcut encoding
...
`glfwGetCocoaKeyEquivalent()` in `glfw/cocoa_window.m` expects the returned characters to be of type `unichar`, which won't work for all unicode characters because it is defined as `unsigned short` according to https://developer.apple.com/documentation/foundation/unichar?language=objc , which is only guaranteed to be at least 16 bits in size. The code calling this function also expects the encoding to be UTF-16.
When I added the various keys in https://github.com/kovidgoyal/kitty/pull/1928 , I missed these facts. This means, that `glfwGetCocoaKeyEquivalent()` will behave unexpectedly when called with any of the new-ish keys. Luckily this function is currently only used for determining the macOS shortcut for `new_os_window` but I plan on using it more in the future.
Some of the constants, e.g. `NSBackspaceCharacter` are UTF-16 constants, so we can't just use UTF-8 everywhere.
I fixed the problem by using either UTF-8 characters packed into a `uint32_t` or UTF-16 characters in a `unichar` and then converting them to a UTF-8 encoded char string.
`NSEventModifierFlagNumericPad` isn't guaranteed to fit in a `unichar`, which made this undefined behaviour. It also didn't work. I tried to make it work using `NSEventModifierFlagNumericPad` as a modifier instead, as can be seen in this commit, but couldn't get it to work either because the constants used are native key codes and not unicode characters. Therefore the numpad keys will be removed in the next commit.
2019-12-27 12:42:51 +01:00
Kovid Goyal
bcf847fe98
...
2019-12-27 15:26:31 +05:30
Kovid Goyal
ee7a5eef99
Have read_shell_environment() not fail when no shell is present
2019-12-27 12:25:01 +05:30
Kovid Goyal
7bed66a458
Ensure ans is set in read_shell_environment
...
Fixes #2232
2019-12-27 12:20:06 +05:30
Kovid Goyal
b26229c44e
Merge branch 'remove_release' of https://github.com/Luflosi/kitty
2019-12-26 08:48:20 +05:30
Luflosi
c497c0f96a
Remove call to release on an automatically memory managed object
...
This call even reliably caused a crash for code I was trying to develop.
2019-12-25 20:29:07 +01:00
Kovid Goyal
6df64613f2
Merge branch 'replace_void_pointer' of https://github.com/Luflosi/kitty
2019-12-25 16:35:08 +05:30
Luflosi
46dd648380
Use the correct pointer type instead of void*
2019-12-25 11:51:40 +01:00
Kovid Goyal
4cd5de78c7
Merge branch 'generate_key_table' of https://github.com/Luflosi/kitty
2019-12-25 08:34:27 +05:30
Luflosi
32fa46d6eb
Regenerate key table
...
Since `CIRCUMFLEX` and `^` were removed from `UN_SHIFTED_PRINTABLE` in b2d428618c by 3a2a16f54c and b5229ec73c , `generate_key_table()` wasn't yet run again.
2019-12-25 02:16:37 +01:00
Kovid Goyal
902c2f6c88
Merge branch 'update_comment' of https://github.com/Luflosi/kitty
2019-12-24 19:31:37 +05:30
Luflosi
2a5196873a
Update comment to remove legacy way of starting kitty
...
Since 9135387cfa kitty should not be started with `python3 .` anymore.
2019-12-24 14:22:37 +01:00
Kovid Goyal
d2067141d3
Fix #2226
2019-12-24 17:10:33 +05:30
Kovid Goyal
b5229ec73c
oops
2019-12-23 10:19:02 +05:30
Kovid Goyal
3a2a16f54c
Merge branch 'add_circumflex_key' of https://github.com/Luflosi/kitty
2019-12-23 10:08:25 +05:30
Luflosi
b2d428618c
Add circumflex (^) key
2019-12-22 18:41:07 +01:00
Kovid Goyal
97af84a063
version 0.15.1
2019-12-21 14:20:28 +05:30
Kovid Goyal
18faee6250
Merge branch 'glad2-regen' of https://github.com/Dav1dde/kitty
2019-12-20 20:19:54 +05:30
David Herberth
fd90a3ddc3
regenerates glad to fix missing APIENTRY
2019-12-20 15:04:23 +01:00
Kovid Goyal
a08931d84d
Fix window not being rendered for the first time until some input has been received from child process
...
Fixes #2216
2019-12-20 08:46:50 +05:30
Kovid Goyal
2f0b6e24c9
Use pre-multiplied alpha when clearing windows
...
Apparently most systems expect this. See https://github.com/glfw/glfw/issues/1538
2019-12-20 08:16:10 +05:30
Kovid Goyal
33c5fc0fb6
typo
2019-12-20 07:59:55 +05:30
Kovid Goyal
71adb2dcf8
Merge branch 'new_os_window_key_macos' of https://github.com/Luflosi/kitty
2019-12-20 07:59:08 +05:30
Luflosi
1ae324691d
Change keyboard shortcut selection algorithm for new_os_window on macOS
...
On macOS the keyboard shortcuts are visible in the menu bar. When the keyboard shortcut is used, the corresponding menu bar item flashes to indicate which action was just executed.
kitty allows defining multiple keyboard shortcuts for the same action but macOS allows only one, so kitty needs to decide which one should be handled by macOS. Currently it chooses the first keyboard shortcut with only the command key as a modifier key or the first shortcut when there are no shortcuts with only the command key as a modifier.
When a user tries to set their own keyboard shortcut (and doesn't use `clear_all_shortcuts yes`), this won't change the shortcut displayed in the menu bar since the first (default) shortcut with the command key is <kbd>⌘</kbd>+<kbd>n</kbd>.
I think simply choosing the last defined keyboard shortcut is better. This will even allow the user to specify modifier keys other than the command key while still changing the shortcut in the menu bar. This change will not change the default behaviour because all the macOS specific keyboard shortcuts are defined after the non-macOS specific ones.
2019-12-19 22:15:41 +01:00
Kovid Goyal
689d059517
Fix lines at the edge of the window at certain windows sizes when drawing images on a transparent window
...
Fixes #2079
Fixes #2214
2019-12-19 20:41:31 +05:30
Kovid Goyal
18f0ab9e02
Merge branch 'fix_typo' of https://github.com/Luflosi/kitty
2019-12-19 20:01:12 +05:30
Luflosi
088ab5f137
Fix typo
2019-12-19 13:40:08 +01:00
Kovid Goyal
3dd83975ba
Dont cast double to monotonic_t for literals
2019-12-19 17:33:12 +05:30
Kovid Goyal
a796a6cbef
Use exponential notation in monotonic.h
2019-12-19 17:22:33 +05:30
Kovid Goyal
4766d7de82
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-12-19 17:19:42 +05:30
Luflosi
4a3686c16c
X11: Cleanup
...
From upstream: 73a8ebb691 .
2019-12-19 12:38:56 +01:00
Kovid Goyal
b49105495c
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-12-19 17:07:42 +05:30
Luflosi
ca2eda2c5b
X11: Cleanup
...
From upstream: 4e70c95aa3 .
2019-12-19 12:35:44 +01:00
Kovid Goyal
4fc7c4aafc
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-12-19 17:05:10 +05:30
Luflosi
0981828493
X11: Fix updating GLFW_FLOATING on a hidden window
...
From upstream: 9db156421f .
2019-12-19 12:31:31 +01:00
Kovid Goyal
6bc4f18a59
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-12-19 16:59:26 +05:30
Luflosi
79532a315c
X11: Fix invalid read when clearing GLFW_FLOATING
...
From upstream: 0b652a44d2 .
2019-12-19 12:27:36 +01:00
Kovid Goyal
7472a992ed
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-12-19 16:56:48 +05:30
Luflosi
e40616a0db
X11: Fix missing checks for EWMH attention atoms
...
From upstream: 9b6d68ec70 .
2019-12-19 12:25:09 +01:00
Kovid Goyal
dd8b97a86c
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-12-19 16:53:38 +05:30
Luflosi
5eff3897de
X11: Fix maximization of hidden windows
...
From upstream: 4837b78ffe .
2019-12-19 12:20:58 +01:00
Kovid Goyal
530cf2eb14
monotonic.h no longer depends on time.h
2019-12-19 16:48:35 +05:30
Kovid Goyal
2baa34beb8
Move a couple of functions to where they are actually needed
2019-12-19 16:43:51 +05:30
Kovid Goyal
87e2f7f86d
Missed a couple of macOS timer calls
2019-12-19 16:34:47 +05:30
Kovid Goyal
e142083d53
Remove unused code
...
Strip out the GLFW timer code, since we use our own kitty based
monotonic clock.
2019-12-19 16:27:25 +05:30
Kovid Goyal
2e850a0d0d
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-12-19 07:56:04 +05:30
Luflosi
aec9c31bca
Formatting
...
From upstream: 506a6aafde .
2019-12-18 18:34:55 +01:00
Kovid Goyal
598a147500
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-12-18 22:51:17 +05:30
Luflosi
ba201c4c92
Add curly braces
...
From upstream: 9486ec0c02 .
The upstream commit mainly changes some cmake stuff, which we don't use and only really adds curly braces to `egl_context.c` (and changes some formatting).
2019-12-18 18:12:48 +01:00
Kovid Goyal
5bc7cfaa43
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-12-18 20:33:44 +05:30
Luflosi
2804e1ff81
Cocoa: Update outdated comment
...
From upstream: b3544ca43e .
2019-12-18 15:41:31 +01:00
Kovid Goyal
ae27d36902
Fix previous merge
2019-12-18 18:42:59 +05:30
Kovid Goyal
08182fbe4d
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-12-18 18:36:31 +05:30
Luflosi
778474f436
Wayland: Unset the cursor shape on border exit
...
From upstream: ef6189f348 .
2019-12-18 14:01:29 +01:00
Kovid Goyal
c6698ce305
Merge branch 'comment' of https://github.com/Luflosi/kitty
2019-12-18 18:15:30 +05:30
Luflosi
21bc215313
Make comment more accurate
...
Since all the time values use `monotonic_t` now, `maximum_wait` is no longer measured in seconds. Instead of replacing seconds with nanoseconds, I removed it because the definition of `monotonic_t` is supposed to be changed easily, in which case this comment would not be accurate again.
2019-12-18 12:54:14 +01:00
Kovid Goyal
88a9cc42d2
Merge branch 'fix-panel' of https://github.com/natnat-mc/kitty
2019-12-18 07:32:25 +05:30
Kovid Goyal
28f33a67cf
Merge branch 'fix_oserror' of https://github.com/Luflosi/kitty
2019-12-18 07:30:37 +05:30
Nathan DECHER
6742fabfba
fix kitty +kitten panel -c <config> resulting in no config at all
2019-12-18 00:33:40 +01:00
Luflosi
b3806f4533
Fix OSError when failing to create config directory on read-only file system
...
When calling the completion code, kitty tries to access the config directory and create it if it does not exist. If kitty has no permission to create it, a temporary directory will be created instead. This will fail on a read-only file system because that raises an `OSError` and not a `PermissionError`.
In practice this happens when building kitty on macOS Catalina using Nix because `HOME` is set to `/homeless-shelter` for purity and `/` is a read-only filesystem.
2019-12-17 23:42:31 +01:00
Kovid Goyal
6d5fb4ccc6
Fix docs build warning
2019-12-17 20:44:32 +05:30
Kovid Goyal
2487f18f24
Add a new option active_tab_title_template to specify a different template for active tab titles
...
Fixes #2198
2019-12-17 20:39:46 +05:30
Kovid Goyal
f59afff1d1
Add a new option tab_bar_background to specify a different color for the tab bar
...
Fixes #2198
2019-12-17 20:08:33 +05:30
Kovid Goyal
b92f95b092
NSGL: Fix disabling of Retina resolution
...
From upstream: fa60269245
2019-12-15 20:54:21 +05:30
Kovid Goyal
d68ae01448
Make the active window history available when doing kitty @ ls
...
Fixes #2194
2019-12-13 18:17:13 +05:30
Kovid Goyal
87eda834d3
Use a token for github
2019-12-12 10:05:11 +05:30
Luflosi
c28ff5259a
Finish implementing resize by increment
2019-12-09 08:38:41 +01:00
Anders Eurenius
4619259e26
Implement resize by increment
2019-12-09 08:33:32 +01:00
Kovid Goyal
7bf0afa621
Fix #2187
2019-12-08 22:37:47 +05:30
Kovid Goyal
e3e02c7271
Fix #2180
2019-12-01 22:34:56 +05:30
Kovid Goyal
24e17cb7d8
Fix background_opacity incorrectly applying to selected text and reverse video text
...
Fixes #2177
2019-12-01 15:14:15 +05:30
Kovid Goyal
769998adca
Document valid values for pointer_shape_when_grabbed
2019-12-01 08:22:21 +05:30
Kovid Goyal
9b5d88e92d
Fix choose item mapping
2019-11-30 17:18:02 +05:30
Kovid Goyal
6d7bebee3a
Merge branch 'master' of https://github.com/l-yc/kitty
2019-11-30 16:58:28 +05:30
lyc
1c38654321
Fixed bug in loading libcanberra when falling back on alternative library names
2019-11-30 14:36:22 +08:00
Kovid Goyal
da7a78691f
Merge branch 'simplify' of https://github.com/Luflosi/kitty
2019-11-29 09:21:32 +05:30
Luflosi
1eaf7083ef
Simplify expression
2019-11-28 23:38:42 +01:00
Kovid Goyal
79a6fcdc5c
Oops
2019-11-28 10:12:21 +05:30
Kovid Goyal
90bcbbf426
No need to add index to titles when using hits kitten to choose tab/os_window
2019-11-28 10:11:14 +05:30
Kovid Goyal
41049e2a40
Avoid traceback when cancelling tab selection
2019-11-28 09:42:55 +05:30
Kovid Goyal
c9b8510e9c
Also use ascending order for os window selection
2019-11-28 09:23:08 +05:30
Kovid Goyal
d854fc1cd0
Better numbering when asking for tab to detach window to
...
Fixes #2174
2019-11-28 09:20:38 +05:30
Kovid Goyal
5f7bcae072
hints kitten: Add an option --ascending to control if the hints numbers increase or decrease from top to bottom
2019-11-28 09:20:02 +05:30
Kovid Goyal
652eec3033
Fix a crash/incorrect rendering when detaching a window in some circumstances
...
Fixes #2173
Ensure all cell related GPU data is resent
2019-11-28 09:01:40 +05:30
Kovid Goyal
a9928ec98a
Merge branch 'format' of https://github.com/Luflosi/kitty
2019-11-28 07:24:06 +05:30
Luflosi
e1dfb608ca
Format code in kitty/cocoa_window.m a little
2019-11-27 19:56:30 +01:00
Kovid Goyal
2cee3a8809
Better fix for getting clock_gettime() from time.h
...
Fixes #2169
2019-11-27 22:20:55 +05:30
Kovid Goyal
804f72b31a
Get monotonic.h to build on older linux distros
2019-11-27 09:55:00 +05:30
Kovid Goyal
e106dcc83b
Dont use -Wfloat-conversion on old compilers
2019-11-27 09:27:23 +05:30
Kovid Goyal
9347be639b
version 0.15.0
2019-11-27 09:23:01 +05:30
Kovid Goyal
ffc0c42a63
Merge branch 'faq-font-clarification' of https://github.com/ricci/kitty
2019-11-27 07:31:51 +05:30
Robert Ricci
f5e855b3ad
Direct user to rebuild fc-cache in font FAQ
...
The configuration file that's suggested to force a font to
show up as monospace is very helpful, but it appears you may
need to force fontconfig to rebuild the cache in order for the
change to take effect.
2019-11-26 12:02:23 -07:00
Kovid Goyal
9af4dc4bff
Merge branch 'redirect' of https://github.com/Luflosi/kitty
2019-11-26 22:13:51 +05:30
Luflosi
6f6180c34a
Change URL to avoid redirect
...
Since `https://sw.kovidgoyal.net/kitty ` redirects to `https://sw.kovidgoyal.net/kitty/ `, it would be better to directly use the second URL.
2019-11-26 17:23:21 +01:00
Kovid Goyal
6ddd751713
Merge branch 'simplify' of https://github.com/Luflosi/kitty
2019-11-26 21:09:40 +05:30
Luflosi
2c72b06012
Simplify conditions
2019-11-26 16:06:16 +01:00
Kovid Goyal
88854c1aa4
Merge branch 'fix_stdin_source' of https://github.com/miseran/kitty
2019-11-26 06:47:21 +05:30
Reto Schnyder
5ad704469f
Fix condition in stdin selection for launch
2019-11-25 20:10:18 +01:00
Kovid Goyal
c140e17a6f
Merge branch 'undo_commenting_out' of https://github.com/Luflosi/kitty
2019-11-24 18:08:14 +05:30
Luflosi
4fc733a9c8
Comment commented out code back in
...
This piece of code is not run when the `GLFW_COCOA_MENUBAR` init hint is set to `0`, which kitty does.
This reduces the difference to GLFW upstream a little.
2019-11-24 13:29:06 +01:00
Kovid Goyal
c5c59e4c55
Merge branch 'return_type' of https://github.com/Luflosi/kitty
2019-11-24 17:56:26 +05:30
Luflosi
e0edef6719
Change return type of two functions
...
`on_application_reopen()` and `intercept_cocoa_fullscreen()` both only have two possible return values and can therefore have a return type of `bool`.
2019-11-24 13:06:46 +01:00
Kovid Goyal
0f46ce49e2
Merge branch 'create_menu_bar_in_callback' of https://github.com/Luflosi/kitty
2019-11-24 13:27:35 +05:30
Luflosi
f9fd39b8c1
Create macOS menu bar where GLFW creates it
...
GLFW creates the menu bar in the applicationWillFinishLaunching method, while kitty creates it in `create_os_window()`. This patch changes the behaviour to match GLFW.
In practice, without this change, there can be a short time where the menu bar is not fully populated.
2019-11-24 08:43:01 +01:00
Kovid Goyal
bd75157428
macOS: Disable mouse hiding by default as getting it to work robustly on Cocoa is too much effort
...
See #2158
2019-11-24 11:29:23 +05:30
Kovid Goyal
f987f3ba77
Merge branch 'remove_obsolete_comment' of https://github.com/Luflosi/kitty
2019-11-24 08:09:14 +05:30
Luflosi
1c16806efd
Remove obsolete comment
...
In bef9490fa8 , `unjam_event_loop()` was removed but not the corresponding comment.
2019-11-23 17:51:38 +01:00
Kovid Goyal
29155fef23
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-11-23 18:59:07 +05:30
Luflosi
c05cbed5b2
Reduce difference to GLFW upstream
2019-11-23 13:19:06 +01:00
Kovid Goyal
4f85d4db71
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-11-22 20:16:22 +05:30
Luflosi
468468ab9f
Wayland: Don’t update cursor position in the frame
...
From upstream: a80788c17f .
2019-11-22 12:38:56 +01:00
Kovid Goyal
1b4a6da577
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-11-22 07:11:14 +05:30
Luflosi
aed7a197c7
Wayland: Don’t reload the cursor on every pointer motion
...
From upstream: a9f674e719 .
2019-11-22 02:35:14 +01:00
Kovid Goyal
c257b7ecfd
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-11-22 07:00:04 +05:30
Luflosi
d6072f6218
X11: Assume 96 DPI if RandR monitor size is zero
...
From upstream: e96dc5d219 .
2019-11-22 02:07:34 +01:00
Kovid Goyal
4ea72a2892
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-11-22 06:34:42 +05:30
Luflosi
89b07a1c6b
Cocoa: Fix full screen window iconification
...
From upstream: 2c519709be .
2019-11-22 01:56:55 +01:00
Kovid Goyal
db0cd61807
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-11-22 06:17:47 +05:30
Luflosi
6feb906953
Cocoa: Cleanup
...
From upstream: bd452016be .
2019-11-21 18:30:03 +01:00
Kovid Goyal
7cbf8c63bc
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-11-21 20:00:30 +05:30
Luflosi
fae51d4e00
Cocoa: Add comments for Cocoa symbol macros
...
From upstream: 94cb0347ab .
2019-11-21 14:40:34 +01:00
Kovid Goyal
c510584afd
Dont hang trying to read shell environment if the shell never quits. Fixes #2143
2019-11-20 11:53:28 +05:30
Kovid Goyal
738878c2ff
unicode input kitten: Add an option :option:kitty +kitten unicode_input --emoji-variation to control the presentation variant of selected emojis
...
Fixes #2139
2019-11-17 13:13:37 +05:30
Kovid Goyal
d5682fe49a
Fix #2137
2019-11-17 08:35:23 +05:30
Kovid Goyal
d8dd22048a
Wayland: Ensure that glfw window content scale and kitty window content scale are in sync after the window is placed on a monitor
2019-11-16 10:47:05 +05:30
Kovid Goyal
737d8b96b6
Wayland: Dont bother with creating a temporary window anyway, as it is useless
2019-11-16 10:27:01 +05:30
Kovid Goyal
c8627c9713
Expand user/env vars in csutomize processing path and note that absolute paths can be used in the docs for it.
2019-11-16 10:05:25 +05:30
Kovid Goyal
65fa7da24a
Wayland: Use the primary monitor scale for windows on creation
...
This is needed because on creation the window may not have been assigned
to any monitors, so we fallback to using the scale of the primary
monitor. Fixes #2133 . Fixes #2135
2019-11-16 10:00:41 +05:30
Kovid Goyal
c4c6ef799f
Dont shadow data
2019-11-13 19:47:08 +05:30
Kovid Goyal
0d18b91895
Grammar
2019-11-13 19:45:48 +05:30
Kovid Goyal
42089aaadc
typo
2019-11-13 19:45:28 +05:30
Kovid Goyal
432d0f3318
hints kitten: Allow passing extra CLI args when using --customize-procesing
2019-11-13 17:27:55 +05:30
Kovid Goyal
4ade6587e8
spelling
2019-11-13 16:57:11 +05:30
Kovid Goyal
1724f11429
Deprecate pipe in favor of launch
2019-11-13 16:08:48 +05:30
Kovid Goyal
75d66d1048
Changelog entry for launch
2019-11-13 15:44:57 +05:30
Kovid Goyal
feccef67b9
Document the new launch action
2019-11-13 15:43:38 +05:30
Kovid Goyal
a7d30a199d
location should also apply to tab creation
2019-11-13 15:40:46 +05:30
Kovid Goyal
37bbfb11d3
Fix location=neighbor causing a hang on a new tab
2019-11-13 15:39:38 +05:30
Kovid Goyal
79c80b4043
Fix doc generation
2019-11-13 15:03:02 +05:30
Kovid Goyal
18a1402ae2
Remote control interface for launch
2019-11-13 15:00:13 +05:30
Kovid Goyal
5d639b91b0
Switch OS windows when focusing on platforms where it is supported
2019-11-13 14:59:49 +05:30
Kovid Goyal
080c09d22e
DRYer
2019-11-13 14:41:45 +05:30
Kovid Goyal
00c2670039
Fix handing of --stdin-source and getting of active window
2019-11-13 14:39:44 +05:30
Kovid Goyal
f113184165
Micro-optimization
2019-11-13 14:39:06 +05:30
Kovid Goyal
d69f8af107
Add a --keep-focus option for launch
2019-11-13 11:48:30 +05:30
Kovid Goyal
ad2bd1bf63
Allow using @selection in the launch cmdline
2019-11-13 10:46:04 +05:30
Kovid Goyal
059786ab66
Implement piping for launch
2019-11-13 10:38:58 +05:30
Kovid Goyal
72dfa5e5e6
Allow creating overlays via launch
2019-11-13 10:14:32 +05:30
Kovid Goyal
d84da6b7b8
Documentation placeholder for the new launch interface
2019-11-13 10:09:43 +05:30
Kovid Goyal
6aa82d82ad
Start work on a unified interface for launching processes
2019-11-13 09:58:28 +05:30
Kovid Goyal
a649eb2a48
Coalesce neighboring symbol maps for better lookup performance
2019-11-12 20:05:48 +05:30
Kovid Goyal
83932c8099
Add a remote control command for detach_tab
2019-11-12 15:03:58 +05:30
Kovid Goyal
95e36cece1
Add a detach_window remote control command
2019-11-12 13:04:28 +05:30
Kovid Goyal
7075a7f1c0
Only detach window after the ask overlay is removed
2019-11-12 10:59:36 +05:30
Kovid Goyal
3093610d26
Allow choosing new os window/tab during detach ask
2019-11-12 10:42:07 +05:30
Kovid Goyal
86eed7f895
Speed up taking over of tab
2019-11-12 10:38:57 +05:30
Kovid Goyal
5dc14c5861
Copy cwd when taking over tab
2019-11-12 10:24:37 +05:30
Kovid Goyal
cab87f6fb2
Ensure Tab has cwd even with no initial window
2019-11-12 10:18:42 +05:30
Kovid Goyal
fb3acd1f4a
Add a detach_tab command
2019-11-12 10:07:44 +05:30
Kovid Goyal
b247cef85c
...
2019-11-12 08:46:41 +05:30
Kovid Goyal
70445f33e9
Another typo
2019-11-12 06:30:21 +05:30
Kovid Goyal
cadb4f1389
...
2019-11-12 06:29:55 +05:30
Kovid Goyal
bf75a4de61
Also document debug()
2019-11-12 06:25:27 +05:30
Kovid Goyal
400ab584ac
hints kitten: Allow completely customizing the matching and actions performed by the kitten using your own script
...
Fixes #2124
2019-11-11 21:26:42 +05:30
Kovid Goyal
9edad62144
hints kitten: Allow using named groups in the regular expression. The named groups are passed to the invoked program for further processing.
2019-11-11 17:34:19 +05:30
Kovid Goyal
e94205098f
Fix link
2019-11-11 16:00:35 +05:30
Kovid Goyal
35ab7eb472
Add a new action :ref:detach_window that can be used to move the current window into a different tab
...
Fixes #1310
2019-11-11 15:47:48 +05:30
Kovid Goyal
18619b14ac
Merge branch 'simplify' of https://github.com/Luflosi/kitty
2019-11-10 23:35:27 +05:30
Luflosi
97e0b9b65a
Simplify code
2019-11-10 16:51:25 +01:00
Kovid Goyal
5175d9f4a6
Properly re-initialize GPU resources when detaching/attaching a window
2019-11-09 13:14:50 +05:30
Kovid Goyal
a5aed0f4ab
Forgot to change tab_ref when attaching window
2019-11-09 11:23:04 +05:30
Kovid Goyal
14d693a8ff
When attaching window make its parent tab active
2019-11-09 11:09:29 +05:30
Kovid Goyal
645963cc24
Cleanup tab after detaching window
2019-11-09 09:42:17 +05:30
Kovid Goyal
20751c2807
Start work on a detach_window command
2019-11-09 09:20:38 +05:30
Kovid Goyal
dda886b97c
Merge branch 'caps_lock_modifier' of https://github.com/Luflosi/kitty
2019-11-09 08:31:59 +05:30
Luflosi
b796ceecdd
Add Caps Lock to the list of modifier keys
...
When a key is pressed and `mouse_hide_wait` is less than zero, kitty will hide the mouse cursor. When a key is pressed, kitty will also scroll the history to the bottom. Both of these things don't happen if the key being pressed was a modifier key. Both of these things should not happen when Caps Lock is pressed, so this key should be added to the list of modifier keys.
`is_modifier_key()` is not used for anything else.
2019-11-09 00:41:12 +01:00
Kovid Goyal
4def89ebb5
Add a note on debugging custom kittens
2019-11-08 16:53:26 +05:30
Kovid Goyal
bd1c1839dd
Add API to boss.py to move a window into a different tab
2019-11-08 16:18:52 +05:30
Kovid Goyal
8739f698f9
When attaching window and font sizes changes, resize Screen
2019-11-08 14:58:08 +05:30
Kovid Goyal
b8c8482f20
Better fix for Powerline lacking a space glyph
...
This does not require increasing the size of the cache key, thereby
improving cache lookup performance
2019-11-08 14:41:31 +05:30
Kovid Goyal
4348ca8cc5
Remove unused function
2019-11-08 14:29:41 +05:30
Kovid Goyal
d1aa59080f
Add an API to attach and detach windows from tabs
2019-11-08 14:22:02 +05:30
Kovid Goyal
bf0ffa80be
Merge branch 'feature-window-to-tab' of https://github.com/0x17de/kitty
...
Currently only merged the function to move internal window state.
Want to refactor the changes to tabs.py and boss.py to make them more
orthogonal.
2019-11-08 09:55:51 +05:30
Kovid Goyal
2a89a0c87e
Merge branch 'master' of https://github.com/martinpelikan/kitty
2019-11-08 07:57:47 +05:30
Kovid Goyal
de84489a20
Fix a regression in 0.14.5 that caused rendering of private use glyphs with and without spaces to be identical
...
Fixes #2117
2019-11-08 07:55:41 +05:30
Martin Pelikan
40901778ad
Update fish completion docs for fish 3.0.0
...
As of 3.0.0, fish sources `kitty +complete fish` by default.
2019-11-07 18:11:47 -08:00
Kovid Goyal
c1febea659
Merge branch 'restore_error_reporting' of https://github.com/Luflosi/kitty
2019-11-05 07:07:03 +05:30
Luflosi
b42f4ac288
Restore proper error reporting functionality
...
In 841c907efc , the `%m` format specifier was replaced by `%%m`, which just prints `%m`. To keep the functionality of `%m` without using `%m`, the error string can be printed manually.
2019-11-05 00:42:29 +01:00
Kovid Goyal
fae57a5868
Website: Add a scrollbar to the sidebar if needed
2019-11-04 18:05:08 +05:30
Kovid Goyal
7a02d09508
Merge branch 'master' of https://github.com/CD3/kitty
2019-11-01 23:23:22 +05:30
C.D. Clark III
8ec6fe960d
docs: added '@selection' to pipe documentation.
2019-11-01 08:46:49 -05:00
Kovid Goyal
61a77e19ef
X11: Fix content scale fallback value on KDE
...
From upstream: 75294462b3
2019-10-31 09:10:01 +05:30
Kovid Goyal
82e88b54c7
X11: Fix decoration enabling after window creation
...
From upstream: 5fc4c01302
2019-10-31 09:04:45 +05:30
Kovid Goyal
ab8975f4da
Merge branch 'with_suppress' of https://github.com/Luflosi/kitty
2019-10-29 10:17:19 +05:30
Luflosi
5e7fd21c8d
Use "with suppress()" to suppress a python exception
2019-10-28 18:35:21 +01:00
Kovid Goyal
30cd9b2ae4
Merge branch 'fix_two_linker_error' of https://github.com/Luflosi/kitty
2019-10-28 07:31:49 +05:30
Luflosi
4f7d12f3fd
Fix error when two linker processes fail
...
When a linker process fails, `failed` will be set to a value other than `None`. When a second linker process fails, the `else` case will be taken because `failed is None`, which executes `compile_cmd.on_success()`. This function tries to rename or move the file generated by the linker but since the linker process failed, the file will most likely not exist. This will throw an error, which will prevent printing the actual error message from the linker.
2019-10-27 21:50:22 +01:00
Kovid Goyal
62da158823
Merge branch 'fix_potential_error' of https://github.com/Luflosi/kitty
2019-10-27 07:42:21 +05:30
Luflosi
2d19b87208
Fix potential error when $PATH is not defined
...
When `PATH` is not in `os.environ`, kitty could potentially throw a `KeyError`.
2019-10-27 00:10:55 +02:00
Kovid Goyal
54ca775006
Merge branch 'visual' of https://github.com/toonn/kitty
2019-10-26 09:10:15 +05:30
toonn
a64a0d64cb
Prefer VISUAL to EDITOR
...
Fix #2096
2019-10-25 18:52:17 +02:00
Kovid Goyal
6634dc81fe
Merge branch 'simplify' of https://github.com/Luflosi/kitty
2019-10-25 07:45:30 +05:30
Luflosi
a2d5eef398
Simplify access to os.environ
...
The `if` can be removed by using `get()` with a default parameter to access `os.environ`. This also reduces the number of accesses to `os.environ`.
2019-10-24 20:27:27 +02:00
Kovid Goyal
8184ba246a
Load libcanberra dynamically at runtime, as needed
...
Fixes #2089
2019-10-24 09:03:52 +05:30
Kovid Goyal
54ad1d103a
Fix #2087
2019-10-23 18:21:34 +05:30
Kovid Goyal
d92f8a90ef
Allow changing colors by mapping a keyboard shortcut to read a kitty config file with color definitions.
...
Fixes #2083
2019-10-21 14:43:35 +05:30
Kovid Goyal
d33c287344
typo
2019-10-21 14:23:07 +05:30
Kovid Goyal
782eebf976
typo
2019-10-21 14:21:09 +05:30
Kovid Goyal
0fbf75b95a
Allow specifying that remote control only works over a socket
2019-10-21 14:20:30 +05:30
Kovid Goyal
5781facf4b
Merge branch 'fix_icat' of https://github.com/Luflosi/kitty
2019-10-21 07:32:40 +05:30
Luflosi
b710ffc403
Fix icat kitten
...
Fixes https://github.com/kovidgoyal/kitty/issues/2081 .
This bug was introduced in 10e5fcc375 .
One place in the code requires the actual `screen_size_function`, not just the result of it.
2019-10-20 21:37:14 +02:00
Kovid Goyal
7d8edccb04
Merge branch 'pending_scroll_pixels_per_screen' of https://github.com/Luflosi/kitty
2019-10-20 16:58:28 +05:30
Luflosi
3750d70173
Store pending_scroll_pixels for every screen
...
Scrolling in one screen shouldn't affect the `pending_scroll_pixels` for another screen in the same OS window.
2019-10-20 13:22:46 +02:00
Kovid Goyal
025e0bb546
Merge branch 'var-names-consistency-wrt-scancode' of https://github.com/bew/kitty
2019-10-20 08:08:48 +05:30
Kovid Goyal
033367de91
Merge branch 'fix_line_drawing' of https://github.com/Luflosi/kitty
2019-10-19 06:26:57 +05:30
Luflosi
f93b605b75
Fix line drawing algorithm
2019-10-18 21:26:11 +02:00
Kovid Goyal
7b4141b0c8
Add a changelog entry for powerline tabbar
2019-10-18 19:38:08 +05:30
Kovid Goyal
90acef72dc
Merge branch 'add_powerline_style_tabs' of https://github.com/brujoand/kitty
2019-10-18 19:36:31 +05:30
Kovid Goyal
43f200be77
Add an entry for the new box character rendering functions
2019-10-18 17:24:33 +05:30
Kovid Goyal
2fbb167803
Merge branch 'fix-triangle-symbol-scaling' of https://github.com/bew/kitty
2019-10-18 17:13:50 +05:30
Benoit de Chezelles
2b396262f0
Update glyph ids
2019-10-18 11:48:55 +02:00
Benoit de Chezelles
74deca52b9
Remove trailing whitespace
2019-10-18 11:39:51 +02:00
Benoit de Chezelles
058d956464
Merge branch 'master' into fix-triangle-symbol-scaling
2019-10-18 11:30:46 +02:00
brujoand
0f38dc1bd1
Adding powerline style tabs
2019-10-18 11:18:28 +02:00
Kovid Goyal
576b03c047
Implement drawing thick anti-aliased lines
...
And actually use it for the unicode diagonal box drawing chars and also
the powerline angle separators
2019-10-18 13:19:04 +05:30
Kovid Goyal
59cb1ad1e0
Implement special rendering for the diagonal line box drawing chars
2019-10-18 11:01:51 +05:30
Benoit de Chezelles
f77acdce14
remove useless import in help msg for box drawing debug
2019-10-18 06:08:45 +02:00
Benoit de Chezelles
43a98a1df1
Add missing association between char & glyph id
2019-10-18 06:08:20 +02:00
Benoit de Chezelles
d1cf771c14
Add other corner triangles & enable in C side
2019-10-18 05:45:13 +02:00
Benoit de Chezelles
10e5fcc375
Fix usage of icat function show
...
The `screen_size` function was not initialized yet
2019-10-18 04:54:14 +02:00
Benoit de Chezelles
2112932d04
Add corner triangle glyphs drawing
2019-10-18 04:48:03 +02:00
Benoit de Chezelles
be505ce6e0
Fix test functions for setup_for_testing's new call syntax
2019-10-18 04:47:04 +02:00
Benoit de Chezelles
4d6472128c
Rename scancode to keycode for cocoa implementation
2019-10-17 20:41:48 +02:00
Kovid Goyal
26b7b1ec63
Merge branch 'typo' of https://github.com/Luflosi/kitty
2019-10-17 18:32:42 +05:30
Luflosi
9a8f0a9b5a
Fix typo
2019-10-17 13:56:46 +02:00
Kovid Goyal
16dbbf3a1e
Make count-lines-of-code a little nicer
2019-10-17 15:19:13 +05:30
Kovid Goyal
8492d0a264
Merge branch 'dont_cloc_parse-graphics-command.h' of https://github.com/Luflosi/kitty
2019-10-17 14:36:53 +05:30
Luflosi
d8f8f1f590
Exclude kitty/parse-graphics-command.h from the line count
...
This file is automatically generated and should not count towards the total line count.
2019-10-17 10:38:55 +02:00
Kovid Goyal
b762e81da0
Merge branch 'python_encoding_header' of https://github.com/Luflosi/kitty
2019-10-17 06:28:16 +05:30
Luflosi
8b3b68ea69
Unify python encoding headers
...
All the other python encoding headers are of the form `vim:fileencoding=utf-8`.
2019-10-16 20:34:56 +02:00
Benoit de Chezelles
28525766a5
Final changes before 'ready for review'
2019-10-16 02:47:14 +02:00
Benoit de Chezelles
d8fc23c38f
remove outdated 'fixme'
2019-10-16 02:41:26 +02:00
Benoit de Chezelles
8cae70fa36
Update doc
2019-10-16 02:36:55 +02:00
Benoit de Chezelles
7f2b98fad7
Rename all uses of 'scancode' to 'native_key' where relevant
2019-10-16 02:25:20 +02:00
Benoit de Chezelles
2b6dde2ac5
Wish: rename scancode → native_key in glfw codebase
2019-10-16 02:00:24 +02:00
Benoit de Chezelles
0c254fa7c7
GLFWkeyevent: rename scancode → native_key
2019-10-16 02:00:24 +02:00
Kovid Goyal
fe7375becc
Merge branch 'grammar' of https://github.com/Luflosi/kitty
2019-10-16 04:19:54 +05:30
Luflosi
b6ee88056e
Minor grammar correction
2019-10-16 00:46:52 +02:00
Kovid Goyal
96f691ad64
Merge branch 'mark_parse-graphics-command.h_as_generated' of https://github.com/Luflosi/kitty
2019-10-16 03:31:32 +05:30
Luflosi
8cf3380a77
Mark kitty/parse-graphics-command.h as being generated
2019-10-15 18:16:28 +02:00
Kovid Goyal
e8d7e3e98b
Merge branch 'remove_khrplatform.h_references' of https://github.com/Luflosi/kitty
2019-10-15 20:58:16 +05:30
Luflosi
8af0a8476f
Remove remaining references to kitty/khrplatform.h
...
`kitty/khrplatform.h` was removed in f872f955b0 .
2019-10-15 17:25:47 +02:00
Kovid Goyal
2de4248f76
Merge branch 'regenerate_glfw-wrapper' of https://github.com/Luflosi/kitty
2019-10-15 20:42:49 +05:30
Luflosi
8c73ab6afb
Regenerate kitty/glfw-wrapper.h
2019-10-15 17:10:02 +02:00
Kovid Goyal
ee9bd77dc4
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-10-15 19:10:50 +05:30
Luflosi
81f31ca215
Reduce difference of glfw/glfw3.h to GLFW upstream
2019-10-15 15:37:35 +02:00
Kovid Goyal
51eff372f8
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-10-15 18:16:22 +05:30
Luflosi
087376b44d
GLFW: Documentation work
...
From upstream: a43d1a4937 .
2019-10-15 14:37:41 +02:00
Kovid Goyal
e49047ef7d
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-10-15 18:02:17 +05:30
Luflosi
c117f36009
GLFW: Cleanup
...
From upstream: d5ab3e919a .
2019-10-15 14:25:46 +02:00
Kovid Goyal
5ec83ee759
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-10-15 16:17:49 +05:30
Luflosi
410165c14d
GLFW: Improve (?) reference documentation for callbacks
...
From upstream: 51bb76c7c3 .
2019-10-15 12:11:01 +02:00
Kovid Goyal
973ef9fcda
Merge branch 'fix_nix_link' of https://github.com/Luflosi/kitty
2019-10-15 04:14:04 +05:30
Luflosi
396bfb8540
Fix link to Nix kitty package
...
Instead of a fragment identifier, the URL now needs a query parameter.
2019-10-14 18:48:21 +02:00
Kovid Goyal
aaf597bffd
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-10-13 09:08:15 +05:30
Luflosi
63c4f64bf5
Reduce difference to GLFW upstream
...
From upstream: 773f4495f0 .
2019-10-12 15:19:44 +02:00
Kovid Goyal
5745dc34f7
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-10-12 17:58:50 +05:30
Luflosi
114b8cff93
Cleanup
...
From upstream: 62b7fe8311 .
2019-10-11 20:26:27 +02:00
Kovid Goyal
261571bb69
Merge branch 'modern_objective-c' of https://github.com/Luflosi/kitty
2019-10-10 22:01:30 +05:30
Manuel Herrmann
497e2c9163
#1310 move windows into separate tabs
2019-10-10 17:13:34 +02:00
Luflosi
ac01ffaa54
Cocoa: Move slightly towards modern Objective-C
2019-10-10 14:36:52 +02:00
Kovid Goyal
eb9fe06d10
Merge branch 'correct_space' of https://github.com/Luflosi/kitty
2019-10-09 22:15:38 +05:30
Luflosi
506f2f7db7
Replace weird character with space
...
In 4c4c6ab0e6 you added a weird unicode character, which is apparently called an Object Replacement Character, instead of a space.
2019-10-09 18:32:49 +02:00
Kovid Goyal
f476c56f91
Drop support for the gtk_primary_selection wayland protocol
...
sway recently decided to start complaining when binding
wp_primary_selection_device_manager interface to gtk_primary_selection
name, which means we either have to maintain an in-tree version
of the gtk_primary_selection protocol or drop support for sway.
Sway has not quite annoyed me enough yet for the latter.
See #1977
2019-10-09 07:37:03 +05:30
Kovid Goyal
474688888d
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-10-08 17:16:51 +05:30
Luflosi
7ddbb613fe
Cocoa: Fix window creation blocking after re-init
...
From 2fbb560eb7 .
2019-10-08 13:41:10 +02:00
Kovid Goyal
adc1c06089
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-10-08 12:12:00 +05:30
Luflosi
1f8631cc99
Cocoa: Move app delegate and menu creation to init
...
From ea7eb2ddab .
2019-10-07 21:24:58 +02:00
Kovid Goyal
f9e4e71285
Slightly better error message when opening controlling terminal fails
2019-10-07 20:48:31 +05:30
Kovid Goyal
5529194c8d
Merge branch 'glfw_upstream' of https://github.com/Luflosi/kitty
2019-10-06 20:39:25 +05:30
Luflosi
5b008163af
Cocoa: Add NSApplicationDelegate protocol
...
From c3ed70a4b7 .
2019-10-06 16:58:06 +02:00
Kovid Goyal
802da7087c
diff kitten: Allow diffing remote files easily via ssh
...
See #727
2019-10-04 09:08:22 +05:30
Kovid Goyal
53ab7617ca
Dont use space ligatures for symbol_map fonts
...
space ligatures breaks in font ligatures when there is a trailing space.
So only use them for PUA and cells using a fallback font. Fixes #2019
2019-10-02 07:10:51 +05:30
Kovid Goyal
4369255a25
When drawing unicode symbols that are followed by spaces, use multiple cells to avoid resized or cut-off glyphs
...
Fixes #1452
2019-10-01 19:56:07 +05:30
Kovid Goyal
b709ee6842
Add a function to check if a codepoint is a symbol
2019-10-01 18:57:06 +05:30
Kovid Goyal
4a8f9efe79
Wayland: Resume key repeat on focus gained if the previously repeated key is pressed
2019-09-30 18:47:43 +05:30
Kovid Goyal
19d36fbe69
Wayland: Fix key repeat not being stopped when focus leaves window. This is expected behavior on Wayland, apparently
...
Fixes #2014
2019-09-30 16:45:39 +05:30
Kovid Goyal
d37e73db54
Merge branch 'fix_broken_paste' of https://github.com/Luflosi/kitty
...
Fixes #2008
2019-09-29 08:02:31 +05:30
Luflosi
a8f6615380
Fix broken paste on X11
...
Fixes https://github.com/kovidgoyal/kitty/issues/2008 .
2019-09-29 02:48:09 +02:00
Kovid Goyal
97fe38fbbc
monotonic_start_time needs to be a global symbol, not local to each translation unit
2019-09-28 08:18:21 +05:30
Kovid Goyal
3378175450
Hopefully the last macOS float conversion fix
2019-09-27 20:14:05 +05:30
Kovid Goyal
9f60d2aea3
More macOS float conversion fixes
2019-09-27 20:11:32 +05:30
Kovid Goyal
46d49e18c0
More macOS float fixes
2019-09-27 20:07:09 +05:30
Kovid Goyal
43fc335be2
more macOS float fixes
2019-09-27 20:05:11 +05:30
Kovid Goyal
f68339c571
float conversion fixes for macOS
2019-09-27 19:56:48 +05:30
Kovid Goyal
0d68b7078c
Check for float conversion issues on build
...
Useful to catch any errors left over from the migration of times from
double to int64_t
2019-09-27 19:47:25 +05:30
Kovid Goyal
2e71dde780
Merge branch 'monotonic_t' of https://github.com/Luflosi/kitty
2019-09-27 19:23:27 +05:30
Kovid Goyal
51ddd584d6
Merge branch 'mark_unicode_data_as_generated' of https://github.com/Luflosi/kitty
2019-09-27 09:21:29 +05:30
Luflosi
4b090259cd
Mark kitty/unicode-data.c as being generated
2019-09-26 21:54:42 +02:00
Luflosi
f3b9ff5f9f
Use datatype monotonic_t instead of double to keep track of time
...
The time is stored in a signed 64 bit integer with nanosecond accuracy. This eliminates the possibility of floating-point inaccuracies.
`monotonic_t` can currently hold values large enough to work correctly for more than 200 years into the future.
Using a typedef instead of directly using `int64_t` everywhere will also allow easily changing the datatype in the future should the need arise for more precise or bigger time values.
2019-09-25 17:43:11 +02:00
Kovid Goyal
4ec1a8d9c3
Merge branch 'extract-glfw-key-event-data' of https://github.com/bew/kitty
2019-09-25 15:44:56 +05:30
Kovid Goyal
350cfeb7ef
version 0.14.6
2019-09-25 11:28:55 +05:30
Kovid Goyal
97d379b13e
Add changelog entry for DPI change PR
2019-09-25 06:34:55 +05:30
Kovid Goyal
2154d555e5
Merge branch 'update_check_interval_constant' of https://github.com/Luflosi/kitty
2019-09-25 06:23:05 +05:30
Luflosi
1389c36657
Use the update CHECK_INTERVAL constant
2019-09-25 02:46:19 +02:00
Kovid Goyal
bd1e7d6942
Merge branch 'master' of https://github.com/dcolascione/kitty
2019-09-25 05:56:17 +05:30
Benoit de Chezelles
aadab38487
Fix compilation for macos
2019-09-24 22:03:55 +02:00
Daniel Colascione
91299a279b
Fix window resize on DPI change
2019-09-24 12:41:23 -07:00
Benoit de Chezelles
53275c9137
Extract key event data to struct
2019-09-24 19:15:35 +02:00
Kovid Goyal
fb1c318a09
macOS: Fix a regression in the previous release that caused a crash when pressing a unprintable key, such as the POWER key
...
Fixes #1997
2019-09-24 16:07:52 +05:30
Kovid Goyal
2a07b3f46a
Fix #1995
2019-09-24 06:40:21 +05:30
Kovid Goyal
ffc4e99717
version 0.14.5
2019-09-23 08:41:38 +05:30
Kovid Goyal
fe807dd66f
Fix missing parameter name in docs
2019-09-22 19:39:22 +05:30
Kovid Goyal
40ce5db812
Add completion for listen on
2019-09-22 16:08:37 +05:30
Kovid Goyal
649a9f4a6f
oops
2019-09-22 16:01:33 +05:30
Kovid Goyal
e17ce875be
Complete more CLI args
2019-09-22 16:01:12 +05:30
Kovid Goyal
415701c58a
Add completion of filenames for --config
2019-09-22 15:52:45 +05:30
Kovid Goyal
f16f80b459
Merge branch 'glfw_null_unused_params' of https://github.com/Luflosi/kitty
2019-09-20 06:27:13 +05:30
Luflosi
628e6cc87f
Mark unused parameters in glfw/null_*.c
...
kitty didn't compile on FreeBSD for me because of unused parameters in glfw/null_joystick.c, so I added the `UNUSED` attribute to them.
I also added `UNUSED` to the unused parameters in glfw/null_monitor.c and glfw/null_window.c as well even though they are probably not used.
2019-09-19 20:21:09 +02:00
Kovid Goyal
8f9a225c3a
Use selection foreground color for underlines as well
...
Fixes #1982
2019-09-19 19:28:33 +05:30
Kovid Goyal
7b41bc95e1
Merge branch 'move_allocation_failure_check' of https://github.com/Luflosi/kitty
2019-09-19 18:45:42 +05:30
Luflosi
2d06ee5822
Move allocation failure check closer to allocation
2019-09-19 14:58:39 +02:00
Kovid Goyal
40b4fb966f
Merge branch 'add_missing_key_name_aliases' of https://github.com/Luflosi/kitty
2019-09-19 05:53:42 +05:30
Luflosi
be696a9d76
Add missing keys to key_name_aliases
2019-09-18 19:36:56 +02:00
Luflosi
1ffe9bef35
Order key_name_aliases by their ASCII value
2019-09-18 16:23:38 +02:00
Luflosi
ed70d95c44
Move aliases for common key name variations to the end of key_name_aliases
2019-09-18 16:23:01 +02:00
Kovid Goyal
49bf876f73
Merge branch 'remove_plus_key_alias' of https://github.com/Luflosi/kitty
2019-09-18 19:45:19 +05:30
Luflosi
e512b4d3e3
Remove PLUS key from key_name_aliases
2019-09-18 16:07:55 +02:00
Kovid Goyal
e78b6c7c7c
Merge branch 'faq' of https://github.com/jacwah/kitty
2019-09-18 09:49:09 +05:30
Jacob Wahlgren
a7403c0005
Update FAQ with FreeBSD termcap info
...
Thanks to amarshall's help:
https://github.com/kovidgoyal/kitty/issues/765#issuecomment-487381289
2019-09-17 22:19:51 +02:00
Kovid Goyal
5bed0dddaa
typo
2019-09-15 06:19:27 +05:30
Kovid Goyal
bc302dad23
Linux: Allow using fonts with spacing=90 in addition to fonts with spacing=100
...
Fixes #1968
2019-09-15 06:08:40 +05:30
Kovid Goyal
41b0f8852f
Only update config_key_map with those entries in key_name_aliases that exist in ENCODING
2019-09-15 04:24:32 +05:30
Kovid Goyal
2fadd3e7ba
Add a note to the fontconfig FAQ about how to override spacing
2019-09-15 04:09:26 +05:30
Kovid Goyal
dcfd2b8d60
Fix incorrect rendering of some symbols when followed by a space while using the PowerLine font which does not have a space glyph
...
Fixes #1225
2019-09-14 17:56:52 +05:30
Kovid Goyal
7fe63a7aad
Add changelog entry for key mapping PR
2019-09-14 10:20:18 +05:30
Kovid Goyal
67f2ec2421
Merge branch 'keyboard_improvement' of https://github.com/Luflosi/kitty
2019-09-14 10:17:35 +05:30
Kovid Goyal
8e7a23a7b9
Merge branch 'use_OPT' of https://github.com/Luflosi/kitty
2019-09-12 13:43:12 +05:30
Luflosi
8e96a27d51
Use the OPT() macro where possible
2019-09-12 10:02:53 +02:00
Kovid Goyal
b337d4d9d5
Merge branch 'master' of https://github.com/copy/kitty
2019-09-12 07:43:35 +05:30
Fabian
d9404c0362
Fix color index 232 (should be #080808 , not black)
2019-09-11 20:01:52 +02:00
Kovid Goyal
e4ba5f449f
When resetting the terminal, also reset parser state, this allows easy recovery from incomplete escape codes
...
Fixes #1961
2019-09-09 20:56:35 +05:30
Kovid Goyal
17fd749e8d
Add some aliases when parsing config files for common key name variations
2019-09-08 19:28:41 +05:30
Luflosi
f3be5b5e57
Regenerate automatically generated key_encoding.py and keys.h
2019-09-08 12:32:20 +02:00
Luflosi
e619eb9cbb
Add more keyboard keys
2019-09-08 12:32:19 +02:00
Luflosi
a65ee155c5
Indent lookup table in _glfwGetKeyName() to allow for longer keyboard key names
2019-09-08 12:32:19 +02:00
Luflosi
4037480d2b
Allow for up to 256 keys instead of 128
2019-09-08 12:32:19 +02:00
Luflosi
97e6978ed8
Order keyboard keys by their ASCII value
2019-09-08 12:32:19 +02:00
Luflosi
f05eefcc20
Allow adding keys with Unicode names on macOS
2019-09-08 12:32:19 +02:00
Luflosi
3f926dfd8b
Use keyboard key constants instead of hardcoded values
2019-09-08 12:32:18 +02:00
Luflosi
59f64c5e33
Blacklist GLFW_KEY_LAST_PRINTABLE in kitty/keys.py
2019-09-08 12:32:18 +02:00
Luflosi
87059a2004
Add GLFW_KEY_LAST_PRINTABLE as a GLFW constant
2019-09-08 12:32:18 +02:00
Luflosi
7c52dd2bd8
Fix update_encoding() not filtering GLFW_KEY_LAST_PRINTABLE
...
b3b830bb5f did not actually make `update_encoding()` filter `GLFW_KEY_LAST_PRINTABLE` because `name` contained the key name after applying `symbolic_name()`, which replaces underscores with spaces. Instead of replacing the underscore in `LAST_PRINTABLE` with a space, I moved the check above the call to `symbolic_name()`. This is more readable and future-proof in my opinion.
2019-09-08 12:32:18 +02:00
Kovid Goyal
70c2765a6e
Allow reading session file from STDIN
2019-09-08 15:20:37 +05:30
Kovid Goyal
3618f4d642
Only try to wakeup talk thread if it has been started
2019-09-08 15:12:17 +05:30
Kovid Goyal
698569536d
Output which loo could not be woken up
2019-09-08 14:58:11 +05:30
Kovid Goyal
c398d3d16e
Cocoa: Fix glfwSetWindowSize anchor point
...
This makes glfwSetWindowSize use the top-left corner as anchor point
instead of the bottom-left corner.
Upstream: 7f02898264
2019-09-08 09:16:07 +05:30
Kovid Goyal
9dbc54aad6
Fix comparison of video modes of equal area
...
This fixes the bug of video modes being discarded if they had
a different resolution but the same area as another mode.
Upstream: 2777f6a754
2019-09-08 09:12:39 +05:30
Kovid Goyal
931cb223cd
When all visible windows have the same background color, use that as the color for the global padding, instead of the configured background color
...
See #1957
2019-09-07 18:47:15 +05:30
Kovid Goyal
336ee53fea
Merge branch 'joystick-platform' of https://github.com/jamessan/kitty
2019-09-04 08:43:16 +05:30
James McCoy
34350af61c
Only use linux_joystick.c on Linux
...
Rather than using null_joystick.c when _plat is a bsd, use
linux_joystick.c when _plat is a linux. This fixes a build issue with
other non-BSD, non-Linux platforms.
2019-09-03 23:02:16 -04:00
Kovid Goyal
72f7cb3b7d
Merge branch 'format_key_encoding' of https://github.com/Luflosi/kitty
2019-09-02 07:49:30 +05:30
Luflosi
481047a446
Format kitty/key_encoding.py with yapf
2019-09-01 17:53:52 +02:00
Kovid Goyal
3bf1d73b07
Merge branch 'add_glfw_key_last_printable' of https://github.com/Luflosi/kitty
2019-09-01 17:52:39 +05:30
Luflosi
b3b830bb5f
Make adding more printable keys slightly easier
...
When adding keys after `GLFW_KEY_UNDERSCORE`, one now needs to change a `#define` right below the last printable key instead of changing it elsewhere in the code.
This commit now also marks `GLFW_KEY_PLUS` and `GLFW_KEY_UNDERSCORE` as printable characters.
2019-09-01 11:24:14 +02:00
Kovid Goyal
def0c55df3
Merge branch 'add_missing_named_keys' of https://github.com/Luflosi/kitty
2019-09-01 05:43:27 +05:30
Luflosi
b995e00850
Add missing key to named_keys
2019-09-01 02:03:54 +02:00
Kovid Goyal
32dfc94909
Implement a hack to (mostly) preserve tabs when cat a file with them and then copying the text or passing screen contents to another program
...
It's a simple enough hack that it seems worth doing. If it causes any
issues, can always be reverted.
Fixes #1829
2019-08-31 12:37:05 +05:30
Kovid Goyal
20f7118432
version 0.14.4
2019-08-31 10:20:47 +05:30
Kovid Goyal
37e6c3f0cb
Merge branch 'bool_indentation' of https://github.com/Luflosi/kitty
2019-08-30 19:08:46 +05:30
Luflosi
0459dda5c2
Fix bool indentation
...
The wrong indentation was caused by the removal of GLFWbool in fe62700825 .
2019-08-30 15:32:20 +02:00
Kovid Goyal
a10c816c05
Merge branch 'fix_nslog_string_format' of https://github.com/Luflosi/kitty
2019-08-30 18:40:49 +05:30
Luflosi
c0c7cfacc2
Fix NSLog() printing of unicode format strings
...
See https://stackoverflow.com/questions/720052/nslog-incorrect-encoding .
The `%s` format placeholder for `NSLog()` expects an encoding other than UTF-8, which leads to garbled Unicode characters when trying to print a UTF-8 encoded string.
```Objective-C
NSLog(@"Ä %s %@", "Ä", @("Ä"));
```
prints `Ä √Ñ Ä`.
As can be seen in the example above, the workaround is to convert the UTF-8 encoded C-string to an `NSString` object and print that instead.
`debug_key()` calls `NSLog()`.
2019-08-30 15:03:51 +02:00
Kovid Goyal
8cdb6647ed
Merge branch 'fix_update_encoding' of https://github.com/Luflosi/kitty
2019-08-30 16:20:42 +05:30
Luflosi
b68e3c85b9
Add missing MENU key to key_encoding.py
2019-08-30 12:37:23 +02:00
Luflosi
ef25d5bbd5
Fix update_encoding() not adding the last key
2019-08-30 12:36:37 +02:00
Kovid Goyal
278bf6e897
Fix #1937
2019-08-30 15:02:17 +05:30
Kovid Goyal
90a985b73a
Make format_text() more secure
2019-08-28 05:41:20 +05:30
Kovid Goyal
b016353809
Some clarifications for the graphics protocol
...
See discussion on #33
2019-08-28 05:28:05 +05:30
Kovid Goyal
bc222af2e2
When dumping scrollback as ansi, reset SGR formatting at end of scrollback
2019-08-27 19:35:01 +05:30
Kovid Goyal
44599c9460
Merge branch 'simplify_compile_code' of https://github.com/Luflosi/kitty
2019-08-26 20:25:19 +05:30
Luflosi
902fc22670
Simplify GLFW compilation code
...
This commit removes the need for `is_macos` in `glfw/glfw.py` by moving a few lines of code. Instead of relying on the information that the compilation is or isn't happening on macOS, the code now does the right thing based on which `module` is being built.
This changes the order of the compilation flags slightly.
2019-08-26 16:47:19 +02:00
Kovid Goyal
d84e22fbf1
Merge branch 'fix_typos' of https://github.com/Luflosi/kitty
2019-08-26 16:34:54 +05:30
Luflosi
6cc720a350
Fix typos
...
Inspired by 4d3ee554b3 .
Found using `codespell`.
2019-08-26 12:31:15 +02:00
Kovid Goyal
c905978874
Merge branch 'fix_issue_1924' of https://github.com/s1341/kitty
...
Fixes #1924
2019-08-26 10:19:50 +05:30
Kovid Goyal
bfe595a8e8
Merge branch '_glfwInputError_format' of https://github.com/Luflosi/kitty
2019-08-26 06:24:02 +05:30
Luflosi
94d56d1a9e
Correct indentation for two _glfwInputError() messages
...
This commit changes the indentation of two error messages to match the indentation in the rest of the code.
2019-08-25 21:29:58 +02:00
s1341
bd3f0b5363
Properly handle all NULL cases
2019-08-25 17:22:06 +03:00
s1341
6fae3545c7
Fix null pointer deref
2019-08-25 16:39:39 +03:00
s1341
297963f6ab
Fix issue #1924 by making prev_cell persistent across line_as_ansi calls
2019-08-25 16:25:36 +03:00
Kovid Goyal
a0ceba407e
Merge branch 'drag_and_drop_text' of https://github.com/Luflosi/kitty
2019-08-24 08:39:27 +05:30
Kovid Goyal
35fa91fba2
When the OS returns a fallback font that does not actually contain glyphs for the text, do not exhaust the list of fallback fonts
...
Fixes #1918
Apparently fontconfig does this for Tangut components.
2019-08-24 08:27:54 +05:30
Kovid Goyal
a5d6cd169e
Fix piping PNG images into the icat kitten not working
...
Fixes #1920
2019-08-24 08:04:04 +05:30
Luflosi
06c2263657
macOS: implement drag and drop of text into kitty
...
Closes #1368 .
2019-08-24 01:29:33 +02:00
Kovid Goyal
472c6f6b8d
When running kittens, use the colorscheme of the current window rather than the configured colorscheme
...
Fixes #1906
2019-08-18 18:27:44 +05:30
Kovid Goyal
afcaca85da
Merge branch 'hints_regex_doc' of https://github.com/toonn/kitty
2019-08-18 07:41:14 +05:30
Toon Nolten
2575349ec2
Add expected regex syntax to hints kitten docs
...
The hints kitten's help documentation did not mention what syntax to use
for the regular expressions. I knew much of kitty was implemented in
python so I guessed correctly but not everyone might know this.
I also fixed some double-spaced sentences because most of them are
single-spaced.
2019-08-17 21:27:53 +02:00
Kovid Goyal
77054f688d
Workaround for window managers like xmonad that in some circumstances set window size to zero. Fixes #1910
2019-08-17 18:04:08 +05:30
Kovid Goyal
c5cb24378f
Merge branch 'fix_macos_show_window_title_in' of https://github.com/Luflosi/kitty
2019-08-14 06:36:25 +05:30
Luflosi
d66123dd14
Fix hiding the window title in macOS
...
In b5c2163238 I introduced a bug where only the window title of the first OS window would be hidden. This commit fixes that bug.
The bug was caused by the code hiding the window title being in an `if` statement that only executes once.
2019-08-13 21:02:28 +02:00
Kovid Goyal
4ef8f11f9e
Merge branch 'add_frameworks_only_once' of https://github.com/Luflosi/kitty
2019-08-11 07:43:36 +05:30
Luflosi
599be7ddc9
Don't add Apple Frameworks twice
...
These Frameworks are added again a couple lines below in the check for `module == 'cocoa'`.
2019-08-11 02:26:12 +02:00
Kovid Goyal
685497fc8c
Fix shaping test
2019-08-10 08:58:02 +05:30
Kovid Goyal
57542fc204
Only disable liga and dlig for nimbus mono
2019-08-10 08:22:36 +05:30
Kovid Goyal
8d9323aec6
Merge branch 'unnecessary_indentation' of https://github.com/Luflosi/kitty
2019-08-09 07:05:26 +05:30
Luflosi
4984a25b19
Remove unnecessary indentation
2019-08-09 03:27:22 +02:00
Kovid Goyal
3bdcb29e01
Merge branch 'trailing_whitespace' of https://github.com/Luflosi/kitty
2019-08-09 06:34:19 +05:30
Luflosi
b9ab8e6348
Remove trailing whitespace
2019-08-08 20:26:20 +02:00
Kovid Goyal
4a851701e9
Fix a regression that broke setting background_opacity via remote control
...
Fixes #1895
2019-08-07 15:09:04 +05:30
Kovid Goyal
eafd8af937
Merge branch 'glfw_3.4' of https://github.com/Luflosi/kitty
2019-08-03 07:38:14 +05:30
Luflosi
28bb123be8
Update the GLFW version number from 3.3 to 3.4
...
Closes https://github.com/kovidgoyal/kitty/issues/1884 .
From a337c56848 .
2019-08-02 11:00:16 -05:00
Kovid Goyal
8e1ed2f8c3
Update unicode data to 12.1
2019-08-02 14:48:18 +05:30
Kovid Goyal
4a0fcb3cff
Merge branch 'macos_show_window_title_in' of https://github.com/Luflosi/kitty
2019-08-02 11:51:38 +05:30
Luflosi
b5c2163238
Add option to hide the window title on macOS
...
Deprecate `macos_show_window_title_in_menubar` and create a new option `macos_show_window_title_in`.
2019-08-02 00:20:43 -05:00
Kovid Goyal
d0ecdfb330
Add a :opt:kitten_alias option that can be used to alias kitten invocation for brevity and to change kitten option defaults globally
...
See #1879
2019-08-02 10:40:11 +05:30
Kovid Goyal
bdf7d98a36
hints kitten: Allow specifying :option:kitty +kitten hints --program multiple times to run multiple programs
...
See #1879
2019-08-02 10:03:04 +05:30
Kovid Goyal
e4b0980d15
DRYer
2019-08-02 07:18:42 +05:30
Kovid Goyal
d99c57aeae
Merge branch 'open_context_manager' of https://github.com/Luflosi/kitty
2019-08-02 07:14:11 +05:30
Luflosi
5f855ce547
Use context managers to open files
...
Inspired by d50a6ddc1b .
2019-08-01 13:21:26 -05:00
Kovid Goyal
68f3b6fbeb
Fix the decode_hint function to work with an arbitrary alphabet
2019-08-01 19:31:21 +05:30
Kovid Goyal
dc6d14943e
Dont use a global variable for the hints alphabet
2019-08-01 19:24:09 +05:30
Kovid Goyal
05f7334db9
hints kitten: Add a :option:kitty +kitten hints --alphabet option to control what alphabets are used for hints
...
Fixes #1879
2019-08-01 16:25:54 +05:30
Kovid Goyal
cd707e9335
Merge branch 'wait_for_shell' of https://github.com/Luflosi/kitty
2019-08-01 12:56:12 +05:30
Luflosi
505ed5e43b
Fix crash when the shell takes too long to start when reading the environment
...
According to https://docs.python.org/3/library/subprocess.html#subprocess.Popen.wait , `wait()` throws a `TimeoutExpired` exception when the process is not done after the timeout. I noticed this because kitty crashed for me.
The old code looks like it's trying to wait as long as it takes for the process to finish, which is what I implemented.
2019-08-01 02:03:08 -05:00
Kovid Goyal
9dc8bf5f62
Merge branch 'ignore_directories' of https://github.com/Luflosi/kitty
2019-08-01 06:38:34 +05:30
Luflosi
f8098662b6
Explicitly mark directories as such in .gitignore
2019-07-31 15:27:06 -05:00
Kovid Goyal
de7a0e86c4
Merge branch 'ignore_files_only_in_root' of https://github.com/Luflosi/kitty
2019-07-31 20:56:50 +05:30
Luflosi
ca55438fda
Ignore several directories and files only in the root of the repo
...
These directories are always located in the root directory of the repository. Therefore it's better to only ignore these files in this location.
2019-07-31 10:16:19 -05:00
Kovid Goyal
a4b60e7eef
Disable the `liga and dlig` OpenType features so that kitty works with "so-called" monospace fonts such as Nimbus Mono that have non-programming ligatures.
2019-07-31 20:02:48 +05:30
Kovid Goyal
5d22e07738
More details on login shell invocation
2019-07-31 12:20:02 +05:30
Kovid Goyal
bdade7e151
Use a new controlling terminal when reading shell environment
...
This is because some people do things in their rc files based
on checking the name of the controlling terminal.
2019-07-31 11:34:54 +05:30
Kovid Goyal
6958ded4c4
Dont fail to start if running the shell to read the EDITOR env var fails
...
Fixes #1869
2019-07-31 06:37:17 +05:30
Kovid Goyal
cc06104be6
Create FUNDING.yml
...
Add links to the various funding sources
2019-07-30 15:07:12 +05:30
Kovid Goyal
059c34c345
Add a version check to the installer on macOS
2019-07-30 15:01:07 +05:30
Kovid Goyal
9cbb726566
Fix #1865
2019-07-30 06:20:54 +05:30
Kovid Goyal
e8b4356a88
Merge branch 'ignore_build_only_in_root' of https://github.com/Luflosi/kitty
2019-07-29 11:37:36 +05:30
Kovid Goyal
634138cd3b
Removed unused entry from .gitignore
...
Fixes #1859
tags is the file generated by ctags
2019-07-29 11:36:46 +05:30
Luflosi
3f6b07de81
Ignore the build directory only in the root of the repo
...
The `build` directory is always located at the root directory of the repository. Therefore it's better to only ignore `build` in this location.
2019-07-29 00:59:35 -05:00
Kovid Goyal
d218900b57
Remove unused header
2019-07-29 09:45:02 +05:30
Kovid Goyal
cab949a939
Fix building with compilers that dont support __has_include
2019-07-29 09:44:05 +05:30
Kovid Goyal
e350822f5e
version 0.14.3
2019-07-29 09:29:50 +05:30
Kovid Goyal
3d6fe93297
DRYer
2019-07-29 09:23:29 +05:30
Kovid Goyal
3a5baf2722
Merge branch 'doc/mapping_shortcuts' of https://github.com/MagicDuck/kitty
2019-07-29 09:13:16 +05:30
Stephan Badragan
cdb472cb56
Adding documentation for how to map shortcuts
2019-07-28 15:53:44 -07:00
Kovid Goyal
e634350e77
Merge branch 'indentation' of https://github.com/Luflosi/kitty
2019-07-28 10:55:49 +05:30
Luflosi
464a6c1441
Fix indentation of bool variables in glfw/egl_context.h
...
Caused by fe62700825 .
2019-07-28 00:23:17 -05:00
Kovid Goyal
d3750b2244
Merge branch 'glfw_reduce_difference' of https://github.com/Luflosi/kitty
2019-07-28 10:48:22 +05:30
Luflosi
b8d2b76ee4
Reduce the difference of glfw to upstream
2019-07-28 00:10:50 -05:00
Kovid Goyal
14fb7c3201
Merge branch 'glfw_fix_invalid_gamepad_axis_ranges' of https://github.com/Luflosi/kitty
2019-07-27 08:20:02 +05:30
Luflosi
922bc62e0e
GLFW: Fix invalid ranges for gamepad axis sources
...
From 9420e6f0d0 .
2019-07-26 13:30:38 -05:00
Kovid Goyal
00cae4ccd1
Merge branch 'indentation' of https://github.com/Luflosi/kitty
2019-07-26 23:00:25 +05:30
Luflosi
61df266df7
Fix indentation of bool variables in glfw/internal.h
...
Caused by fe62700825 .
2019-07-26 11:45:32 -05:00
Kovid Goyal
17751666f2
Merge branch 'glfw_documentation_work' of https://github.com/Luflosi/kitty
2019-07-26 12:04:32 +05:30
Luflosi
961b2c9b65
GLFW: Documentation work
...
From 3cf7645b96 .
2019-07-25 23:07:00 -05:00
Kovid Goyal
eaf6f06047
Merge branch 'remove_empty_line' of https://github.com/Luflosi/kitty
2019-07-26 08:27:57 +05:30
Luflosi
d0ac218c05
Remove empty line
2019-07-25 20:41:08 -05:00
Kovid Goyal
1a01bc15d8
Merge branch 'more_modern_objective-c' of https://github.com/Luflosi/kitty
2019-07-26 06:06:58 +05:30
Luflosi
cdbe2f13ca
Cocoa: Move slightly towards modern Objective-C
...
Inspired by 9a9568212c .
2019-07-25 17:14:32 -05:00
Kovid Goyal
4f5264277e
Merge branch 'remove_space' of https://github.com/Luflosi/kitty
2019-07-25 22:12:28 +05:30
Luflosi
bed3adcc95
Remove space from cast in kitty/cocoa_window.m
...
All the other casts to `NSWindow` in this file have the same formatting.
2019-07-25 11:01:16 -05:00
Kovid Goyal
0c5d59bcf6
Merge branch 'move_dict_iter_define' of https://github.com/Luflosi/kitty
2019-07-25 10:13:58 +05:30
Luflosi
ff20acd8b8
Move #define dict_iter() closer to where it is used
2019-07-24 23:30:40 -05:00
Kovid Goyal
d1cffcde68
Merge branch 'one_less_monotonic' of https://github.com/Luflosi/kitty
2019-07-25 09:45:39 +05:30
Luflosi
546dd9b225
Remove unnecessary call to monotonic()
...
Assuming the call to `update_drag()` returns basically instantly, this call to `monotonic()` can be safely removed.
2019-07-24 23:12:50 -05:00
Kovid Goyal
2a666620c8
Merge branch 'autoreleasepool_comments' of https://github.com/Luflosi/kitty
2019-07-25 06:04:26 +05:30
Luflosi
db50985040
Format the @autoreleasepool blocks in kitty/cocoa_window.m like in GLFW
2019-07-24 18:03:40 -05:00
Kovid Goyal
8c6d593c41
Merge branch 'rename_cocoa_update_title' of https://github.com/Luflosi/kitty
2019-07-24 11:59:23 +05:30
Luflosi
40086c8d1c
Rename cocoa_update_title() -> cocoa_update_menu_bar_title()
...
I renamed `cocoa_update_title()` to `cocoa_update_menu_bar_title()` since that more accurately reflects what this function actually does.
2019-07-23 15:06:18 -05:00
Kovid Goyal
38f73b9f5e
Fix #1832
2019-07-23 13:31:09 +05:30
Kovid Goyal
49429b5f49
When zeroing memory, use type independent code
...
Reduces the potential for bugs
2019-07-23 10:54:10 +05:30
Kovid Goyal
d9f90ef077
Make qsort invocations type independent
2019-07-23 10:20:41 +05:30
Kovid Goyal
6a126fa18e
Fix a crash when displaying very large number of images
...
Fixes #1825
2019-07-23 10:18:09 +05:30
Kovid Goyal
14d703f5cc
Cleanup
2019-07-23 09:44:58 +05:30
Kovid Goyal
9850025f3a
Use image ids instead of pointers when removing images since pointer values are changed by the remove operation
2019-07-23 09:40:41 +05:30
Kovid Goyal
8daab0ba41
Change image internal_id type to id_type
2019-07-23 09:34:04 +05:30
Kovid Goyal
88f25ccc76
Also handle non-absolute paths being used for $EDITOR
2019-07-22 10:30:11 +05:30
Kovid Goyal
50e7351c73
When detecting the EDITOR from the environment, if the EDITOR env var is not present, try to read it from the shell's rc files by executing a login shell and dumping its environment
...
macOS makes it unreasonably hard to set system-wide environment
variables, so this hack might be useful there.
2019-07-22 09:29:55 +05:30
Kovid Goyal
51453a54e4
Merge branch 'remove_wgl_context' of https://github.com/Luflosi/kitty
2019-07-22 06:31:32 +05:30
Luflosi
c02ba03f39
Remove glfw/wgl_context.c and glfw/wgl_context.h
2019-07-21 15:03:39 -05:00
Kovid Goyal
78dec3d698
Merge branch 'fix_assertion' of https://github.com/Luflosi/kitty
2019-07-21 09:54:15 +05:30
Luflosi
1590c59131
Fix assertion for glfwSetGamma value
...
From 751c6f9a27 .
2019-07-20 23:17:58 -05:00
Kovid Goyal
b26f79998a
Merge branch 'glfw_c_dialect_reminders' of https://github.com/Luflosi/kitty
2019-07-21 08:33:19 +05:30
Luflosi
489f3e6c9d
Add C dialect reminders to each glfw source file
...
Reduces the difference to upstream.
From 56aad76b16 .
2019-07-20 21:07:27 -05:00
Kovid Goyal
5fef4726a7
Cocoa: Fix file-local function not declared static
...
From upstream: 062a1c22b5
2019-07-20 19:12:21 +05:30
Kovid Goyal
51fdb8200a
X11: Fix focus events not being filtered
...
From upstream: c6b95e3b07
2019-07-20 19:11:00 +05:30
Kovid Goyal
fb0d98ead1
Add more debugs to Wayland handleEvents()
2019-07-20 14:48:28 +05:30
Kovid Goyal
4096caba64
Cancel read if dispatch_pending fails
2019-07-20 14:32:57 +05:30
Kovid Goyal
38f77144fa
Wayland: dont abort the event handler early if there are no pending events from the compositor. This ensures that the tick callback and other event sources are dispatched.
2019-07-20 14:09:09 +05:30
Kovid Goyal
b8041ce17f
Wayland: Fix infinite loop if the compositor dies
2019-07-20 13:55:38 +05:30
Kovid Goyal
00575733c8
Merge branch 'current_move_events_modifiers' of https://github.com/Luflosi/kitty
2019-07-20 11:33:12 +05:30
Luflosi
621c92780c
Get more up-to-date modifiers for mouse move events
2019-07-20 01:00:02 -05:00
Kovid Goyal
37f03af4b7
Merge branch 'glfw_copyright_years' of https://github.com/Luflosi/kitty
2019-07-20 11:14:11 +05:30
Luflosi
bdc4558a43
Update GLFW copyright years
...
Reduces the difference to upstream.
From ab118b2529 .
2019-07-20 00:30:13 -05:00
Kovid Goyal
46d483e8b2
Merge branch 'add_kakoune_editor' of https://github.com/Luflosi/kitty
2019-07-20 08:53:35 +05:30
Luflosi
5143b62a07
Add kakoune to the list of editors
2019-07-20 01:07:10 +02:00
Kovid Goyal
87ed774cb4
Add a new option :opt:pointer_shape_when_grabbed that allows you to control the mouse pointer shape when the terminal programs grabs the pointer
...
Fixes #1808
2019-07-19 19:34:32 +05:30
Kovid Goyal
4e427d05b7
Fix mouse move events not having modifiers
...
The lack of modifiers meant that detect of whether the event should be
tracked in kitty was not working
2019-07-19 19:02:09 +05:30
Kovid Goyal
195d987331
Make handle_in_kitty consistent between the button and motion handlers
2019-07-19 18:58:46 +05:30
Kovid Goyal
9b58317fb1
Better fix for kitty not getting key events when launched via a symlink on macOS
...
Avoids the overhead of checking for a symlink and re-execing.
Apparently all that was needed was setting the correct activation
policy, glfw is supposed to do this but does it only if the menubar hint
is on, which we turn off as we create our own menubar.
2019-07-18 16:00:16 +05:30
Kovid Goyal
1cb15dedac
Simplify the event loop code
...
Also reduce input latency by ignoring repaint_delay when
there is actual pending input.
Gets rid of request_tick_callback(). Now empty events
result in the tick callback being called so there is only a
single mechanism for waking up the main loop and getting
the tick callback called.
2019-07-18 15:51:54 +05:30
Kovid Goyal
5521d6b623
Reset the sigprocmask and signal handlers when launching child processes. Fixes #1806
2019-07-18 09:26:31 +05:30
Kovid Goyal
f5cf6c1dcb
Also make the loop flags volatile
2019-07-17 19:55:19 +05:30
Kovid Goyal
89307727e7
Use atomic variables for main loop flags
2019-07-17 19:45:52 +05:30
Kovid Goyal
c30c21b250
Dont sort on mtime
...
Files are built in order by size anyway and mtime sort makes link order
mtime dependent which breaks reproducible builds on openSUSE as they
modify mtimes randomnly. See #1804
2019-07-16 20:10:14 +05:30
Kovid Goyal
b6fb087d7e
sub-sort by filename in find_c_files()
2019-07-16 16:46:48 +05:30
Kovid Goyal
97c2b7c1fe
Fix #1804
2019-07-16 07:22:31 +05:30
Kovid Goyal
81506640c8
Run instructions for empty event test
2019-07-15 21:31:31 +05:30
Kovid Goyal
8244f7cd58
Linux: Only process global state when something interesting happens
...
This matches behavior on macOS. Had initially set the code to process
on every loop tick in an attmept to workaround the issue of the event
loop freezing on X11 until an X event is delivered. However, in light
of #1782 that workaround was incorrect anyway. Better to have similar
behavior across platforms. This also has the advantage of reducing CPU
consumption.
Also add a simple program to test event loop wakeups.
2019-07-15 21:30:00 +05:30
Kovid Goyal
63573d6e26
DRYer
2019-07-15 18:23:17 +05:30
Kovid Goyal
9368f7f670
When using :opt:strip_trailing_spaces do not remove empty lines
...
Fixes #1802
2019-07-15 17:17:40 +05:30
Kovid Goyal
b7a11035d5
Merge branch 'master' of https://github.com/sterpe/kitty
2019-07-15 09:44:20 +05:30
Steven Richard Terpe
2e1b5e2fa7
Update docs on kitty completion for bash v3.2, etc
...
See kovidgoyal/kitty#1520
2019-07-14 13:59:03 -07:00
Kovid Goyal
8e5cbafe63
Fix kitty @focus-tab not reporting errors
...
Fixes #1799
2019-07-14 10:08:44 +05:30
Kovid Goyal
eb006a6688
Indicate if set_active_tab() worked or not
2019-07-14 10:02:33 +05:30
Kovid Goyal
40b9049deb
Move the kitty OpenGL API into its own compilation unit
2019-07-12 15:29:48 +05:30
Kovid Goyal
64ffca2d0a
Merge branch 'reword_changelog_entry' of https://github.com/Luflosi/kitty
2019-07-12 04:48:04 +05:30
Luflosi
1f4b6d4e9a
Update a changelog entry to be more descriptive
...
I think it is not clear what this entry actually means without the additional explanation.
2019-07-11 19:30:19 +02:00
Kovid Goyal
eb30ba7722
Cocoa: Fix code to shutdown display link for inactive monitors
2019-07-11 22:34:28 +05:30
Kovid Goyal
3e0f4d36bc
DRYer
2019-07-11 21:48:45 +05:30
Kovid Goyal
1fb118edee
Merge branch 'relative_path_compile' of https://github.com/Luflosi/kitty
2019-07-11 21:45:22 +05:30
Luflosi
ca39634880
Use relative paths when compiling
2019-07-11 16:51:50 +02:00
Kovid Goyal
f8418d68a6
Fully drain the wakeupfd
2019-07-09 18:49:46 +05:30
Kovid Goyal
c0000fb24e
Should use an unsigned int for eventfd
2019-07-09 18:42:17 +05:30
Kovid Goyal
c169f7ae83
Retry writing to wakeupfd on EAGAIN as well
2019-07-09 18:40:51 +05:30
Kovid Goyal
7ab5244bf5
ssh kitten: Make argument parsing more like ssh
...
Fixes #1787
2019-07-09 17:48:43 +05:30
Kovid Goyal
7e36489034
Dont call detect joysticks if support for them has been disabled
2019-07-08 11:18:00 +05:30
Kovid Goyal
d259b12ae7
Micro-optimization: Avoid repeated calls to XQLength
2019-07-08 11:05:04 +05:30
Kovid Goyal
8f8138d9bd
Have monotic() return numbers offset from init time
2019-07-08 10:30:06 +05:30
Kovid Goyal
a8668f5fbf
Add a separate CI job for linux-package
...
Should catch issues like #1786 in the future
2019-07-08 07:44:01 +05:30
Kovid Goyal
e00e6bd1c2
Dont print "done" when doing nothing
2019-07-08 07:36:30 +05:30
Kovid Goyal
0fc6c47556
Merge branch 'glad2' of https://github.com/Dav1dde/kitty
2019-07-08 07:31:38 +05:30
Kovid Goyal
d530dccb96
Move docs generation into create_linux_bundle_gunk
2019-07-08 07:26:07 +05:30
Kovid Goyal
37bf0e81d2
Fix #1786
2019-07-08 06:46:16 +05:30
David Herberth
f872f955b0
Replace glad with glad2
2019-07-07 21:10:15 +02:00
Kovid Goyal
003cd0a203
Add a little more event loop debug output
2019-07-07 06:10:59 +05:30
Kovid Goyal
e7173f8145
Linux: Fix a regression in 0.14.0 that caused the event loop to tick continuously, wasting CPU even when idle
...
Fixes #1782
2019-07-07 05:57:18 +05:30
Kovid Goyal
93af102bec
Clean link_commands.json
2019-07-07 04:52:24 +05:30
Kovid Goyal
67f23664c9
Generate Wayland protocol definitions in parallel as well
2019-07-05 20:57:56 +05:30
Kovid Goyal
39f6071c68
macOS: Fix a deadlock with CVDisplayLink
...
I had added an optimization to not pass messages to
main thread every time the CVDisplayLink timer fired, unless
a render frame for that monitor was actually requested.
However, this optimization is impossible to implement wihtout a deadlock
since CVDisplayLink has its own internal lock that it does not expose.
So I guess macOS users with multiple monitors will simply have to take
the performance hit of useless wakeups sixty times a second for every
extra monitor.
Fixes #1779
2019-07-05 20:16:32 +05:30
Kovid Goyal
edc8878632
Use relative paths for object files
2019-07-05 19:13:34 +05:30
Kovid Goyal
93b62c4dfd
Also redo linking if the link command changes
2019-07-05 19:09:10 +05:30
Kovid Goyal
c3e210c80f
Less output when building
2019-07-05 18:34:01 +05:30
Kovid Goyal
9a5cc8f650
Mark source names with glfw backend prefix
2019-07-05 18:27:13 +05:30
Kovid Goyal
5e7fbfefe9
Refactor the compilation code
...
Makes it a bit more efficient. All compiling is done in parallel,
followed by all linking.
2019-07-05 18:13:21 +05:30
Kovid Goyal
29ad6fba22
Linux: Use eventfd rather than a pipe for loop wakeup
2019-07-05 14:54:54 +05:30
Kovid Goyal
c848c3ee0d
Use an interrupt-safe close()
2019-07-05 14:39:07 +05:30
Kovid Goyal
547132131a
Linux: use signalfd rather than a pipe to handle signals
2019-07-05 14:33:22 +05:30
Kovid Goyal
40186fb54b
Restore accidentally removed signal.h include
2019-07-05 12:22:38 +05:30
Kovid Goyal
5dc4e79c8d
Move code to handle loop wakeup and signals into its own module
2019-07-05 12:19:37 +05:30
Kovid Goyal
556992a117
Forgot to make the eventfd cloexec and non-blocking
2019-07-05 10:08:15 +05:30
Kovid Goyal
a41ef8d513
Abort if addWatch during initialization of poll data fails
2019-07-05 10:00:39 +05:30
Kovid Goyal
6d96a89328
Linux: Use the more efficient eventfd mechanism to wakeup the event loop
2019-07-05 09:54:24 +05:30
Kovid Goyal
0fb1481038
Move event loop wakeup code into backend_utils
2019-07-05 09:34:51 +05:30
Kovid Goyal
4b77530c65
Store a reference to the glfw window pointer in the NSWindow class as well
2019-07-04 09:56:59 +05:30
Kovid Goyal
cdb493cf50
Couple more MIN/MAX type fixes
2019-07-04 09:15:13 +05:30
Kovid Goyal
c9a574a764
Cocoa: Ensure no callbacks are called on the view even if it is retained after being released
...
Fixes #1761 (I hope)
2019-07-04 09:03:13 +05:30
Kovid Goyal
bdb633a882
Merge branch 'tabs_to_spaces' of https://github.com/Luflosi/kitty
2019-07-04 08:19:01 +05:30
Luflosi
37aee7133d
Convert tabs to spaces
2019-07-03 20:28:40 +02:00
Kovid Goyal
2cfd55f3ce
Linux: Use the system "bell" for the terminal bell
...
Adds libcanberra as a new dependency to play the system sound.
2019-07-03 22:06:47 +05:30
Kovid Goyal
2e8188e89d
Add libcanberra to the CI linux image
2019-07-03 20:30:12 +05:30
Kovid Goyal
1e172caea3
- Add an option :opt:terminal_select_modifiers to control which modifiers are used to override mouse selection
...
Fixes #1774
2019-07-03 10:50:07 +05:30
Kovid Goyal
6866cd0fb8
Document shift selection override behavior
2019-07-03 10:46:16 +05:30
Kovid Goyal
2719926870
Add some documentation on how to get regexes in the hints kitten to match over multiple lines.
2019-07-03 10:45:37 +05:30
Kovid Goyal
406891abcc
Merge branch 'move_so_tmp_location' of https://github.com/Luflosi/kitty
2019-07-02 07:04:12 +05:30
Luflosi
4be6e9009a
Move temporary location for shared objects into build directory
2019-07-02 01:49:35 +02:00
Kovid Goyal
6a31909557
Make the MIN and MAX macros typesafe
2019-07-01 17:03:47 +05:30
Kovid Goyal
f49f0d19f9
oops
2019-07-01 16:39:02 +05:30
Kovid Goyal
a2407f94e4
Remove unnecessary call to monotonic()
2019-07-01 16:36:29 +05:30
Kovid Goyal
62a0be4a11
Fix #1771
2019-07-01 16:35:35 +05:30
Kovid Goyal
b9029f6c67
Remove unnecessary extra copy
2019-07-01 13:57:16 +05:30
Kovid Goyal
92496f42c9
Try a couple of different header files for the BTN_ includes
2019-07-01 10:48:35 +05:30
Kovid Goyal
841c907efc
Build glfw with all warnings enabled
2019-07-01 10:42:07 +05:30
Kovid Goyal
9bc288cd8e
...
2019-07-01 08:49:18 +05:30
Kovid Goyal
2ef0391b08
Convert some declarations to C99 style
...
From upstream: 0c6b505619
2019-07-01 08:32:47 +05:30
Kovid Goyal
6db768d1a3
Remove unneeded header
...
Fixes #1768
2019-07-01 06:07:55 +05:30
Kovid Goyal
9b080950a9
Cocoa: Cleanup
...
This makes the Cocoa _glfwPlatformSetWindowMonitor consistent with its
X11 and Win32 counterparts.
From upstream: 3262c29440
2019-07-01 05:59:32 +05:30
Kovid Goyal
3cd1fef4cb
X11: Clean up EWMH feature detection
...
From upstream: fad9896d38
2019-07-01 05:57:17 +05:30
Kovid Goyal
a491a801bf
X11: Let the language initialize XEvent structs
...
From upstream: 1f508530f0
2019-07-01 05:47:04 +05:30
Kovid Goyal
41ebb72276
Merge branch 'clean_kitty_launcher' of https://github.com/Luflosi/kitty
2019-07-01 05:28:08 +05:30
Luflosi
e4c0e9073e
Clean "kitty/launcher"
2019-07-01 01:15:33 +02:00
Kovid Goyal
efad733cc5
DRYer
2019-06-30 18:42:20 +05:30
Kovid Goyal
1fcd6e1811
macOS: Fix finding fallback font for private use unicode symbols not working reliably
...
Fixes #1650
2019-06-30 18:11:58 +05:30
Kovid Goyal
75d697fa97
Fix #1766
2019-06-30 16:07:45 +05:30
Kovid Goyal
cde69670ba
Linux: Fix incorrect scaling for fallback fonts when the font has an underscore that renders out of bounds
...
The calc_cell_height() function should not use underscore heights when
called in contexts other than cell metrics calculation.
Fixes #1713
2019-06-30 08:51:35 +05:30
Kovid Goyal
0be6c9cb97
Allow passing a `!neighbor` argument to the new_window mapping to open a new window next to the active window
...
Fixes #1746
2019-06-29 15:13:54 +05:30
Kovid Goyal
8c9d2d3ca2
macOS: Reduce energy consumption when idle by shutting down Apple's display link thread after 30 second of inactivity
...
Fixes #1763
2019-06-29 14:21:47 +05:30
Kovid Goyal
c84e73d8e6
Add some docs for how the completion system can be extended for a new shell
2019-06-29 07:56:24 +05:30
Kovid Goyal
3fb00f6c70
Re-request render frames if we dont hear back in a quarter of a second
...
Fixes #1748 (I hope)
2019-06-28 18:26:11 +05:30
Kovid Goyal
86305fdeb3
Use CVDisplayLinkIsRunning() rather than tracking started state since the OS can apparently shutdown the thread on its own in some scenarios
2019-06-28 17:46:59 +05:30
Kovid Goyal
710e146d22
Remove Makefile rule for logo building as the logo is now in git
2019-06-28 17:36:06 +05:30
Kovid Goyal
d5abc84bea
Remote control: Add a command kitty @ scroll-window to scroll windows
2019-06-28 17:07:31 +05:30
Kovid Goyal
6f8214c15c
Add the generated macOS icons to git
...
Removes the need for optipng/librsvg when building kitty.
2019-06-28 13:48:09 +05:30
Kovid Goyal
a56475e32f
Dont use chdir() in logo/make.py
2019-06-28 13:44:42 +05:30
Kovid Goyal
9dadd91887
Build the kitty logo on CircleCI
2019-06-28 12:07:52 +05:30
Kovid Goyal
df5a73bb35
Dont change dirs when packaging
2019-06-28 12:00:12 +05:30
Kovid Goyal
a50bf59a2c
macOS: Use a minimal bundle for the in-source kitty launcher
...
This should allow the Cocoa UI integration to work when running
kitty as kitty/launcher/kitty
Fixes #1756
2019-06-28 11:20:59 +05:30
Kovid Goyal
241354ae52
Move generation of Info.plist into its own function
2019-06-28 10:47:00 +05:30
Kovid Goyal
c863116011
Merge branch 'strip_once' of https://github.com/Luflosi/kitty
2019-06-27 05:18:04 +05:30
Luflosi
5cbd591a1e
.strip() only once
...
`ans.append('KITTY_VCS_REV="{}"'.format(rev.strip()))` strips the
whitespace again later.
2019-06-26 19:48:58 +02:00
Kovid Goyal
6bb78c9499
Merge branch 'empty_lines' of https://github.com/Luflosi/kitty
2019-06-26 22:34:38 +05:30
Luflosi
893f406a99
Remove empty lines
2019-06-26 17:50:14 +02:00
Kovid Goyal
f722b898b0
Remove hard-coded restriction on drawing borders when only a single window is present
...
Instead this is controlled by the active layout. Fixes #1750
2019-06-26 19:35:49 +05:30
Kovid Goyal
18335b3eac
Merge branch 'unify_compilation_database_access' of https://github.com/Luflosi/kitty
2019-06-26 19:30:30 +05:30
Luflosi
4708b592e2
Unify compilation_database access
...
`file` and `arguments` are accessed using the square bracket syntax, while `output` is accessed using `.get()`. This commit uses square brackets for all three. This will throw a `KeyError` if `compilation_database` does not have the key, which is the correct behaviour IMO.
2019-06-26 15:16:14 +02:00
Kovid Goyal
7598a2965c
Merge branch 'sys_stat.h_macos_only' of https://github.com/Luflosi/kitty
2019-06-26 18:01:04 +05:30
Luflosi
1b59761a19
Only #include <sys/stat.h> on macOS
...
The `<sys/stat.h>` include in `launcher.c` is only used to check if the executable is a symlink on macOS. Therefore it is not needed on other platforms.
2019-06-26 14:05:35 +02:00
Kovid Goyal
7fd1053e0f
Merge branch 'clean_more' of https://github.com/Luflosi/kitty
2019-06-26 08:18:45 +05:30
Luflosi
e178e7f6a5
Clean asan-launcher and kitty-profile
2019-06-25 20:22:23 +02:00
Kovid Goyal
d0bf21ab16
...
2019-06-25 20:00:58 +05:30
Kovid Goyal
c826965833
Use libdir_name when bundle gunking on linux
2019-06-25 18:47:09 +05:30
Kovid Goyal
a76db39c19
Use a symlink for the in src launcher in a package
2019-06-25 18:37:11 +05:30
Kovid Goyal
323a538bdd
Fix #1744
2019-06-25 18:16:00 +05:30
Kovid Goyal
2435feca3b
oops
2019-06-25 08:26:19 +05:30
Kovid Goyal
29d059680c
Merge branch 'fix_kitty.app_incremental_build' of https://github.com/Luflosi/kitty
2019-06-25 08:14:23 +05:30
Luflosi
aaaf7f9d8b
Fix incremental compilation
...
The macOS specific `package()` code changes the directory. This didn't cause any problems before 9135387cfa since `compile_commands.json` was written to the filesystem before `package()` was called. This is not the case anymore, which results in `compile_commands.json` being written into the `kitty.app` bundle. I fixed the problem by using a context manager to change the direcctory back after `kitty.app` was created.
2019-06-25 02:55:13 +02:00
Kovid Goyal
bc90ce569a
Build kitty.app on CI
2019-06-24 18:17:26 +05:30
Kovid Goyal
27f9f1756b
Test doc building on macOS
2019-06-24 18:09:06 +05:30
Kovid Goyal
9135387cfa
Get rid of the various different launchers
...
Now there is only one launcher. Which means it can be used to start
kitty with profiling and ASAN in the natural way. The recommended
way to run kitty from source is now:
./kitty/launcher/kitty
The launcher also automatically re-execs to resolve symlinks on macOS.
2019-06-24 17:21:30 +05:30
Kovid Goyal
af3504e05c
Ensure that ensure_space() does not leave a NULL pointer
2019-06-24 16:00:45 +05:30
Kovid Goyal
9c9eac9d46
Merge branch 'delete_.dSYM' of https://github.com/Luflosi/kitty
2019-06-24 15:59:30 +05:30
Luflosi
f28383206a
Delete *.dSYM directories when cleaning
2019-06-24 10:48:33 +02:00
Kovid Goyal
ba1c093d18
Merge branch 'manual_cleaning' of https://github.com/Luflosi/kitty
2019-06-24 08:36:52 +05:30
Luflosi
3ea3a85694
Never delete any files in the .git directory when cleaning manually
...
This is how results can be removed from os.walk(), according to https://docs.python.org/3/library/os.html#os.walk .
2019-06-23 21:08:46 +02:00
Luflosi
0e1a423889
Always clean files manually instead of using git
...
I see a couple problems with using git to determine the files to delete:
- git needs to be installed
- The manual cleaning code is supposed to function correctly, so why not always use it? That way bugs in the manual cleaning code are also more likely to get discovered
- If some files ignored by git should not be deleted, they need to be added to a sort of blacklist. If some files should be deleted by the manual cleanup code, they need to be added to a sort of whitelist. If someone forgets to add files to one of these lists, then not deleting files that should be deleted is better than deleting files that should not be deleted.
2019-06-23 21:08:16 +02:00
Kovid Goyal
3ce68ed53f
Merge branch 'dSYM' of https://github.com/Luflosi/kitty
2019-06-23 20:03:07 +05:30
Luflosi
90c10da398
Ignore all *.dSYM directories
...
Building `kitty-profile` on macOS creates a `kitty-profile.dSYM` directory, that should be ignored, just like `asan-launcher.dSYM`.
2019-06-23 14:18:45 +02:00
Kovid Goyal
630bf28c22
Add examples for how to use OSC codes to change colors
2019-06-23 08:05:19 +05:30
Kovid Goyal
ff89c1d8e4
oops
2019-06-23 07:36:21 +05:30
Kovid Goyal
96703c23c8
Deal with .git being a file when getting the VCS commit hash during building
2019-06-23 07:36:03 +05:30
Kovid Goyal
2b78f5adad
Merge branch 'copy_and_paste_error' of https://github.com/Luflosi/kitty
2019-06-23 07:27:22 +05:30
Luflosi
ab7df777eb
Fix copy & paste error
2019-06-22 17:52:26 +02:00
Kovid Goyal
adbc694ff8
Merge branch 'non-mutable_default_argument' of https://github.com/Luflosi/kitty
2019-06-22 20:45:12 +05:30
Luflosi
7709cdb12b
Make default argument non-mutable
...
Calling `Env()` without the `ldpaths` parameter after a call with the `ldpaths` parameter, keeps the list from the first call because the argument is mutable. This is probably not what was intended. This commit fixes this issue and also reverts a change to two lines introduced in 091e74d618 , which was probably a workaround for this issue.
2019-06-22 16:57:38 +02:00
Kovid Goyal
f6051f73f5
Use SPECIAL_SOURCES for KITTY_VCS_REV
...
Fixes #1734
2019-06-22 18:54:58 +05:30
Kovid Goyal
d5c2a21cdf
Merge branch 'diff_glfw_upstream' of https://github.com/Luflosi/kitty
2019-06-21 19:52:53 +05:30
Luflosi
8ffc841a3a
Reduce the difference of glfw/cocoa_* to upstream
...
This only changes some formatting, whitespace, etc.. There are no
changes to the functionality.
Let me know if you don't like some of those changes.
2019-06-21 15:53:26 +02:00
Kovid Goyal
6c478977bb
Merge branch 'missing_space' of https://github.com/Luflosi/kitty
2019-06-21 15:58:59 +05:30
Luflosi
07beb53b37
Add space after "if"
2019-06-21 12:12:13 +02:00
Kovid Goyal
59df1a8647
Merge branch 'diff_glfw_upstream' of https://github.com/Luflosi/kitty
2019-06-21 08:25:34 +05:30
Luflosi
fb98aa650d
Reduce the difference of glfw to upstream
...
This only changes some formatting, whitespace, etc.. There are no
changes to the functionality.
Let me know if you don't like some of those changes.
2019-06-20 21:40:59 +02:00
Kovid Goyal
9981b5a9c6
Update xcode version in macos brew CI build
2019-06-20 06:28:49 +05:30
Kovid Goyal
603533e632
Fix a regression that caused closing an overlay window to focus the previously focused window rather than the underlying window
...
Fixes #1720
2019-06-17 09:00:47 +05:30
Kovid Goyal
38bc90f724
unicode_input kitten: Fix a regression that broke using indices to select recently used symbols.
2019-06-17 07:11:07 +05:30
Kovid Goyal
721beb9202
More docs for the cell fragment shader
2019-06-14 11:11:43 +05:30
Kovid Goyal
2e99259589
Make it possible to run custom kittens via kitty +kitten
...
Should help reduce confusion about how kittens work. Fixes #1712
2019-06-14 09:05:03 +05:30
Kovid Goyal
83e6b75872
More helpful error message if user tries to run a custom kitten via kitty +kitten
2019-06-14 08:23:25 +05:30
Kovid Goyal
cf70946f50
...
2019-06-13 05:08:13 +05:30
Luflosi
f1c36aba83
Reduce the difference of glfw/null_* to upstream
...
This only changes some formatting, whitespace, etc.. There are no
changes to the functionality.
Let me know if you don't like some of those changes.
2019-06-12 20:45:21 +02:00
Kovid Goyal
2973cf15a4
Dont leak a file descriptor if pthread_create() fails
2019-06-12 21:51:32 +05:30
Kovid Goyal
55969bc3c5
Also set cwd when piping to none
2019-06-12 21:43:13 +05:30
Kovid Goyal
a8504c971a
Also set special env for piped child with no input
2019-06-12 21:36:13 +05:30
Kovid Goyal
1644de2083
Use an explicit pipe instead of relying on subprocess.PIPE
...
Not sure what the lifetime semantics for fds created by subprocess.PIPE
are
2019-06-12 21:31:06 +05:30
Kovid Goyal
dd1fb85f60
When piping data to a child in the pipe command do it in a thread so as not to block the UI
...
See #1708
2019-06-12 21:03:18 +05:30
Kovid Goyal
b945b19865
Make thread_write() more robust
2019-06-12 20:58:47 +05:30
Kovid Goyal
91bf9f2ec8
Ensure fd is blocking in thread_write()
2019-06-12 20:42:17 +05:30
Kovid Goyal
f151f4c165
Detach the stdin write thread so that it is auto-cleaned up
2019-06-12 20:36:53 +05:30
Kovid Goyal
95b9b2d373
Merge branch 'diff_glfw_upstream' of https://github.com/Luflosi/kitty
2019-06-12 19:40:07 +05:30
Luflosi
8be698681c
Reduce the difference of glfw/wl_* to upstream
...
This only changes some formatting, whitespace, etc.. There are no
changes to the functionality.
Let me know if you don't like some of those changes.
2019-06-12 14:55:56 +02:00
Kovid Goyal
da3e1a3730
Finish documenting commands
2019-06-12 15:30:26 +05:30
Kovid Goyal
29f637c19a
Document a couple more commands
2019-06-12 15:14:15 +05:30
Kovid Goyal
3d01565ba7
Document more commands
2019-06-12 15:01:14 +05:30
Kovid Goyal
962291cc8e
Document another command
2019-06-12 13:41:46 +05:30
Kovid Goyal
a662dace9c
Document a couple more commands
2019-06-12 13:33:12 +05:30
Kovid Goyal
d34e0b325e
Document a couple more commands
2019-06-12 13:20:54 +05:30
Kovid Goyal
4c242ec528
Document a couple more commands
2019-06-12 13:17:28 +05:30
Kovid Goyal
658be9405f
Document the kitty remote control protocol
...
Fixes #1646
2019-06-12 13:12:53 +05:30
Kovid Goyal
15e8f6ad8a
Another fix to the scissor for rendering the cell area
...
With a cyan background it becomes apparent that the width/height are one
pixel too small
2019-06-12 10:37:20 +05:30
Kovid Goyal
a5aca35f1c
Simplify and document the operation of the cell fragment shader
...
Also get rid of the unneccessary double bg_alpha followed by divide by
alpha step when rendering interleaved and premult
2019-06-12 10:22:47 +05:30
Kovid Goyal
ae9df1ffac
oops
2019-06-12 08:03:10 +05:30
Kovid Goyal
8bf2e098f5
Fix an out of bounds read causing a crash when selecting text with the mouse in the alternate screen mode
...
Fixes #1578
2019-06-12 07:52:37 +05:30
Kovid Goyal
7091d554b5
Merge branch 'diff_glfw_upstream' of https://github.com/Luflosi/kitty
2019-06-12 05:17:15 +05:30
Luflosi
bada795320
Reduce the difference of glfw/x11_* to glfw upstream
...
This only changes some formatting, whitespace, etc.. There are no
changes to the functionality.
Let me know if you don't like some of those changes.
2019-06-11 17:57:39 +02:00
Kovid Goyal
7d385849fb
Merge branch 'simplify_code' of https://github.com/Luflosi/kitty
2019-06-11 19:42:59 +05:30
Luflosi
78775b7f6b
Use "with suppress()" to suppress a python exception
2019-06-11 15:48:27 +02:00
Kovid Goyal
8d21a5b6b3
Fallback on ctypes' find_library to load libxkbcommon
2019-06-11 16:58:57 +05:30
Kovid Goyal
9da095ca50
Fix #1703
2019-06-11 16:54:55 +05:30
Kovid Goyal
0fafc07db0
Fix #1702
2019-06-11 15:30:50 +05:30
Kovid Goyal
65b95999c1
version 0.14.2
2019-06-09 13:40:02 +05:30
Kovid Goyal
056012871f
Merge branch 'bash_shebang' of https://github.com/Luflosi/kitty
2019-06-09 08:44:06 +05:30
Luflosi
c7b377080c
Use "#!/usr/bin/env bash" shebang instead of "#!/bin/bash"
...
All python scripts start with `#!/usr/bin/env python3` so I did the same
for a bash script.
2019-06-08 12:57:46 +02:00
Kovid Goyal
47acc9ff2f
Get rid of GLFW_(TRUE|FALSE)
2019-06-08 08:14:30 +05:30
Kovid Goyal
fe62700825
Get rid of GLFWbool
2019-06-08 08:12:42 +05:30
Kovid Goyal
6bcab56988
Merge branch 'whitespace' of https://github.com/Luflosi/kitty
2019-06-08 07:18:18 +05:30
Luflosi
fbc4d3e1be
Remove extra spaces
2019-06-08 00:48:09 +02:00
Kovid Goyal
c89d1643f4
Merge branch 'typo' of https://github.com/Luflosi/kitty
2019-06-07 16:30:39 +05:30
Luflosi
e2226a1509
Fix typo
2019-06-07 12:26:52 +02:00
Kovid Goyal
656916e0fa
Use remove_i_from_array in a few more places
...
Also simplify the REMOVER macro
2019-06-07 14:25:33 +05:30
Kovid Goyal
4a55eb9e7f
typo
2019-06-07 13:53:35 +05:30
Kovid Goyal
9c8cf04a80
Wayland: Don't insert the same monitor twice if the done event for an output is sent twice
2019-06-07 13:38:44 +05:30
Kovid Goyal
e846bc9308
Wayland: Fix crash when enabling disabling monitors on sway
...
When an output is unregistered, the corresponding monitor object should
be removed from every windows' monitor list
Proper fix for #1696
2019-06-07 12:40:02 +05:30
Kovid Goyal
3c7a71772c
Wrap memmove in glfw with a nice safe macro
2019-06-07 10:01:10 +05:30
Kovid Goyal
857a53e80f
Dont crash if GLFW gives us obviously erroneous framebuffer sizes
...
Fixes #1696
2019-06-07 09:28:30 +05:30
Kovid Goyal
84fcabe5cf
Allow using the pipe command to send screen and scrollback contents directly to the clipboard
...
See #1693
2019-06-07 07:47:34 +05:30
Kovid Goyal
9dc410c9fd
oops
2019-06-07 07:20:08 +05:30
Kovid Goyal
8ebad06e7e
clipboard kitten: Add a --wait-for-completion option to have the kitten wait till copying to clipboard is complete
...
Fixes #1693
2019-06-07 07:13:15 +05:30
Kovid Goyal
5db1a07f81
Merge branch 'simplify_code' of https://github.com/Luflosi/kitty
2019-06-07 06:21:00 +05:30
Luflosi
48e5c8edb3
Remove unused code
...
As far as I can tell, these attributes are not used anywhere.
2019-06-06 18:03:48 +02:00
Kovid Goyal
eefc21920e
Merge branch 'simplify_code' of https://github.com/Luflosi/kitty
2019-06-06 21:26:24 +05:30
Luflosi
d7dd9c295b
Use more specific exception
...
I think it's better to use `ImportError` here instead of the much more generic `Exception`.
2019-06-06 17:45:37 +02:00
Kovid Goyal
4faf71bd03
Merge branch 'simplify_code' of https://github.com/Luflosi/kitty
2019-06-06 06:22:52 +05:30
Luflosi
2751dbdb94
Fix test_url_at
...
`lspace_test()` has a parameter called scheme with the default value `http`. It
is called in a nested for loop, but the scheme from the inner for loop is
just ignored.
2019-06-05 18:32:23 +02:00
Kovid Goyal
fe329cb4ab
Merge branch 'simplify_code' of https://github.com/Luflosi/kitty
2019-06-05 21:40:15 +05:30
Luflosi
741e719ff8
Remove unused function
...
Searching for `color_as_vec3` yielded no results in the entire project
but I encourage you to verify that this function is really not used
anywhere.
2019-06-05 18:01:19 +02:00
Kovid Goyal
866bb32046
Merge branch 'simplify_code' of https://github.com/Luflosi/kitty
2019-06-05 21:14:16 +05:30
Luflosi
7f01e758b3
Simplify code
...
The result from `self.add_os_window()` is overwritten later and not used
between the two assignments, so I removed the first assignment and moved the second
assignment to the line after the call to `self.add_os_window()`.
2019-06-05 17:33:04 +02:00
Kovid Goyal
03003d270e
Merge branch 'simplify_code' of https://github.com/Luflosi/kitty
2019-06-05 20:47:11 +05:30
Luflosi
3d313016ba
Remove double assignment
...
The `payload` variable is assigned twice.
Static program analysis FTW!
2019-06-05 17:12:21 +02:00
Kovid Goyal
1292c752a8
Merge branch 'simplify_code' of https://github.com/Luflosi/kitty
2019-06-05 20:35:29 +05:30
Luflosi
4783947135
Remove useless code
...
As far as I can tell, `.active_window` does absolutely nothing, so I
removed it.
2019-06-05 16:53:32 +02:00
Kovid Goyal
c9045788f5
Merge branch 'chained_comparisons' of https://github.com/Luflosi/kitty
2019-06-05 19:38:24 +05:30
Luflosi
4eed8463b3
Simplify chained comparisions
2019-06-05 15:24:36 +02:00
Kovid Goyal
303711ab8d
Wayland: Detect SSD by querying compositor
...
Much more reliable than checking environment variables. Does
add ~1ms to startup time on Wayland.
2019-06-05 10:37:57 +05:30
Kovid Goyal
98d7fc9f39
Simplify code
2019-06-05 08:26:25 +05:30
Kovid Goyal
c0a96f2087
icat kitten: Fix a regression that broke passing directories to icat
...
Fixes #1683
2019-06-05 07:36:47 +05:30
Kovid Goyal
c509ecca52
Wayland: Fix resizing the window on a compositor that does not provide server side window decorations, such a GNOME or Weston not working correctly
...
See #1659
2019-06-04 19:40:00 +05:30
Kovid Goyal
e5d8eb7845
Micro-optimization
2019-06-04 19:28:46 +05:30
Kovid Goyal
277f43aed6
Linux: Disable the Wayland backend on GNOME
...
GNOME has no support for server side decorations.
Can be controlled by new option linux_display_server.
2019-06-04 19:10:13 +05:30
Kovid Goyal
f1494b64e5
Do not depend on glfw just to parse the config file
2019-06-04 18:02:56 +05:30
Kovid Goyal
6b9c71ec62
...
2019-06-04 17:24:42 +05:30
Kovid Goyal
d12a4b0a1a
Test changing of update_check_interval on the CI server
2019-06-04 14:32:37 +05:30
Kovid Goyal
a75d075dd1
Add an option to control the default update_check_interval when building kitty packages
...
Fixes #1675
2019-06-04 14:27:28 +05:30
Kovid Goyal
8f8a37bf94
Fix #1678
2019-06-04 14:14:12 +05:30
Kovid Goyal
03f692fed8
Make it clear what pass_selection_to_program does
2019-06-04 13:48:34 +05:30
Kovid Goyal
614416d4b0
Fix positioning of text in the panel kitten
2019-06-03 20:37:36 +05:30
Kovid Goyal
feb851716e
Merge branch 'python_beautify' of https://github.com/Luflosi/kitty
2019-06-03 16:18:42 +05:30
Luflosi
2b095f720e
Use "with suppress()" to suppress python exceptions
...
Using
```Python
with suppress(OSError):
os.remove('somefile.tmp')
```
instead of
```Python
try:
os.remove('somefile.tmp')
except OSError:
pass
```
makes the code more compact and more readable IMO.
This pattern was recommended by Raymond Hettinger, a Python Core
Developer in his talk "Transforming Code into Beautiful, Idiomatic Python" at https://www.youtube.com/watch?v=OSGv2VnC0go . The transcript is available at https://github.com/JeffPaine/beautiful_idiomatic_python
2019-06-03 12:27:43 +02:00
Kovid Goyal
d6e750727f
Merge branch 'master' of https://github.com/copy/kitty
2019-06-03 08:46:47 +05:30
Fabian
961ff8633d
Add align_top_left option to avoid a padding on the top/left
2019-06-02 11:08:09 -05:00
Kovid Goyal
8406d4a8f1
Forgot another print statement
...
Really should not code when I am busy :)
2019-06-02 20:23:56 +05:30
Kovid Goyal
e25b64ae15
...
2019-06-02 18:01:32 +05:30
Kovid Goyal
59205a4caf
macOS: Fix a regression in the previous release that broke using :kbd:ctrl+shift+tab
...
Fixes #1671
2019-06-02 17:36:16 +05:30
Kovid Goyal
5001797179
Merge branch 'fix_typo' of https://github.com/Luflosi/kitty
2019-06-02 16:50:02 +05:30
Luflosi
b24dd69067
Fix typo
2019-06-02 11:54:20 +02:00
Kovid Goyal
4f163338dd
Allow controlling how multiple selections are handled in the hints kitten
...
Fixes #1665
2019-06-02 09:23:20 +05:30
Kovid Goyal
1e8f1f8cc6
Ensure trailing space is drawn around tab separator when title is too long to fit
...
Fix #1668
2019-05-31 17:51:56 +05:30
Kovid Goyal
5c3e2e6877
Add a note for packagers if they want to turn off the update check mechanism
2019-05-31 17:47:53 +05:30
Kovid Goyal
ff52ff7865
version 0.14.1
2019-05-29 19:57:00 +05:30
Kovid Goyal
f6f55aaa9a
NSGL: Remove enforcement of forward-compatible flag
...
Upstream commit:
0b01d850ed
2019-05-29 19:52:15 +05:30
Kovid Goyal
6f1aecab99
Remove pointless comment
...
Upstream commit
84ec99bb01
2019-05-29 19:50:22 +05:30
Kovid Goyal
f33205a490
Wayland: Fix maximizing the window on a compositor that does not provide server side window decorations, such a GNOME or Weston not working
...
Fixes #1662
2019-05-29 17:07:42 +05:30
Kovid Goyal
2920638a3d
Add a shortcut to toggle maximized window state
2019-05-29 16:41:34 +05:30
Kovid Goyal
1ae32b5742
Linux: Automatically increase cell height if the font being used is broken and draws the underscore outside the bounding box
...
See #690
2019-05-29 16:04:50 +05:30
Kovid Goyal
4e9dabfb25
Add an option :opt:command_on_bell to run an arbitrary command when a bell occurs
...
Fixes #1660
2019-05-29 09:42:52 +05:30
Kovid Goyal
ca2c419c9b
Fix colors not being preserved when using the pipe command with the pager history buffer
...
Fixes #1657
2019-05-29 09:13:55 +05:30
Kovid Goyal
020c1311ca
When resizing and only a single window is present in the current layout, use that window's background color to fill in the blank areas.
2019-05-29 09:01:57 +05:30
Kovid Goyal
8193b2a44b
Use layout depenedent key check for strl+tab as well
2019-05-29 08:43:13 +05:30
Kovid Goyal
324a000777
Merge branch 'docs_conf.py_shebang' of https://github.com/Luflosi/kitty
2019-05-28 20:53:30 +05:30
Luflosi
951b1c1e83
Add shebang for docs/conf.py
2019-05-28 17:17:18 +02:00
Kovid Goyal
8e57fd93c6
macOS: Fix a regression that caused cmd+v to double up in the dvorak keyboard layout
...
Fixes #1652
2019-05-28 20:35:13 +05:30
Kovid Goyal
d262f43b5b
Log ARepeat property
2019-05-28 20:18:50 +05:30
Kovid Goyal
73224e7d95
One less line in the debug log
2019-05-28 20:04:21 +05:30
Kovid Goyal
19463c81a3
Merge branch 'docs_copyright_year' of https://github.com/Luflosi/kitty
2019-05-28 19:12:24 +05:30
Luflosi
6f2bb31068
Make the copyright year dynamic for the documentation
2019-05-28 14:58:09 +02:00
Kovid Goyal
abf9c4117d
macOS: Fix a regression that could cause rendering of a kitty window to occasionally freeze in certain situations, such as moving it between monitors or transitioning from/to fullscreen
...
Fixes #1641
2019-05-28 17:54:34 +05:30
Kovid Goyal
39f50830d7
Fix a missing newline when using the pipe command between the scrollback and screen contents
...
See #1642
2019-05-28 15:30:44 +05:30
Kovid Goyal
c2fd7005cb
Fix Ctrl+underscore not being passed to child programs in normal and application keyboard modes
2019-05-24 19:21:48 +05:30
Kovid Goyal
52f2ed33f5
Add a link to the Ubuntu kitty package
2019-05-24 18:08:29 +05:30
Kovid Goyal
a51239c6ae
Add support for the underscore key found in some keyboard layouts
...
Fixes #1639
2019-05-24 17:59:50 +05:30
Jerome Reybert
e6217e1428
Fix warning with old freetype headers
...
On Centos 7.6, build produces the following warnings:
kitty/freetype.c: In function ‘render_bitmap’:
kitty/freetype.c:369:36: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (unsigned int i = 0; i < bitmap.rows; ++i) {
^
kitty/freetype.c:371:40: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (unsigned int j = 0; j < bitmap.width; ++j) bitmap.buffer[i * stride + j] *= 255;
2019-05-24 11:57:08 +02:00
Kovid Goyal
f61dfb0828
Fix warning on older compilers
2019-05-24 12:07:24 +05:30
Kovid Goyal
00fe963e7c
version 0.14.0
2019-05-24 11:52:46 +05:30
Kovid Goyal
009ea1c8cd
Merge branch 'change_package_manager_installation_docs' of https://github.com/Luflosi/kitty
2019-05-22 21:19:22 +05:30
Luflosi
72069015b9
Add Homebrew and Nix (not only on NixOS) as package manager to the installation instructions
2019-05-22 14:08:02 +02:00
Kovid Goyal
6c0c67dd7b
Merge branch 'docs_use_better_word' of https://github.com/Luflosi/kitty
2019-05-22 06:36:42 +05:30
Luflosi
3c090519a0
docs: "relatively little effort" instead of "relatively less effort"
2019-05-22 02:55:23 +02:00
Kovid Goyal
5da70929f6
Merge branch 'docs_mouse_hide_wait_attention' of https://github.com/Luflosi/kitty
2019-05-22 06:19:25 +05:30
Luflosi
5b66d6209f
Move documentation for mouse_hide_wait config option to the top of the Mouse group
...
Fixes #1626 .
This makes it harder to miss this option in case a user is confused why the mouse cursor keeps disappearing.
2019-05-22 02:42:37 +02:00
Kovid Goyal
9f7f353485
Merge branch 'macos_mouse_cursor_off_by_one' of https://github.com/Luflosi/kitty
2019-05-22 06:06:33 +05:30
Luflosi
05f01525c3
Revert "macOS: Fix cocoa mouse y-coord off by one"
...
This reverts commit 8969206450 .
Fixes #1621 .
When committing b3f1acd400 , applying the glfw upstream patch 3c3981a4f0 for https://github.com/glfw/glfw/issues/1461 , this commit should have been reverted as it was just a quick fix for https://github.com/glfw/glfw/issues/1461 .
2019-05-21 19:31:57 +02:00
Kovid Goyal
3aa016940c
Merge branch 'python3_shebang' of https://github.com/Luflosi/kitty
2019-05-21 21:30:59 +05:30
Luflosi
a792c94ccf
Use python3 shebang for all python scripts
...
Fixes #1624 .
Use python3 shebang for all python scripts as python still defaults to python2 on many systems.
2019-05-20 14:44:24 +02:00
Kovid Goyal
249e59b310
Only reset dirty flag on borders if actually updated
2019-05-20 11:18:54 +05:30
Kovid Goyal
3b43b76222
Merge branch 'fix_copy_and_paste_error' of https://github.com/Luflosi/kitty
2019-05-19 19:44:29 +05:30
Luflosi
398f5cfbdc
Fix copy and paste error
2019-05-19 16:08:11 +02:00
Kovid Goyal
bc47be64b0
Merge branch 'missing_file_header' of https://github.com/Luflosi/kitty
2019-05-19 19:31:50 +05:30
Luflosi
59c6fb9ce7
Add file header to build-terminfo
2019-05-19 15:41:46 +02:00
Kovid Goyal
8b99d0a432
Make the default live resize strategy drawing the current window contents unchanged
2019-05-19 09:45:59 +05:30
Kovid Goyal
639b18c7e8
Better fix for python include dirs
...
Ensure their order is stable
2019-05-19 09:17:52 +05:30
Kovid Goyal
701942f6ef
Fix #1619
2019-05-19 07:21:52 +05:30
Kovid Goyal
9d8e6a2b30
Merge branch 'rename_linux_launcher' of https://github.com/Luflosi/kitty
2019-05-19 07:17:41 +05:30
Luflosi
581deb6073
Rename linux-launcher -> launcher
...
Since the launcher is also used on macOS, rename it to something more generic.
2019-05-18 19:13:56 +02:00
Kovid Goyal
9849a69afd
Allow extending word selections to non-word chars
2019-05-16 20:20:03 +05:30
Kovid Goyal
5f33d907aa
Mouse selection: When extending by word, fix selection encompassing one or two non-word characters after a word when the mouse is over that character
...
Fixes #1616
2019-05-16 18:32:15 +05:30
Kovid Goyal
0919eda640
Merge branch 'typo' of https://github.com/Luflosi/kitty
2019-05-15 16:58:37 +05:30
Luflosi
5952a140e0
Fix typo
2019-05-15 13:16:42 +02:00
Kovid Goyal
6d92996661
make comment more helpful
2019-05-13 21:13:45 +05:30
Kovid Goyal
04e4b0c469
Fix rendering of text containing the VS15 variation selector
...
Fixes #1611
2019-05-13 20:52:14 +05:30
Kovid Goyal
20f4a9a942
...
2019-05-13 20:42:30 +05:30
Kovid Goyal
5552679c11
Left in a print statement
2019-05-13 20:37:44 +05:30
Kovid Goyal
1369a36178
Exclude variation selectors when finding fallback font
2019-05-13 20:36:29 +05:30
Kovid Goyal
529337e00a
Ensure cursor is correctly positioned after emoji presentation char + VS15
...
cursor should be on the cell immediately after the the char since the
variation selector makes the char one cell wide.
2019-05-13 20:18:41 +05:30
Kovid Goyal
fe882dad15
Add support for Vs-15 to wcswidth
2019-05-13 19:50:49 +05:30
Kovid Goyal
4fff84b4b9
Add void to all function declarations for functions that take no arguments
...
Micro-optimization for some architectures. Enforced via
-Wstrict-prototypes
2019-05-13 11:04:21 +05:30
Kovid Goyal
3e964163c0
Pass zero for fullscreen flags on non Cocoa platforms
2019-05-12 16:07:54 +05:30
Kovid Goyal
10a987b908
Simplify code
2019-05-12 16:01:09 +05:30
Kovid Goyal
03e417e1be
...
2019-05-12 16:00:02 +05:30
Kovid Goyal
c95d3b19b3
X11 backend: Get rid of override redirect
...
Was used for hackish fullscreen, which we no longer support
2019-05-12 15:59:16 +05:30
Kovid Goyal
1fa9b8f102
X11: use the window manager's native full-screen implementation when making windows full-screen
...
This matches the behavior on Cocoa and Wayland.
Fixes #1605
2019-05-12 15:53:06 +05:30
Kovid Goyal
c27cf31a7c
Only wait 0.2 secs after live resize if the resize strategy is "size"
2019-05-12 15:39:03 +05:30
Kovid Goyal
ad672fc9d6
Wayland: Remove wl_shell support
...
From upstream: 599fb3de34
2019-05-11 17:50:02 +05:30
Kovid Goyal
a0f298ddb0
...
2019-05-11 16:35:48 +05:30
Kovid Goyal
9b740849ed
Allow the user to control the draw strategy during OS window resizes
...
Changed the default to scaled which matches current macOS behavior.
Fixes #1591
2019-05-11 15:49:11 +05:30
Kovid Goyal
a3f9835b7b
X11 backend: Improve performance when handling consecutive XkbKeyMap events
...
Only recompile the keymap when actually needed, greatly improving
performance when the X server sends multiple consecutive key map events.
Fixes #1606
2019-05-11 13:39:05 +05:30
Kovid Goyal
f4294b83fb
Add a rationale for PWD
2019-05-11 12:59:01 +05:30
Kovid Goyal
4fa4a20b22
When launching child process set the PWD environment variable
...
This allows shells to display the symlink path to a directory instead
of the resolved path, when the specified directory is a symlink. Fixes #1595
2019-05-11 12:57:25 +05:30
Kovid Goyal
af2c9a49b1
...
2019-05-11 12:04:07 +05:30
Kovid Goyal
bdeec61266
macOS: Add an entry point to use that works even if run via a symlink
...
Fixes #1539
2019-05-11 10:25:06 +05:30
Kovid Goyal
268e5cef3b
Remove useless else
2019-05-03 13:37:57 +05:30
Kovid Goyal
b37f4333e2
Merge branch 'master' of github.com:kovidgoyal/kitty
2019-05-03 13:31:10 +05:30
Kovid Goyal
f0c663d42d
macOS: Improve handling of IME extended input
...
Compose characters are now highlighted and the IME panel moves along with the text
Fixes #1586
Fixes #1461
2019-05-03 13:30:56 +05:30
BlahGeek
e36e44ab3a
macOS: do not pass input events while having marked text
...
fix chinese input method backspacing issue
macOS: Set pre-edit text for IME
macOS: implement glfwPlatformUpdateIMEState
set firstRectForCharacterRange correctly
macOS: update IME position on each input
macOS: use float instead of int for updateIMEState
minor fix
macOS: ignore marked text on deadkey
fixes german keyboard input
macOS: convert markedRect to screen coord
2019-05-03 13:27:06 +05:30
Kovid Goyal
2dceec444f
Merge branch 'fix-windows-for-payload' of https://github.com/blahgeek/kitty
2019-05-02 15:20:02 +05:30
BlahGeek
eaba3cff0b
Fix windows_for_payload
2019-05-02 17:39:00 +08:00
Kovid Goyal
ec31a348cf
oops
2019-05-01 13:11:49 +05:30
Kovid Goyal
d6a6e26500
Remote control: Make the :ref:at_set-font-size command more capable.
...
Fixes #1581
2019-05-01 12:37:39 +05:30
Kovid Goyal
cab1ba4e50
Use sys._xoptions to pass bundle_exe_dir
...
This allows it to be used with the make app kitty bundle as well.
This makes it robust against launching in environments where
python3 is not on PATH. See #1280
2019-05-01 08:45:01 +05:30
Kovid Goyal
a2f589be00
Make use of realpath() safer
2019-05-01 07:55:03 +05:30
Kovid Goyal
7622cbaed5
Avoid rapid transitions between the cells banner and the normal terminal view when live resizing on systems without live resizing notifications
2019-04-29 18:19:03 +05:30
Kovid Goyal
53df123c0d
Allow the user to control the resize debounce time via resize_debounce_time
2019-04-28 21:16:13 +05:30
Kovid Goyal
c660840c19
When encountering errors in kitty.conf report them to the user instead of failing to start.
2019-04-28 20:53:59 +05:30
Kovid Goyal
c6d3ede57e
Fix show_error kitten --title not working
2019-04-28 20:48:57 +05:30
Kovid Goyal
6037167336
Allow controlling the ligature strategy dynamically, per window
...
Fixes #1574
2019-04-27 22:05:33 +05:30
Kovid Goyal
0804447881
Merge branch 'patch-1' of https://github.com/g4s8/kitty
2019-04-27 18:52:57 +05:30
Kirill
83482873dc
CR: grammar fixes
2019-04-27 14:11:12 +03:00
Kirill
5e351e4d65
Mentioned kitty list-fonts command
2019-04-27 13:02:52 +03:00
Kovid Goyal
408cd9cf9b
Wayland: Only print out window attention error once
2019-04-27 14:53:31 +05:30
Kovid Goyal
8b47e63136
Wayland backend: Dont roundtrip to the server just to wakeup the main loop
2019-04-27 14:52:15 +05:30
Kovid Goyal
379ec88776
Only use the tick callback mechanism on macOS
...
On Linux, just call the tick callback on every loop tick. This is much
simpler, and should fix the issue with screen updates sometimes getting
stuck waiting for an X11 event.
Note that this was what used to happen (global state being checked on
every loop tick) before the refactoring to use a GLFW event loop,
therefore there should be no performance regressions, though we
of course end up checking global state on every group of events on
Linux, instead of only when something of interest happens. I suspect, to
achieve the latter is going to require implementing a mutex/lock in the
main loop to avoid races, which doesn't seem worth it.
2019-04-27 14:40:09 +05:30
Kovid Goyal
a320e8bc25
When debuggin event loop display number of dispatched X11 events
2019-04-27 13:52:44 +05:30
Kovid Goyal
1c4f5b471d
Fix #1575
2019-04-27 07:58:07 +05:30
Kovid Goyal
d5846282a9
Avoid bikeshedding about the best way to suppress flake8 messages
2019-04-24 23:46:24 +05:30
Kovid Goyal
8b56f1ced6
Forgot to specify the default for --extra-logging
2019-04-24 16:19:30 +05:30
Kovid Goyal
0987a536b1
Add extra logging to debug the event loop
...
This should make tracking down the root cause of the
event loop pauses on X11 easier. And the infrastructure
should come in handy in the future as well.
2019-04-24 16:16:40 +05:30
Kovid Goyal
099510f4d1
Fix docs build failure
...
dynamic_background_opacity needs to be its own option in the conf docs.
2019-04-24 15:39:16 +05:30
Kovid Goyal
35c6014025
Merge branch 'update_changelog' of https://github.com/Luflosi/kitty
2019-04-24 15:27:18 +05:30
Luflosi
895ac26d43
Update changelog.rst to reflect change to disable_ligatures config option
...
In 934336e642 , the config option
`disable_ligatures_under_cursor` was renamed to `disable_ligatures` and the
behaviour of that option was altered so that it is now possible to
disable ligatures completely. This commit reflects that change in changelog.rst
2019-04-24 11:48:39 +02:00
Kovid Goyal
da999f730b
Dont assume sphinx-build is a python script
...
Fixes #1561
2019-04-24 15:12:36 +05:30
Kovid Goyal
47969e9f18
Use multiple CPU cores for sphinx-build
2019-04-24 15:08:51 +05:30
Kovid Goyal
b6267d4a8c
X11 backend: Get rid of server roundtrip just to wake up the event loop
2019-04-24 13:42:26 +05:30
Kovid Goyal
2df97e309b
X11 backend: Dispatch X11 events after XFlush
2019-04-24 06:25:00 +05:30
Kovid Goyal
078b23e6aa
Merge branch 'https' of https://github.com/Luflosi/kitty
2019-04-24 05:15:54 +05:30
Luflosi
d8eeed2296
Convert HTTP URLs to HTTPS URLs where possible
2019-04-24 01:27:24 +02:00
Kovid Goyal
e5afc5297a
Dont use multiprocessing to get CPU counts
2019-04-22 08:49:22 +05:30
Kovid Goyal
465ed48e73
When generating python bytecode, do it for all optimization levels
2019-04-22 08:46:33 +05:30
Kovid Goyal
f8b311b289
Cache calls to fc_match since FcFontMatch is very slow
...
Fixes #1547
2019-04-21 11:07:37 +05:30
Kovid Goyal
934336e642
Allow disabling ligatures always
2019-04-20 08:25:44 +05:30
Kovid Goyal
6f5ff05c56
Merge branch 'master' of https://github.com/fdev31/kitty
2019-04-19 14:09:48 +05:30
fdev31
2376b7c255
implement fast browsing of the unicode input
...
useful for zones with icons
2019-04-18 22:52:06 +02:00
Kovid Goyal
ef86f8a20c
NSGL: Disable swap interval
...
Swap interval now uses CVDisplayLink.
From upstream: 28f118f4de
2019-04-18 10:14:29 +05:30
Kovid Goyal
b3f1acd400
Cocoa: Fix coordinate transformations
...
From upstream: 3c3981a4f0
2019-04-18 10:12:41 +05:30
Kovid Goyal
5c4462281e
Cocoa: Upstream fix for mouse hover detection
...
0e74265426
2019-04-18 09:58:09 +05:30
Kovid Goyal
91d94f262c
Merge branch 'patch-1' of https://github.com/serebit/kitty
2019-04-17 07:48:40 +05:30
Campbell Jones
2651acce91
Add link for the Solus package
2019-04-16 20:43:38 -04:00
Kovid Goyal
25cfcdba76
Dont hide mouse on modifier key presses
2019-04-16 15:16:14 +05:30
Kovid Goyal
6f5004fc13
Merge branch 'hide_mouse_on_key' of https://github.com/Luflosi/kitty
2019-04-15 19:55:00 +05:30
Luflosi
df9c1aea64
Add note to changelog.rst
2019-04-15 10:11:54 +02:00
Luflosi
a309069b6b
Describe new feature in config_data.py
2019-04-15 09:51:57 +02:00
Luflosi
beb90f2c55
Implement feedback
2019-04-15 09:17:31 +02:00
Luflosi
0e0aba7a5e
Option for hide mouse on keypress event
2019-04-14 18:07:26 +02:00
Kovid Goyal
6e9b41314e
Add a link to the FAQ to a repo of kitty themes
2019-04-14 08:26:37 +05:30
Kovid Goyal
dbeac923ed
oops
2019-04-13 18:37:06 +05:30
Kovid Goyal
5953c2097d
Expand env vars throughout command lines
...
When converting strings to command lines interpret env vars in all the
parts of the command line not just the first item. Fixes #1535
2019-04-13 13:53:32 +05:30
Kovid Goyal
8969206450
macOS: Fix cocoa mouse y-coord off by one
...
See https://github.com/glfw/glfw/issues/1461
2019-04-09 22:02:36 +05:30
Kovid Goyal
41318d763b
Fix missing context APIs in version strings
2019-04-09 10:06:10 +05:30
Kovid Goyal
8251b906b6
Add a listener for GPU changed events on macOS
...
Currently does nothing, but could potentially be used to fix:
https://github.com/kovidgoyal/kitty/issues/794
Will need someone with the hardware though to test
exactly what needs to be done to restore the custom cursor image.
2019-04-06 10:05:21 +05:30
Kovid Goyal
790d630d17
typo
2019-04-06 09:10:16 +05:30
Kovid Goyal
c9644039b1
Merge branch 'add_option_to_not_switch_to_previous_when_closing_current_tab' of https://github.com/ddddavidmartin/kitty
2019-04-03 14:23:14 +05:30
David Martin
34de072a10
Add option to disable switching to the previous tab when closing the current one.
...
When setting tab_bar_switch_to_previous_when_closing_current_tab kitty
will now switch to the left tab instead of the previously active one
when the currently active tab is closed. This makes the closing of tabs
a bit more predictable.
Note that we are not touching the handling of the active_tab_history at
all. I was considering it, but we want to keep track of it in any case
to keep the 'switch to previous tab' shortcut working.
2019-04-03 19:27:04 +11:00
Kovid Goyal
f6d7b3aa04
Merge branch 'update-docs-mouse' of https://github.com/eepp/kitty
2019-04-03 12:03:15 +05:30
Philippe Proulx
5c31c2b98e
Docs: update mouse features
...
In the "Mouse features" section:
* Make it clear that you can double-click or triple-click and then drag
to extend the initial selection.
* Add the fact that selecting copies the selected text to the primary
clipboard on platforms supporting this.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com >
2019-04-03 01:59:55 -04:00
Kovid Goyal
2cc779b667
Merge branch 'fix-mouse-release-other-window' of https://github.com/eepp/kitty
2019-04-03 10:59:54 +05:30
Kovid Goyal
7f4294f68c
Merge branch 'dbl-click-drag-extend-sel' of https://github.com/eepp/kitty
2019-04-03 10:59:28 +05:30
Philippe Proulx
fd2515da5c
Do not focus window when mouse button is released
...
It is useless to focus a window on mouse button release. This behaviour
makes this scenario possible:
1. Have at least two visible windows in the current tab.
2. Select text in a window with the left mouse button, dragging, and
release the mouse button within the other window.
The focus is changed to the other window. I believe this is unexpected.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com >
2019-04-02 19:36:26 -04:00
Philippe Proulx
db1f53fc29
Double-click + drag to select multiple words
...
This patch reverts part of cb095be0cc to
allow again to double-click and then drag to select multiple words.
With this patch, the primary selection is still not updated until you
release the mouse's left button, but the selection does not "block" on
the first word while trying to double-click and drag.
I believe this behaviour has come to be expected by users, since GNOME
Terminal, Terminator, xterm, rxvt, major browsers, LibreOffice, and many
more significant applications have it.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com >
2019-04-02 18:31:32 -04:00
Kovid Goyal
96f5c66755
Allow setting OS window size in session files
2019-04-02 20:20:39 +05:30
Kovid Goyal
4baf7b5bba
Allow creating new OS windows in session files
...
Fixes #1514
2019-04-02 19:57:09 +05:30
Kovid Goyal
58bb5a7d1f
...
2019-04-01 23:29:27 +05:30
Kovid Goyal
c63dd76814
Note what the default for --cwd for @ new-window is
2019-03-28 18:43:17 +05:30
Kovid Goyal
8d3e6b4796
Fix disabling of ligatures under cursor
...
Now uses glyph groups to detect a possible ligature and turn off
ligatures only in that group. Requires a re-render of parts of the line,
but I dont see a good way to avoid that.
2019-03-28 18:33:28 +05:30
Kovid Goyal
b10312e249
Upstream fixes for vulkan surface creation and the retina hint
...
e108c0de0d
980fc9b52f
2019-03-28 13:09:22 +05:30
Kovid Goyal
6f3a9d6d29
macOS: Remove check for pre-10.8 SDK
2019-03-28 12:42:14 +05:30
Kovid Goyal
c4e89d9d0c
macOS: Consolidate compatibility macros for old SDKs in one place
2019-03-28 12:37:05 +05:30
Kovid Goyal
00a2126152
Document the comments syntax for config files
...
Fixes #1503
2019-03-28 08:08:21 +05:30
Kovid Goyal
e7099cc771
Forgot to escape the backslash in the docs for reset_terminal
2019-03-25 12:05:56 +05:30
Kovid Goyal
b6724ed177
...
2019-03-24 10:06:18 +05:30
Kovid Goyal
fcedc9f5c3
Allow setting :opt:active_border_color to `none` to not draw a border around the active window
...
Fixes #805
Fixes #1491
2019-03-24 10:04:32 +05:30
Kovid Goyal
cb095be0cc
Only update the selected text to clipboard when the selection is finished, not continuously as it is updated.
...
Fixes #1460
Fixes #1492
2019-03-24 08:44:12 +05:30
Kovid Goyal
ecf2c86787
Wayland: Abort on fatal display errors instead of looping forever
2019-03-22 08:53:10 +05:30
Kovid Goyal
971c28ce97
Fix tab title not always being updated when active window is closed
2019-03-21 20:44:55 +05:30
Kovid Goyal
482129ff35
Increase resize debounce time
2019-03-21 20:44:24 +05:30
Kovid Goyal
65c75859bc
Move rendering of resize banner into the tick callback
...
Unifies all rendering in one place. And possibly fixes issues with
rendering in a resize callback on sway.
2019-03-21 16:54:15 +05:30
Kovid Goyal
fcb26e5dc7
Cocoa: User performSelectorOnMainLoop for render frames as well which means render frames work during modal loops
2019-03-21 16:51:01 +05:30
Kovid Goyal
0dc6ac26c3
Cocoa: user performSelectorOnMainThread instead of postEvent for the tick callback
...
performSelectorOnMainThread runs in more loop run modes which means that
the tick callback will behave more like it does on other platforms,
during window resizes and other modal event loops.
2019-03-21 15:55:43 +05:30
Kovid Goyal
48303bac75
Use "arrow" as the arrow cursor on Linux
...
Different themes preferentiallyuse left_prt or right_ptr, so use arrow
instead
2019-03-21 13:22:13 +05:30
Kovid Goyal
5ab8a665be
GLFW: Add more standard cursor shapes
...
Also use an enum for the cursor shapes
2019-03-21 13:06:13 +05:30
Kovid Goyal
733158a2de
Better error reporting when failing to load cursor
2019-03-21 10:38:26 +05:30
Kovid Goyal
a2e47d2d0e
EGL: Warn if non-blocking swap buffers is not available
2019-03-21 09:46:46 +05:30
Kovid Goyal
bfb97a6e6f
Wayland: use correct name for hand cursor
2019-03-21 09:24:51 +05:30
Kovid Goyal
fc1a8351b0
Dont use a wide cursor in beam an unfocused modes
...
Fixes #1486
2019-03-20 19:57:59 +05:30
Kovid Goyal
be7a4a5868
Add an option :opt:disable_ligatures_under_cursor to disable multi-character ligatures under the cursor to make editing easier
...
Fixes #461
2019-03-20 16:28:27 +05:30
Kovid Goyal
493892a4df
Merge branch 'no_ligatures_under_cursor' of https://github.com/Luflosi/kitty
2019-03-20 15:59:46 +05:30
Kovid Goyal
106dc2b03b
Wayland: Load cursor theme at init even if no mouse pointer is currently present
2019-03-20 15:56:34 +05:30
Kovid Goyal
d5490475f1
Nicer error message when contacting GitHub to check for latest release fails
2019-03-20 08:38:35 +05:30
Luflosi
999a6a288c
Do not render ligatures under cursor
2019-03-20 01:35:03 +01:00
Kovid Goyal
7d9d096fbf
Rationalize change reporting after configure event on Wayland
...
Fixes #1482 (I hope)
2019-03-19 15:02:11 +05:30
Kovid Goyal
c129dd9331
Wayland: Ignore invalid scale values from compositor
2019-03-19 14:30:43 +05:30
Kovid Goyal
5c75ac0a96
GLFW Wayland backend: Dont fire resize events for Wayland configure events that dont change the window size. Fixes #1473
2019-03-17 15:07:32 +05:30
Kovid Goyal
bafedf8376
Make the scale sanitization more comprehensive
2019-03-17 12:41:03 +05:30
Kovid Goyal
136f15e647
Fix move to GLFW event loop breaking using macOS native quit action with no windows open.
...
Fixes #1476
2019-03-17 12:27:41 +05:30
Kovid Goyal
e9e4ac13ee
Fix #1472
2019-03-16 07:37:36 +05:30
Kovid Goyal
e24c758341
Merge branch 'potential_undefined_behaviour' of https://github.com/Luflosi/kitty
2019-03-15 19:57:02 +05:30
Luflosi
4b65b4ac2b
Fix potential undefined behaviour
...
When `gray_color_space` is `NULL`, it is passed into `CGBitmapContextCreate()`. Since there are no guarantees in https://developer.apple.com/documentation/coregraphics/1455939-cgbitmapcontextcreate?language=objc to what happens in that case, depending on the implementation there may be undefined behaviour.
2019-03-15 14:31:19 +01:00
Kovid Goyal
d8d7765a82
DRYer
2019-03-15 18:52:24 +05:30
Kovid Goyal
b98bc1c787
Add --help to kitty command line completion
...
Fixes #1469
2019-03-15 18:50:59 +05:30
Kovid Goyal
4b08ce2a09
Merge branch 'warn_invalid_config' of https://github.com/Luflosi/kitty
2019-03-15 11:05:49 +05:30
Luflosi
ed62e72a98
Warn when a line in the config file is invalid
2019-03-14 18:46:36 +01:00
Luflosi
a28710c1fc
Minor refactor
2019-03-14 18:46:36 +01:00
Kovid Goyal
764a058cf6
Allow using tabs as delimiters in the config file
...
Fixes #1466
2019-03-14 22:51:52 +05:30
Kovid Goyal
a538663679
Merge branch 'fix_typo' of https://github.com/Luflosi/kitty
2019-03-13 05:59:28 +05:30
Luflosi
8920d64f7d
Fix typo
2019-03-12 19:38:06 +01:00
Kovid Goyal
a051cb9ee3
Fix a regression in version 0.13.0 that caused background colors of space characters after private use unicode characters to not be respected
...
Fixes #1455
2019-03-11 20:03:58 +05:30
Kovid Goyal
56864cdfb7
When a window is closed, switch focus to the previously active window (if any) instead of picking the previous window in the layout
...
Fixes #1450
2019-03-09 10:42:55 +05:30
Kovid Goyal
428c600788
When parsing CSI codes allow - as a primary modifier
...
Fixes #1438
2019-03-08 09:58:18 +05:30
Kovid Goyal
748f1a90b9
Move swap interval setting to just before swap buffers
2019-03-07 18:15:27 +05:30
Kovid Goyal
d3cee832ce
Wayland: Dont try to focus window on create/show since it is not allowed anyway
2019-03-07 18:14:12 +05:30
Kovid Goyal
8129246a10
Set swap interval before first call to swap buffers
2019-03-07 18:06:51 +05:30
Kovid Goyal
a2789650e5
Insert google analytics at publish time
2019-03-07 12:07:49 +05:30
Kovid Goyal
af376cf27e
Tested scaling needed for initial window size on Wayland
2019-03-07 09:23:44 +05:30
Kovid Goyal
6c8ccbd73a
...
2019-03-07 06:40:33 +05:30
Kovid Goyal
626ac0d5b8
Restrict initial cell based size scaling to macOS only
...
No way to check if it is the right thing to do on other platforms
2019-03-06 21:40:05 +05:30
Kovid Goyal
2550bc910d
Fix specifying initial window size in cells not working correctly on HiDPI screens
...
Fixes #1444
2019-03-06 21:23:54 +05:30
Kovid Goyal
0a153e2524
Wayland: Use the kitty Wayland backend by default
2019-03-06 21:04:34 +05:30
Kovid Goyal
facd353228
Update to using the Unicode 12 standard
2019-03-06 13:58:16 +05:30
Kovid Goyal
5b7eac280c
DRYer
...
Store expected value of VS15 in only one place
2019-03-06 13:53:09 +05:30
Kovid Goyal
7ab63525c7
Dont use a global autorelease variable
...
Use function local @autorelease blocks instead
2019-03-06 09:34:55 +05:30
Kovid Goyal
a1c49a0f7f
Cocoa: Disable shadow for transparent framebuffer
...
From upstream: 9883cb64f0
2019-03-06 09:12:16 +05:30
Kovid Goyal
4c4c6ab0e6
Various fixes for monitor work area retrieval from upstream
2019-03-06 09:08:08 +05:30
Kovid Goyal
2e0d39b512
Remove windows glfw backend as it is unused
2019-03-06 08:47:45 +05:30
Kovid Goyal
0899019518
Add glfwGetMonitorWorkarea
...
From upstream: be295ccbea
2019-03-06 08:47:01 +05:30
Kovid Goyal
db16996181
Fix Coverity Scan false positive
...
From upstream: c20754c4a6
2019-03-06 08:40:02 +05:30
Kovid Goyal
aa2b21456f
Round refresh rate instead of truncating
...
From upstream: 621ece63c8
2019-03-06 08:36:59 +05:30
Kovid Goyal
7e8e1e9e89
Merge branch 'wrong_terminfo_location' of https://github.com/Luflosi/kitty
2019-03-05 06:27:39 +05:30
Luflosi
01e9702958
Fix wrong terminfo location
2019-03-05 01:24:22 +01:00
Kovid Goyal
6d970c1175
Add a changelog entry for live resizing
2019-03-04 19:55:53 +05:30
Kovid Goyal
16c0871e22
Implement resizing cells rendering on CoreText
2019-03-04 19:54:11 +05:30
Kovid Goyal
fd7ddc2905
Handle OS not reporting live resizing end
2019-03-04 19:54:10 +05:30
Kovid Goyal
c181919a57
Fix rendering of simple strings with FreeType
2019-03-04 19:54:10 +05:30
Kovid Goyal
5955b44c74
Remove unused code
2019-03-04 19:54:10 +05:30
Kovid Goyal
8b5f02bb0b
Fix shader invocation for cells output during resize
2019-03-04 19:54:10 +05:30
Kovid Goyal
f2a1ff2584
...
2019-03-04 19:54:10 +05:30
Kovid Goyal
11522ccc92
Initial code to show window size in cells while resizing
2019-03-04 19:54:10 +05:30
Kovid Goyal
bb97c589c1
FreeType code to render a simple string
2019-03-04 19:54:09 +05:30
Kovid Goyal
4a5a9b2888
Render windows as bank during a resize
2019-03-04 19:54:09 +05:30
Kovid Goyal
b1bd581065
Make live resize code a little cleaner
2019-03-04 19:54:05 +05:30
Kovid Goyal
3bd1ca0ac3
Avoid using timing related hacks to detect the end of a live resize on macOS
...
Since cocoa provides start/end notifications for live resizing, rely on
those instead.
2019-03-04 19:52:46 +05:30
Kovid Goyal
bbeb08ba08
Change docs for resize kludge on Cocoa
2019-03-04 19:52:46 +05:30
Kovid Goyal
66dbdf4b40
Do notcheck for closed windows on every loop tick
2019-03-04 19:52:46 +05:30
Kovid Goyal
f0a2c34eca
Port cocoa backed to use glfw mainloop
2019-03-04 19:52:46 +05:30
Kovid Goyal
9f35b9281b
Avoid needing to continuously add/remove timers
2019-03-04 19:52:46 +05:30
Kovid Goyal
7624578c21
Fix X11/Wayland addTimer returning incorrect timer ids
2019-03-04 19:52:45 +05:30
Kovid Goyal
d4b477ad78
Share main loop implementation between wayland and X11
2019-03-04 19:52:45 +05:30
Kovid Goyal
e6d5eea7eb
Get rid of glfw_post_empty_event as it is not needed
2019-03-04 19:52:45 +05:30
Kovid Goyal
bef9490fa8
Switch to using the GLFW main loop
2019-03-04 19:52:45 +05:30
Kovid Goyal
d593ccba2f
Add a loop tick callback
2019-03-04 19:52:45 +05:30
Kovid Goyal
1902d8bb19
Explicitly handle the empty events on X11
2019-03-04 19:52:45 +05:30
Kovid Goyal
f10c65f1bf
Use the new glfw timers to get rid of the kitty specific timers
2019-03-04 19:52:45 +05:30
Kovid Goyal
da507dfd19
Infrastructure for moving the run loop into GLFW
...
This is needed on Cocoa, where Apple expects to be in control of the run
loop.
2019-03-04 19:52:44 +05:30
Kovid Goyal
13254ac4d5
Fix #1435
2019-03-03 07:24:05 +05:30
Kovid Goyal
fc9ffb3115
Add changes to clipboard-control to changelog
2019-03-02 11:57:19 +05:30
Kovid Goyal
f64ffcac48
Merge branch 'clipboard_control-no-append' of https://github.com/agriffis/kitty
2019-03-02 11:55:42 +05:30
Kovid Goyal
f2a6cb3dbb
Merge branch 'replace_terminfo_dir_with_symlink' of https://github.com/Luflosi/kitty
2019-03-02 11:34:53 +05:30
Luflosi
4767d2b8d6
Replace the "78" terminfo directory with a symlink
2019-03-02 03:04:20 +01:00
Aron Griffis
1ceb8b1b0b
Allow no-append in clipboard_control
...
If no-append is present in clipboard_control, this will disable kitty's
OSC 52 extension of concatenating to the clipboard.
See #995
2019-03-01 09:10:07 -05:00
Kovid Goyal
719a9a5b64
Fix #1428
2019-02-28 18:05:52 +05:30
Kovid Goyal
5adf7c2a3a
icat kitten: Add a --silent flag to avoid printing anything to stdout
...
Useful for integration with other tools. See #1308
2019-02-27 09:02:15 +05:30
Kovid Goyal
1c9d6bf9e6
Merge branch 'more_verbose_error_messages' of https://github.com/Luflosi/kitty
2019-02-26 08:04:13 +05:30
Luflosi
f85dfe91a9
Log the exact value of the cell height/width when it's invalid
2019-02-26 03:26:53 +01:00
Kovid Goyal
749fb84053
Cleanup cell dim sanity checks
2019-02-26 07:02:45 +05:30
Kovid Goyal
e33af8b2f8
Fix #1423
2019-02-26 06:56:25 +05:30
Kovid Goyal
61a9f7baae
Merge branch 'cell_height_width_off_by_one' of https://github.com/Luflosi/kitty
2019-02-25 21:19:22 +05:30
Luflosi
4d4b690a99
Change cell_height and cell_width checks to be consistent with later check
2019-02-25 16:13:56 +01:00
Kovid Goyal
d4c2293d56
Merge branch 'color_code_case' of https://github.com/Luflosi/kitty
2019-02-25 20:03:16 +05:30
Luflosi
3b34cec64c
Consistent case for color codes
2019-02-25 14:47:14 +01:00
Kovid Goyal
a1e9b854e3
Move cocoa custom even dispatching into the application object
...
This allows it to work even with the cocoa run loop
2019-02-25 15:51:39 +05:30
Kovid Goyal
01ed1e1604
Move initial window blanking to before showing the window
2019-02-25 15:07:03 +05:30
Kovid Goyal
b7b1a1f1c6
Blank the window at creation so that there is no initial flash of color changing, in case the background color is not black
...
Fixes #1404
2019-02-25 14:32:56 +05:30
Kovid Goyal
c9446727d3
Only set swap interval once
2019-02-25 14:28:47 +05:30
Kovid Goyal
cff79bc9d4
Forgot that cocoa blink interval time is in ms
2019-02-25 11:17:29 +05:30
Kovid Goyal
72ccf87d19
macOS: Use the system cursor blink interval by default
...
Can be changed with:
defaults write -g NSTextInsertionPointBlinkPeriodOff -float 500
defaults write -g NSTextInsertionPointBlinkPeriodOn -float 500
2019-02-25 09:37:48 +05:30
Kovid Goyal
2387c71b3c
Merge branch 'macos_switch_tab_shortcut' of https://github.com/Luflosi/kitty
2019-02-25 06:58:55 +05:30
Luflosi
47a2120023
Add two more macOS keyboard shortcuts for switching tabs
2019-02-24 17:37:02 +01:00
Kovid Goyal
b777353766
Missed one call to migrate
2019-02-24 20:14:31 +05:30
Kovid Goyal
5d4491667b
Use a single function for cocoa pending actions
...
Also fix a couple of memory leaks when using coca pending actions with a
wd
2019-02-24 20:07:37 +05:30
Kovid Goyal
9fbd14f815
Merge branch 'check_for_null' of https://github.com/Luflosi/kitty
2019-02-24 19:45:15 +05:30
Luflosi
f38b27e923
Add check for NULL after malloc()
2019-02-24 14:48:54 +01:00
Kovid Goyal
cb8116e2af
Fix leak of a few bytes of memory after every update notification
...
Fixes #1411
2019-02-24 10:19:19 +05:30
Kovid Goyal
2066dd0077
Merge branch 'memory_leak_no_2' of https://github.com/Luflosi/kitty
2019-02-23 20:24:00 +05:30
Luflosi
37afd7aaa7
Fix memory leak
2019-02-23 15:46:16 +01:00
Kovid Goyal
8df9ccc72c
Merge branch 'memory_leak__nr_1' of https://github.com/Luflosi/kitty
2019-02-23 18:00:18 +05:30
Luflosi
862075bd65
Fix memory leak
2019-02-23 12:32:40 +01:00
Kovid Goyal
27ffed5a1a
Merge branch 'exe-ordered' of https://github.com/blueyed/kitty
...
Fixes #1406
2019-02-23 15:31:57 +05:30
Kovid Goyal
bf2c50b58b
Merge branch 'check_for_null' of https://github.com/Luflosi/kitty
2019-02-23 15:19:32 +05:30
Daniel Hahler
34c35ff4ca
kitty_exe: use ordered list
...
Fixes https://github.com/kovidgoyal/kitty/issues/1406 .
2019-02-23 10:40:00 +01:00
Luflosi
174a45b4bd
Add check for NULL after malloc()
2019-02-23 09:13:12 +01:00
Kovid Goyal
e44b331cc3
Fix exception when getting function name for debug_keyboard action dispatch
...
Fixes #1401
2019-02-23 08:00:21 +05:30
Kovid Goyal
aed504efdc
Remove unnecessary NULL check
2019-02-23 07:42:08 +05:30
Kovid Goyal
ca38568187
Merge branch 'wrong_return_type' of https://github.com/Luflosi/kitty
2019-02-22 22:42:32 +05:30
Luflosi
a653c17e8a
Fix function returning the wrong type
2019-02-22 15:13:13 +01:00
Kovid Goyal
6bbd33eca4
...
2019-02-21 08:41:56 +05:30
Kovid Goyal
494235750e
Cleanup note on visudo
2019-02-21 08:38:39 +05:30
Lucius Hu
076c81c4ee
Add notes on getting sudo to preserve TERMINFO to the FAQ
2019-02-21 08:36:59 +05:30
Kovid Goyal
abd4de7311
macOS: Fix :opt:sync_to_monitor not working on Mojave.
2019-02-20 20:09:15 +05:30
Kovid Goyal
4629ef627f
GLFW: Add support for render frames on Cocoa (CVDisplayLink)
...
Allows vsync to work again since Apple broke OpenGL swap intervals on
Mojave
2019-02-20 15:08:07 +05:30
Kovid Goyal
b1c2e90a05
oops
2019-02-20 06:21:13 +05:30
Kovid Goyal
c19cbaad24
Handle wrap around when using negative values for adjust cell sizes
2019-02-20 06:19:54 +05:30
Kovid Goyal
1a3fdac4e4
Merge branch 'macos_focus_change' of https://github.com/koekeishiya/kitty
2019-02-20 06:11:27 +05:30
koekeishiya
d343981faa
#1379 highest_focus_counter and loop index should be initialized to 0
2019-02-19 21:23:56 +01:00
Kovid Goyal
51c0c51884
Allow using the new private internal clipboard buffers with the copy_on_select option
...
Fixes #1390
2019-02-19 21:12:37 +05:30
Kovid Goyal
cb2d162bec
Support for an arbitrary number of internal clipboard buffers to copy/paste from
2019-02-19 20:41:23 +05:30
Kovid Goyal
6507fd1ac2
Refactor code to focus previous window on cocoa into a separate function
2019-02-19 20:09:24 +05:30
Kovid Goyal
442f2adf23
Use non-deprecated API to get workspaces for window on Cocoa
...
Thanks to @koekeishiya
2019-02-19 19:54:59 +05:30
Kovid Goyal
702613915b
Revert "macOS: Fix v-sync to monitor refresh rate no longer working under Mojave."
...
This reverts commit 104e213934 .
Fixes #1393
2019-02-19 14:43:36 +05:30
Kovid Goyal
8ebc9553c3
Report negative percentage adjustments of cell sizes
...
Fixes #1394
2019-02-19 07:17:10 +05:30
Kovid Goyal
ae8076e411
Add a note about runnning commands from within kitty to the timeout error message
2019-02-18 10:29:04 +05:30
Kovid Goyal
f3974671f6
macOS: Reduce energy consumption by not rendering occluded windows
2019-02-18 10:10:04 +05:30
Kovid Goyal
dcb2d95f9a
GLFW: Add support for window occluded notifications on macOS
...
Based on: https://github.com/glfw/glfw/pull/1123
2019-02-18 10:03:21 +05:30
Kovid Goyal
c8bb7aae40
Merge branch 'upper_case_fatal_messages' of https://github.com/Luflosi/kitty
2019-02-18 08:24:34 +05:30
Luflosi
4711e10df2
Let all fatal messages begin with an upper case character
2019-02-17 22:43:10 +01:00
Kovid Goyal
28f1b8a7a0
Nicer report when failing to process update check data
...
Fixes #1389
2019-02-17 16:00:36 +05:30
Kovid Goyal
104e213934
macOS: Fix v-sync to monitor refresh rate no longer working under Mojave.
...
Mojave broke the technique GLFW used to use for v-sync. Changed to use
CVDisplayLink, fix comes from: https://github.com/glfw/glfw/pull/1417
2019-02-17 11:39:49 +05:30
Kovid Goyal
fe3a432845
Documentation for window frames on Wayland
2019-02-17 10:38:48 +05:30
Kovid Goyal
423f8e59cc
Wayland: Fix auto-iconify on kwin_wayland
...
Upstream: 45bd991ea9
2019-02-17 10:35:39 +05:30
Kovid Goyal
1c468b2931
Wayland: Only auto-iconify fullscreen windows
...
Upstream: edf0a07174
2019-02-17 10:31:17 +05:30
Kovid Goyal
85faad5ec7
Wayland: use SHM_ANON on FreeBSD
...
Upstream: 36ce73bbfd
2019-02-17 10:30:02 +05:30
Kovid Goyal
869152750c
X11: Fix system cursor used for GLFW_HAND_CURSOR
...
From upstream: 2a27eb95e4
2019-02-17 10:21:15 +05:30
Kovid Goyal
7fd4ec50c9
macOS: When closing a top-level window only switch focus to the previous kitty window if it is on the same workspace
...
Fixes #1379
Fixes #1383
2019-02-16 13:21:52 +05:30
Kovid Goyal
8de4dd334b
Use Apple private APIs to get workspace id
2019-02-16 12:58:15 +05:30
Kovid Goyal
c5cc208397
Dont use a stack to focus other window on window close
2019-02-16 12:26:49 +05:30
Kovid Goyal
718e6fa93d
Fix scrollback pager history not being cleared when clearing the main scrollback buffer
...
Fixes #1387
2019-02-16 12:15:39 +05:30
Kovid Goyal
0833697c49
Merge branch 'more_macos_keyboard_shortcuts' of https://github.com/Luflosi/kitty
2019-02-15 10:18:57 +05:30
Kovid Goyal
112ae0edab
Next release will be 0.14.0 not 0.13.x
2019-02-15 10:12:25 +05:30
Kovid Goyal
502c31b408
icat: Ensure temp files are cleaned up
2019-02-15 10:08:25 +05:30
Kovid Goyal
062563a562
icat: Add support for file:// URLs as well
2019-02-15 09:59:54 +05:30
Kovid Goyal
c385532b10
A new option :opt:tab_bar_min_tabs to control how many tabs must be present before the tab-bar is shown
...
Fixes #1382
2019-02-15 09:47:22 +05:30
Kovid Goyal
81f4b4cece
...
2019-02-15 06:52:33 +05:30
Kovid Goyal
23482e3cf4
macOS: Allow assigning only the left or right :kbd:Option key to work as the :kbd:Alt key. See :opt:macos_option_as_alt for details
...
Fixes #1022
2019-02-14 20:39:32 +05:30
Kovid Goyal
b49b34c4c1
Micro-optimization
2019-02-14 15:41:29 +05:30
Kovid Goyal
b40ca5800d
macOS: Fix using multi-key sequences to input text ignoring the first few key presses if the sequence is aborted
...
Fixes #1311
2019-02-14 15:10:13 +05:30
Kovid Goyal
3b25081353
Print out current text when ignoring dead keys
2019-02-14 14:56:06 +05:30
Kovid Goyal
5726466db3
Ensure cells are at least 2 pixels wide
...
User could specify adjust_column_width to make cells too naroow
otherwise
2019-02-14 10:22:45 +05:30
Kovid Goyal
27acd4c7d4
Don't crash when rendering special cells with absurd cell sizes
...
Fixes #1378
2019-02-14 09:49:51 +05:30
Kovid Goyal
f98d780f3e
macOS: Allow opening new kitty tabs/top-level windows from Finder
...
Merge branch 'macos_service' of https://github.com/Luflosi/kitty
2019-02-11 14:53:12 +05:30
Luflosi
8177cfac2a
macOS Finder Service to open a directory in a new kitty tab or window
2019-02-10 15:38:45 +01:00
Kovid Goyal
fb4123a6f2
Guard calls to glfwGetMonitorContentScale
2019-02-08 08:03:16 +05:30
Kovid Goyal
191913b7eb
Add a paragraph about unrecognized key handling
2019-02-05 14:14:36 +05:30
Kovid Goyal
3a3f745d31
...
2019-02-05 10:41:05 +05:30
Kovid Goyal
eebe12a972
Allow specifying a value of `none for the :opt:selection_foreground`` which will cause kitty to not change text color in selections
...
Fixes #1358
2019-02-05 10:34:56 +05:30
Kovid Goyal
274dd2f3fe
Cleanup
...
From upstream: 90e22947c6
2019-02-03 20:17:28 +05:30
Kovid Goyal
fb5dbc811b
Cocoa: Fix handling of analog joystick buttons
...
From upstream: 463ef7eb71
2019-02-03 20:16:47 +05:30
Kovid Goyal
c31c32f921
Cocoa: Add missing IOHID page and usages
...
From upstream: 51ca41dd9f
2019-02-03 20:15:33 +05:30
Kovid Goyal
22b756753a
X11: Fix EWMH state update for hidden windows
...
From upstream: 78e6a0063d
2019-02-03 20:09:18 +05:30
Kovid Goyal
cb7eb48768
Cleanup
...
From upstream: d5ab3e919a
2019-02-03 20:04:54 +05:30
Kovid Goyal
22ed014123
Fix tabs being used for spaces in some source code files
2019-02-03 19:59:02 +05:30
Kovid Goyal
419b078104
Remove duplicate centerCursor function
...
From upstream: a46104ee69
2019-02-03 19:56:16 +05:30
Kovid Goyal
b51584525a
Forgot to remove function on apple
2019-02-03 19:47:37 +05:30
Kovid Goyal
728dbbfff0
...
2019-02-03 19:41:19 +05:30
Kovid Goyal
7485269c37
Forgot to set timers/watches on session bus connection
2019-02-03 19:36:39 +05:30
Kovid Goyal
cffaa54a78
Forgot to dispatch events on the dbus session bus
2019-02-03 18:24:47 +05:30
Kovid Goyal
1f597fd2b3
Speed up build for ubuntu and include debug symbols
2019-02-03 16:00:55 +05:30
Kovid Goyal
48d792bc19
...
2019-02-03 15:58:29 +05:30
Kovid Goyal
5da123c632
Respond to clicks on user notifications via DBus
2019-02-03 15:54:32 +05:30
Kovid Goyal
27887ada45
Script to easily test kitty in my Ubuntu VM
2019-02-03 15:44:18 +05:30
Kovid Goyal
4c9a6ed56c
Set a default action name on the dbus notification
2019-02-03 13:53:26 +05:30
Kovid Goyal
1bf2864638
API to handle DBus user notification activation
2019-02-03 13:20:07 +05:30
Kovid Goyal
c8bd61b345
...
2019-02-03 11:32:35 +05:30
Kovid Goyal
7ee04b37ac
Drop the dependency on libnotify for notifications on Linux
2019-02-03 11:27:05 +05:30
Kovid Goyal
5957befaad
Build linux_notify.c
2019-02-03 10:28:03 +05:30
Kovid Goyal
17a16ccd21
Remove unused code
2019-02-03 10:25:38 +05:30
Kovid Goyal
1de940d7b4
Forgot to commit this in the previous commit
2019-02-03 10:24:26 +05:30
Kovid Goyal
9a2ff9e419
Use stdbool for glfw boolean types
2019-02-03 10:13:02 +05:30
Kovid Goyal
84caf787aa
macOS: Workaround for cocoa bug that could cause the mouse cursor to become hidden in other applications in rare circumstances
...
Use window focus gained/lost events instead of mouse enter/exit events
to hide/show the mouse cursor.
Fixes #1218
2019-02-03 08:58:16 +05:30
Kovid Goyal
e9d0d40809
Merge branch 'whitespace' of https://github.com/Luflosi/kitty
2019-02-03 08:17:08 +05:30
Luflosi
0e2a5c63c6
Convert some tabs to spaces
2019-02-02 22:08:32 +01:00
Kovid Goyal
9916802a69
Only kill process if not already dead
2019-02-02 15:56:51 +05:30
Kovid Goyal
bfac482940
Ensure the update check process is killed on exit
2019-02-02 15:48:15 +05:30
Kovid Goyal
8778cf63c4
Correct fix for ignoring BrokenPipeError
2019-02-02 15:47:13 +05:30
Kovid Goyal
d5d1e6c11e
Ignore broken pipe errors when readon data from update check worker
2019-02-02 15:41:55 +05:30
Kovid Goyal
8e6780e761
...
2019-02-02 15:37:48 +05:30
Kovid Goyal
ddb961f9af
Dont fail to run if the update check fails
2019-02-02 15:36:32 +05:30
Kovid Goyal
670de085a3
Add API to GLFW for user notifications using DBus
2019-02-02 13:48:26 +05:30
Kovid Goyal
4c49573465
Randomize the sleep before version fetch
2019-02-01 23:33:41 +05:30
Kovid Goyal
13d478ffca
Use kitty_exe() for the update_check worker
2019-02-01 23:25:19 +05:30
Kovid Goyal
1cc95a605c
Add a link to update instructions at the top of the changelog
2019-02-01 14:46:31 +05:30
Kovid Goyal
e19f180c71
Fix notifications on macOS
2019-02-01 14:43:03 +05:30
Kovid Goyal
d3ad15dc51
Automatically check for new releases and notify when an update is available, via the system notification facilities. Can be controlled by :opt:update_check_interval
...
Fixes #1342
2019-02-01 12:08:35 +05:30
Kovid Goyal
3aaa69b36c
...
2019-01-31 20:57:21 +05:30
Kovid Goyal
41906cf7db
Infrastructure to monitor child processes for death
2019-01-31 20:43:50 +05:30
Kovid Goyal
f3696da0ff
Put the functions in the wrong place
2019-01-31 19:55:05 +05:30
Kovid Goyal
fab723b9bc
Manage timer callback reference counts
2019-01-31 19:30:40 +05:30
Kovid Goyal
d3a3a89098
Add a function to change timer intervals
2019-01-31 18:43:12 +05:30
Kovid Goyal
68313e99a7
Add a function to remove timers
2019-01-31 18:41:20 +05:30
Kovid Goyal
9b73d25151
Add infrastructure for timers to the event loop
2019-01-31 18:37:29 +05:30
Luflosi
440db8f4bd
Revert "Add default keyboard shortcuts to jump words on macOS"
...
This reverts commit e114c8d6b854e1cfd839ee4a2abf1b450f963f4f.
2019-01-30 12:26:11 +01:00
Luflosi
6690c4f916
Add default keyboard shortcuts to jump words on macOS
2019-01-30 12:26:11 +01:00
Luflosi
6d3ad7d903
Implement suggestions for macOS keyboard shortcuts
2019-01-30 12:26:11 +01:00
Luflosi
0d60b88f1d
Add more common macOS keyboard shortcuts
2019-01-30 12:26:10 +01:00
Luflosi
aa82d8fddd
Change default of "macos_option_as_alt" option from True to False
2019-01-30 12:26:10 +01:00
Kovid Goyal
10f5461cd8
Nicer signal handling in cocoa for the notification run loop
2019-01-30 14:50:04 +05:30
Kovid Goyal
c7a0626c69
version check infrastructure
2019-01-30 13:49:30 +05:30
Kovid Goyal
6a9a7dee55
macOS: Add an option macos_show_window_title_in_menubar to not show the current window title in the menu-bar
...
Fixes #1066
2019-01-30 13:29:55 +05:30
Kovid Goyal
8952afd6cc
Fix compilation of new choose kitten under FreeBSD
...
I hope. Fixes #1347
2019-01-30 09:11:25 +05:30
Kovid Goyal
526c526bf3
Make compiler detection more robust
2019-01-30 09:05:42 +05:30
Kovid Goyal
12e269e791
Make the currently released version available on the website
2019-01-29 21:48:11 +05:30
Kovid Goyal
c2f6450af3
Framework for displaying simple OS notifications
2019-01-29 18:11:48 +05:30
Kovid Goyal
c8dfe955d7
...
2019-01-29 11:08:34 +05:30
Kovid Goyal
71091e73a4
Merge branch 'osx_to_macos' of https://github.com/Luflosi/kitty
2019-01-29 09:01:24 +05:30
Luflosi
25d1b2328f
Missed one instance of "OS X"
2019-01-28 23:57:28 +01:00
Kovid Goyal
4085fe2e8e
Merge branch 'osx_to_macos' of https://github.com/Luflosi/kitty
2019-01-28 08:44:37 +05:30
Kovid Goyal
74445674f2
Specify the behavior of underline color w.r.t. reverse video
2019-01-28 08:41:02 +05:30
Luflosi
c343bdd120
Rename OS X -> macOS
2019-01-28 01:25:02 +01:00
Kovid Goyal
5ff4a6f4d8
Add a note to the icat help about viewing URLs
2019-01-27 21:33:03 +05:30
Kovid Goyal
5172597d96
Also process ftp URLs in icat
2019-01-27 21:30:53 +05:30
Kovid Goyal
a09fb7b20d
icat kitten: Add support for displaying images at http(s) URLs
...
Fixes #1340
2019-01-27 21:28:46 +05:30
Kovid Goyal
af9e633d56
Remove Travis
2019-01-27 09:45:36 +05:30
Kovid Goyal
df62478418
Install pkg-config in the Brewfile
...
Not available on CircleCI by default
2019-01-27 09:30:10 +05:30
Kovid Goyal
c623cd5d01
Add a brew build to CircleCI
2019-01-27 09:21:02 +05:30
Kovid Goyal
3126f31cbf
CircleCI has enabled mac builds
2019-01-27 08:16:46 +05:30
Kovid Goyal
c33c88b2c6
Ignore background_opacity if could not make window semi-transparent
...
Should prevent bug reports like #1334
2019-01-27 08:16:07 +05:30
Kovid Goyal
36d5afef9f
Disable mac build on CircleCI until they grant access
2019-01-26 14:51:57 +05:30
Kovid Goyal
c8ed52f600
...
2019-01-26 14:31:33 +05:30
Kovid Goyal
8d7e083e64
Try building on macOS on CircleCI
2019-01-26 14:30:10 +05:30
Kovid Goyal
2144f43142
Add a note about how to build the docker image used for testing
2019-01-26 13:35:22 +05:30
Kovid Goyal
66d2930b7e
Add CircleCI badge
2019-01-26 13:06:11 +05:30
Kovid Goyal
4dcaec0997
Env var fixed for bundle build
2019-01-26 12:51:17 +05:30
Kovid Goyal
33da5ca869
--with-system-ffi is ignored as of py3.7
2019-01-26 12:50:10 +05:30
Kovid Goyal
4c1a69a98c
SW does not seem to survive despite the ENV key
2019-01-26 12:30:50 +05:30
Kovid Goyal
d613962f5b
Check LD_LIBRARY_PATH
2019-01-26 11:57:32 +05:30
Kovid Goyal
8f7cef1232
Fix indentation
2019-01-26 11:53:15 +05:30
Kovid Goyal
7a91ba3699
Add a bundle build to CircleCI
2019-01-26 11:51:23 +05:30
Kovid Goyal
14018a5e54
Fix installation of bundle in container
2019-01-26 11:27:14 +05:30
Kovid Goyal
81a03fcea8
Fix environment key
2019-01-26 10:15:36 +05:30
Kovid Goyal
48962a58ae
Set LD_LIBRARY_PATH
2019-01-26 09:38:30 +05:30
Kovid Goyal
8c9c777ad3
More work on CircleCI testing
...
Make the container more like CircleCI official images. Install
the kitty bundle in it. Run sanitizer and multi-python tests.
2019-01-26 09:04:29 +05:30
Kovid Goyal
dc6e276e39
Install multiple pythons on CircleCI
2019-01-25 15:50:04 +05:30
Kovid Goyal
8182fcecd2
...
2019-01-25 15:02:42 +05:30
Kovid Goyal
4d082dbf80
Split up deps installation for easier maintenance
2019-01-25 15:02:05 +05:30
Kovid Goyal
5b5c49d317
More dependencies
2019-01-25 14:45:35 +05:30
Kovid Goyal
51b5510669
More needed dependencies
2019-01-25 14:11:45 +05:30
Kovid Goyal
7a4b438dc6
Get basic build going
2019-01-25 14:08:19 +05:30
Kovid Goyal
1a29de5ac9
Forgot workflows key
2019-01-25 12:11:28 +05:30
Kovid Goyal
ed8edf3e4c
Install sphinx on CircleCI
2019-01-25 12:08:07 +05:30
Kovid Goyal
9fcde9d81d
Use latest ubuntu rather than pinning to bionic
2019-01-25 11:56:51 +05:30
Kovid Goyal
81ffa7e948
Install flake8 and pip and also fix entrypoint
2019-01-25 11:17:48 +05:30
Kovid Goyal
93d2d30867
Do whitespace check on CircleCI
2019-01-25 11:08:17 +05:30
Kovid Goyal
42e05c5ad2
Start config.yml for CircleCI
2019-01-25 11:02:43 +05:30
Kovid Goyal
d37e815f13
Start work on CircleCI integration
...
CircleCI is nicer than Travis since it allows using custom docker images
transparently, greatly simplifying dependency management.
2019-01-25 10:40:31 +05:30
Kovid Goyal
a1f454937c
See if disabling brew update works on Travis as it is very flow (takes eight minutes at the moment)
2019-01-25 09:27:19 +05:30
Kovid Goyal
b041dcc8ce
Ensure we dont try to update window title for tabs with no windows
2019-01-24 21:05:46 +05:30
Kovid Goyal
22c65c5d03
Fix window title for minimized windows not being updated
...
Fixes #1332
2019-01-24 21:04:26 +05:30
Kovid Goyal
60b64dadfe
Add tests for the subseq matcher
2019-01-24 20:52:18 +05:30
Kovid Goyal
edb25314c5
Add skeleton for choose kitten
2019-01-23 20:04:46 +05:30
Kovid Goyal
19bce0c23c
Start work on a choose kitten for fuzzy selection
2019-01-23 19:38:08 +05:30
Kovid Goyal
8ceb941051
Merge branch 'remove_line' of https://github.com/Luflosi/kitty
2019-01-23 19:35:07 +05:30
Luflosi
8b28cbb30c
Remove unwanted line
2019-01-23 12:20:34 +01:00
Kovid Goyal
de130787f6
Make the charsets code useable in kittens
2019-01-23 11:33:45 +05:30
Kovid Goyal
6e94dae9cd
Handle cursor_text_color that is already a Color when patching
2019-01-23 10:38:09 +05:30
Kovid Goyal
d2431783f1
Fix using remote control to set cursor text color causing errors when creating new windows
...
Fixes #1326
2019-01-23 10:14:59 +05:30
Kovid Goyal
5787b472c0
A new option strip_trailing_spaces to optionally remove trailing spaces from lines when copying to clipboard.
2019-01-21 15:48:21 +05:30
Kovid Goyal
6bdfc0387b
Mention the new key_demo kitten in the protocol docs
2019-01-21 10:39:42 +05:30
Kovid Goyal
7ba98344b6
Cleanup commit from upstream
...
2053f3ed22
2019-01-20 14:56:40 +05:30
Kovid Goyal
c887df6ab4
GLFW upstream commit to allow waiting on events without a window
...
55b1a16f90
2019-01-20 14:55:36 +05:30
Kovid Goyal
a8ad4461a1
Create a kitten to demonstrate the kitty extended keyboard protocol
2019-01-20 14:38:19 +05:30
Kovid Goyal
32a0e28686
macOS: Fix :kbd:cmd+period key not working
...
Fixes #1318
2019-01-20 13:17:01 +05:30
Kovid Goyal
df13f0ce5a
Merge branch 'semicolon' of https://github.com/Luflosi/kitty
2019-01-19 18:02:09 +05:30
Luflosi
972f0c0e2b
Remove unnecessary semicolons
2019-01-19 12:28:03 +01:00
Kovid Goyal
c7a3a4d421
Fix use of deprecated sphinx API
2019-01-19 14:16:38 +05:30
Kovid Goyal
fbccfb9d0d
version 0.13.3
2019-01-19 14:06:53 +05:30
Kovid Goyal
9fdd8e4ae4
macOS: Fix some kittens causing 100% CPU usage
2019-01-19 14:01:36 +05:30
Kovid Goyal
6b6dea5190
...
2019-01-19 13:51:18 +05:30
Kovid Goyal
5af551c96d
macOS: Fix detection of differ
...
There can be a wrapper git on macOS that complains about command line
tools installation, so check that passing --help to it actually works.
2019-01-19 12:36:34 +05:30
Kovid Goyal
6761fdca1a
...
2019-01-19 12:16:44 +05:30
Kovid Goyal
725da39ecb
macOS: Add aliases for lose window and new tab actions that conform to common Apple shortcuts for these actions
...
Fixes #1313
2019-01-19 09:18:25 +05:30
Kovid Goyal
9005fc359d
Merge branch 'unjam' of https://github.com/jacwah/kitty
...
Fixes #1312
2019-01-18 22:23:12 +05:30
Jacob Wahlgren
33e4a44008
Unjam event loop when adding pending cocoa action
...
Fixes the problem reported in
https://github.com/kovidgoyal/kitty/issues/1312 .
2019-01-18 17:32:22 +01:00
Kovid Goyal
3bddb9d95b
Fix an exception when chaging diff context on very small diffs
2019-01-16 21:24:34 +05:30
Kovid Goyal
fa01e0b76f
icat kitten: Add a --stdin option to control if image data is read from stdin
...
See #1308
2019-01-16 16:35:53 +05:30
Kovid Goyal
f8f188ecff
Merge branch 'travis-osx' of https://github.com/stephengroat/kitty
2019-01-16 06:26:02 +05:30
Stephen G
07935d9bd3
Use brew for osx
2019-01-15 15:00:29 -08:00
Kovid Goyal
a827f4190c
Merge branch 'fix_white_background_transparency' of https://github.com/Luflosi/kitty
2019-01-14 13:10:15 +05:30
Kovid Goyal
18c108ed03
macOS: Fix a regression that broke mapping of ctrl+tab
...
Fixes #1304
2019-01-14 10:53:31 +05:30
Kovid Goyal
2d70059f47
Document fix for #1299
...
Fix #1299
2019-01-14 10:12:05 +05:30
Kovid Goyal
63ff3cfb9f
Merge branch 'negative_scroll_alternate_mode' of https://github.com/Luflosi/kitty
2019-01-14 10:10:22 +05:30
Kovid Goyal
ca70f22d46
Add a list of user-created kittens to the docs
2019-01-14 10:03:28 +05:30
Kovid Goyal
c247a6c0cc
macOS: Ensure that when running from a bundle, the bundle kitty exe is preferred over any kitty in PATH
...
Fix #1280
2019-01-14 09:32:49 +05:30
Luflosi
7421a0b9e3
Apply negative scroll multiplier in alternate screen mode
...
Fixes kovidgoyal/kitty#1299
2019-01-14 00:11:19 +01:00
Kovid Goyal
30b5e8bf8f
Merge branch 'patch-1' of https://github.com/robbyoconnor/kitty
2019-01-13 09:50:25 +05:30
Robby O'Connor
96475ce3ee
Switch travis to Xenial
2019-01-11 20:53:43 -05:00
Kovid Goyal
24669fb6af
Port a couple of fixes from upstream
...
72c3908e14
cde0aaaab1
2019-01-11 14:20:26 +05:30
Kovid Goyal
851885568f
macOS: Fix dragging kitty window tabs in traditional full screen mode causing crashes
...
Fixes #1296
Apparently, macOS reports NaN DPI values in this scenario.
I dont know enough about cocoa internals to understand why, or
what is actually supposed to happen in this scenario, but at least we
should not crash.
2019-01-11 11:09:34 +05:30
Kovid Goyal
8efbc479e1
Remove unused code
2019-01-09 10:13:43 +05:30
Luflosi
2167bfd5b5
Fix #1221 in a different way
2019-01-08 16:14:41 +01:00
Luflosi
490d4455af
Fix white background color not allowing transparency
2019-01-08 16:14:01 +01:00
Kovid Goyal
c94e06ccd2
hints kitten: Start hints numbering at one instead of zero by default. Added an option `--hints-offset` to control it.
...
Fixes #1289
Fixes #1290
2019-01-08 07:31:54 +05:30
Kovid Goyal
ea37799fb0
Fix linking happening even when not needed
2019-01-06 10:25:37 +05:30
Kovid Goyal
d00fbd73fc
Fix a regression in the previous release that broke using `background for cursor_text_color`
...
Fixes #1288
2019-01-06 10:23:33 +05:30
Kovid Goyal
361b23e3f1
Fix long text docs for copy_to_clipboard
2019-01-04 09:37:59 +05:30
Kovid Goyal
8feccdf63f
version 0.13.2
2019-01-04 09:26:51 +05:30
Kovid Goyal
ed905fcf6d
Add a new `copy_or_interrupt action that can be mapped to kbd:ctrl+c`. It will copy if there is a selection and interrupt otherwise
...
Fixes #1286
2019-01-04 09:21:29 +05:30
Kovid Goyal
50a6abaac1
Also fix move_tab to preserve existing tab order
2019-01-04 06:59:38 +05:30
Kovid Goyal
718f7e77a1
Use the current working directory of the foreground process for the *_with_cwd actions that open a new window with the current working directory.
2019-01-03 13:29:52 +05:30
Kovid Goyal
c4aeb1adba
Report the current foreground processes as well as the original child process, when using kitty @ ls
2019-01-03 13:14:39 +05:30
Kovid Goyal
d9c69f0a54
Merge branch 'sentexttab' of https://github.com/grimpy/kitty
2019-01-01 18:29:10 +05:30
Jo De Boeck
5afdbbe6f1
Add match-tab for send-text
...
Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com >
2019-01-01 14:39:28 +02:00
Kovid Goyal
4273cb35bf
Linux: Dont fail on systems with fonts that have non-UTF-8 names. Fixes #1281
2018-12-31 07:31:17 +05:30
Kovid Goyal
89be7a031d
Fix #1278
2018-12-30 15:22:05 +05:30
Kovid Goyal
06c5127856
Fix #1275
2018-12-29 08:08:24 +05:30
Kovid Goyal
fd298256d7
Merge branch 'more_switch_cases' of https://github.com/Luflosi/kitty
2018-12-28 14:57:18 +05:30
Luflosi
e0246044b7
Add remaining momentum scroll phases to switch statement
...
According to https://developer.apple.com/documentation/appkit/nsevent/1533550-phase the momentum phase may end with "cancelled" instead of "ended"
2018-12-28 09:03:16 +01:00
Kovid Goyal
2f677990b2
Fix glfwSetGamma generating ramps of invalid sizes
...
3531c320af
2018-12-28 08:19:17 +05:30
Kovid Goyal
da2e4c8503
...
2018-12-28 08:14:08 +05:30
Kovid Goyal
a1eb236616
Fix glfwGetGammaRamp error handling
...
751c6f9a27
2018-12-28 08:13:28 +05:30
Kovid Goyal
11186735c2
Couple of trivial commits from glfw upstream
...
064dfaa549
751c6f9a27
2018-12-28 08:06:26 +05:30
Kovid Goyal
a038f62a5b
Fix #1272
2018-12-28 07:52:29 +05:30
Kovid Goyal
f45acc055e
Merge branch 'more_event_phases' of https://github.com/Luflosi/kitty
2018-12-28 07:45:43 +05:30
Luflosi
43a25c49c4
Micro optimization
2018-12-27 15:19:22 +01:00
Luflosi
e47e2b2560
Move check for zero scroll distance to scroll_event()
2018-12-27 15:17:18 +01:00
Luflosi
7652065134
Add more momentum scroll phases
2018-12-27 15:12:57 +01:00
Kovid Goyal
d0da418e49
...
2018-12-27 08:19:06 +05:30
Kovid Goyal
77e72cfd9a
Fix #1270
2018-12-27 08:05:31 +05:30
Kovid Goyal
7b2ecb0498
Forgot a break
2018-12-27 08:02:24 +05:30
Kovid Goyal
318c5bca67
Merge branch 'fix_bitshift' of https://github.com/Luflosi/kitty
2018-12-27 07:57:46 +05:30
Luflosi
d52da934ca
Fix typo in bitshift
2018-12-26 22:47:23 +01:00
Kovid Goyal
21951e3668
Add explicit default case
2018-12-26 20:39:39 +05:30
Kovid Goyal
64bef38813
macOS: Fix momentum scrolling continuing when changing the active window/tab
...
Fixes #1267
2018-12-26 20:39:04 +05:30
Kovid Goyal
fe67e3dde7
Cocoa: Remove subclassing of NSApplication
...
From upstream: 88c5edb409
2018-12-26 12:29:38 +05:30
Kovid Goyal
fc5e74e457
Report momentum scrolling status of scroll events on cocoa
2018-12-26 11:03:36 +05:30
Kovid Goyal
fdbd8df7b2
Add patch from upstream to report caps lock key presses on cocoa
...
c4903d9267
2018-12-26 10:01:02 +05:30
Kovid Goyal
246972b59f
Add a patch from upstream, altered to not change behavior
2018-12-26 09:58:12 +05:30
Kovid Goyal
6057296499
Cocoa: Move to modern Objective-C literals
2018-12-26 09:45:24 +05:30
Kovid Goyal
b4b2207b93
Merge branch 'issue_1176' of https://github.com/daniel-pfeiffer/kitty
...
Add a FAQ entry about terminfo and sudo/su
2018-12-25 08:48:57 +05:30
Kovid Goyal
b881364c50
Merge branch 'mouse_scroll_acceleration_alternate_screen_mode' of https://github.com/Luflosi/kitty
2018-12-23 20:41:48 +05:30
Luflosi
76059882c4
Allow for scrolling acceleration in alternate screen mode when using low-resolution input devices like mice
2018-12-23 14:37:50 +01:00
Kovid Goyal
be71f5f1f4
Merge branch 'fix_downward_scrolling' of https://github.com/Luflosi/kitty
2018-12-23 17:25:46 +05:30
Luflosi
021dfcad39
Fix broken downward scrolling
2018-12-23 12:49:00 +01:00
Kovid Goyal
4e7498b854
Fix using the `new_tab !neighbor` action changing the order of the non-neighboring tabs
...
Fixes #1256
2018-12-23 08:45:34 +05:30
Kovid Goyal
494035c94b
remove redundant code
2018-12-23 08:15:57 +05:30
Kovid Goyal
9c4230ad9c
Add a comment for why we reset SIGPIPE
2018-12-20 09:29:09 +05:30
Kovid Goyal
056c2c12bb
Explicitly reset the SIGPIPE handler in child processes
...
Fixes #1253
2018-12-20 09:06:21 +05:30
Kovid Goyal
a97c440872
Merge branch 'fix-resize-window-doc' of https://github.com/eepp/kitty
2018-12-20 05:50:37 +05:30
Kovid Goyal
653d823175
Merge branch 'doc-change-font-size-current' of https://github.com/eepp/kitty
2018-12-20 05:49:16 +05:30
Daniel Pfeiffer
c2a2dbc88c
Help others avoid issue 1176.
2018-12-20 00:31:57 +01:00
Philippe Proulx
77492d31cf
change_font_size current ... changes the current OS window's font size
...
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com >
2018-12-19 11:51:05 -05:00
Philippe Proulx
aaa609109e
Fix resize_window documentation example
...
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com >
2018-12-19 11:34:15 -05:00
Kovid Goyal
2367fad90b
Merge branch 'resize-window-cfg' of https://github.com/eepp/kitty
2018-12-19 11:05:31 +05:30
Kovid Goyal
aaa521bd24
Merge branch 'sigint' of https://github.com/jacwah/kitty
2018-12-19 10:07:11 +05:30
Philippe Proulx
d22686da10
Add resize_window configuration action
...
This patch adds the `resize_window` configuration action, which has the
following arguments:
1. Quality of resize amongst `wider`, `narrower`, `taller`, and
`shorter` (mandatory).
2. Increment in number of cells (optional, default: 1).
This makes it possible to configure keys as such:
map ctrl+shift+left resize_window narrower
map ctrl+shift+right resize_window wider
map ctrl+shift+up resize_window taller
map ctrl+shift+down resize_window shorter
and have a behaviour which is somewhat close to Terminator's.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com >
2018-12-18 20:33:21 -05:00
Jacob Wahlgren
48b93ab28f
macOS: Exit on SIGINT
...
With the default macos_quit_when_last_window_closed no setting, Kitty
would not exit when receiving a SIGINT signal (e.g. from Ctrl-C).
2018-12-19 01:52:47 +01:00
Kovid Goyal
703a1b83a8
macOS: Fix scrolling very slowly with wheel mice not working
...
Fixes #1238
2018-12-18 11:15:22 +05:30
Kovid Goyal
c9441bd3e2
Add a changelog entry for the dock menu item
2018-12-18 11:00:07 +05:30
Kovid Goyal
9de6d619ee
Merge branch 'dockmenu' of https://github.com/jacwah/kitty
...
Fixes #1242
2018-12-18 10:59:13 +05:30
Jacob Wahlgren
9aae31ef2f
macOS: Add "New OS Window" to dock menu
...
Discussed in #1242 .
2018-12-17 23:53:43 +01:00
Kovid Goyal
dca04c549b
Forgot to regenerate keys table with plus key. Fixes #1246
2018-12-18 03:03:35 +05:30
Kovid Goyal
69e76d6eeb
Frogot to ad dplus key to _glfwGetKeyName
2018-12-17 21:16:57 +05:30
Kovid Goyal
b4a93c67c9
+ key change also works on macOS apparently
2018-12-17 13:57:20 +05:30
Kovid Goyal
f098e6c973
Use -std=c11 when building
...
This is needed for harfbuzz 2.0 on macOS. -std=c11 was supported as of
gcc 4.7 released in 2014. So hopefully this wont break compilation on any
systems otherwise capable of running kitty. Fixes #1196
2018-12-17 08:41:06 +05:30
Kovid Goyal
f8ebba3954
Fix changing cursor_text_color via remote control not working
...
Fixes #1229
2018-12-16 17:12:49 +05:30
Kovid Goyal
37ee693de2
Fix Private use Unicode area characters followed by spaces at the end of text not being rendered correctly
...
Fixes #1210
2018-12-16 13:10:47 +05:30
Kovid Goyal
f77ad2b41d
Add a couple of extra lib names for libstartup-notification.so
...
Fixes #1235
2018-12-14 23:01:49 +05:30
Kovid Goyal
e99eb2e72b
Handle malformed tab title templates gracefully
2018-12-13 13:43:22 +05:30
Kovid Goyal
86b89072f3
...
2018-12-13 13:35:17 +05:30
Kovid Goyal
022bee0560
Add a new option tab_title_template to control how tab titles are formatted.
...
In particular the template can be used to display the tab number next to the title
Merge branch 'tab-title-index' of https://github.com/nerdrew/kitty
2018-12-13 13:33:06 +05:30
Andrew Lazarus
204ea44946
add option to show tab index in tab_bar title
2018-12-12 23:21:08 -08:00
Kovid Goyal
3f2489b306
Linux: Handle keyboards with a "+" key
...
Adds a plus key to glfw so that it can be mapped as a shortcut. Fixes #1224
2018-12-13 09:56:30 +05:30
Kovid Goyal
291a2d6295
Merge branch 'kitten-stdin-docs' of https://github.com/nerdrew/kitty
2018-12-12 23:07:48 +05:30
Andrew Lazarus
b244d13e8a
update docs for kitten STDIN
2018-12-12 09:20:41 -08:00
Kovid Goyal
b33324d07c
Merge branch 'patch-1' of https://github.com/voxadam/kitty
2018-12-12 17:41:18 +05:30
Adam Hunt
ae2a641db5
Typo
2018-12-12 03:43:08 -08:00
Kovid Goyal
1cac757365
Merge branch 'yk-terminfo' of https://github.com/yurikhan/kitty
2018-12-12 06:26:45 +05:30
Yuri Khan
992de77040
Declare more function and editing keys with modifiers
...
Resolves #1220 .
2018-12-11 23:42:59 +07:00
Kovid Goyal
f6b5e54890
Fix failing test
2018-12-11 10:08:52 +05:30
Kovid Goyal
d20c65ef80
Graphics protocol: Only delete temporary image-data files if they are in a known temporary file location
2018-12-11 10:00:43 +05:30
Kovid Goyal
4a8562a85f
Fix setting background_opacity causing window margins/padding to be slightly different shade from background
...
Fixes #1221
2018-12-11 08:36:03 +05:30
Kovid Goyal
1ba7b5f5a3
version 0.13.1
2018-12-06 13:23:33 +05:30
Kovid Goyal
f895b7f8cb
...
2018-12-06 13:19:58 +05:30
Kovid Goyal
16542e96bf
Fix resizing window smaller and then restoring causing some wrapped lines to not be properly unwrapped
...
Fix #1206
2018-12-06 12:56:24 +05:30
Kovid Goyal
3005b8b9d6
...
2018-12-06 11:05:11 +05:30
Kovid Goyal
35653ef4b4
Linux: Fix a regression in the previous release that caused automatic selection of fonts when using aliases such as "monospace" to not work
...
Fix #1209
2018-12-06 08:42:13 +05:30
Kovid Goyal
36b3582825
Fix passing input via the pipe action to a program without a window not working.
2018-12-06 08:20:25 +05:30
Kovid Goyal
c17c801a31
Detect URL when clicking to activate URL
...
Makes the case where the screen contents have changed
between the last mouse move and the click work. See #1203
2018-12-05 14:43:01 +05:30
Kovid Goyal
460c353898
version 0.13.0
2018-12-05 14:21:26 +05:30
Kovid Goyal
3fa7007e91
Use the Wu line anti-alias algorithm for drawing undercurls
...
Fixes #853
2018-12-05 14:02:21 +05:30
Kovid Goyal
4cf6373203
Generate OpenGL bindings with updated glad
...
See #1179
2018-12-04 16:31:26 +05:30
Kovid Goyal
e0b3bb1830
Move URL parser enum into parser function
2018-12-04 06:59:03 +05:30
Kovid Goyal
47ec372c30
Fix hover detection of URLs not working when hovering over the first colon and slash characters in short URLs
...
Fixes #1201
2018-12-04 06:52:26 +05:30
Kovid Goyal
d5366a421f
...
2018-12-03 21:35:03 +05:30
Kovid Goyal
3d5977669e
Micro optimization
2018-12-03 20:04:58 +05:30
Kovid Goyal
36da668e6f
Forgot to fill bitmap offset data when rendering colored glyphs
2018-12-03 20:00:24 +05:30
Kovid Goyal
052913c656
Merge branch 'typo' of https://github.com/Luflosi/kitty
2018-12-03 15:38:18 +05:30
Luflosi
0ef055a2b2
Fix typo in docs
2018-12-03 10:58:23 +01:00
Kovid Goyal
a7bd6922e5
Follow xterm's behavior for the menu key
...
Fixes #597
Also generate the modified variants of the function keys.
2018-12-03 14:04:26 +05:30
Kovid Goyal
8d9ba4a772
Handle ctrl-c while paging help gracefully
2018-12-03 13:53:13 +05:30
Kovid Goyal
222beedc2a
Fix freetype based rendering of non-hinted fonts at small sizes
...
Now use the post hinting bitmap bearing values instead of the hinting
independent glyph metrics bearing values. Fixes #1173
2018-12-02 14:12:46 +05:30
Kovid Goyal
8ba8320189
Disable brew based build since harfbuzz is currently broken in brew
2018-12-02 14:08:35 +05:30
Kovid Goyal
3501a2a1da
...
2018-12-02 13:52:06 +05:30
Kovid Goyal
819ee94a70
Merge branch 'reset_osc' of https://github.com/martinetd/kitty
2018-11-30 13:52:42 +05:30
Kovid Goyal
7e7dbc5ecf
Merge branch 'history_crash' of https://github.com/martinetd/kitty
2018-11-30 13:45:27 +05:30
Dominique Martinet
3a6bc94d25
pager history: fix bufsize calculation
...
bufsize was bigger than the actual allocated memory
Fixes: b9e6557f72 ("Allow arbitrary sized lines in the secondary scrollback buffer")
2018-11-30 16:06:05 +09:00
Dominique Martinet
07a4cec616
reset terminfo: add an empty OSC sequence to rs1 string
...
In OSC/OTH mode, the parser accumulate bytes until it fills up or
encounters some end-of-osc sequence.
After entering in either of these mode by mistake, for example by
displaying random bytes (e.g. cat a binary) nothing would print anymore
but input would still work.
In that situation, being able to hit `reset` and recover a usable
terminal helps.
You can try with `echo -e '\xc2\x9e'` for PM
2018-11-30 15:51:38 +09:00
Kovid Goyal
60de840d69
Merge branch 'selection_wide_hilight' of https://github.com/martinetd/kitty
2018-11-30 09:27:05 +05:30
Kovid Goyal
928167c0b2
Merge branch 'x11_selection_timeout' of https://github.com/martinetd/kitty
...
Fixes #1042
2018-11-30 09:20:44 +05:30
Dominique Martinet
2aac220cdb
selection: hilight 2nd half of wide characters last in line
2018-11-30 11:50:26 +09:00
Dominique Martinet
d8a74e8a3c
glfw/x11_window/selection: timeout if no answer for two seconds
...
This prevents kitty to hang forever if a bad client does not give selection
2018-11-30 11:42:45 +09:00
Kovid Goyal
019e6efeda
Reduce overlap with text when rendering wavy underline at small font sizes
2018-11-27 07:19:30 +05:30
Kovid Goyal
a7a7216b30
Allow adding line wrap markers when piping screen contents
...
Also make some data such as scroll position, cursor position and screen
geometry available via an env var when piping. See #719
2018-11-26 13:30:03 +05:30
Kovid Goyal
ae8ca5272b
...
2018-11-25 11:51:40 +05:30
Kovid Goyal
06c1236cc6
Merge branch 'master' of https://github.com/bodqhrohro/kitty
2018-11-23 23:01:42 +05:30
bodqhrohro
4d3982c5cf
Fix memory leak on compose table creation
2018-11-23 19:04:09 +02:00
Kovid Goyal
a0ff625f61
When double or triple clicking ignore clicks if they are "far" from each other
...
Fixes #1093
2018-11-23 11:46:02 +05:30
Kovid Goyal
b44345d78e
Ignore failures to update the NSGL layer
...
Fixes #1168
2018-11-22 18:25:22 +05:30
Luflosi
96229becd1
Make final_color computation consistent across cases
2018-11-22 11:36:29 +01:00
Kovid Goyal
b269cab0b8
Fix unused function on macOS
2018-11-22 15:49:01 +05:30
Kovid Goyal
0b3c8210f3
Various Wayland DPI scaling fixes
...
Use the glfw window content scale api to get the DPI for windows.
Likely, more accurate than our logic to find the overlapping monitor
to get the DPI.
Also, after a DPI change event send a fake resize event to workaround
render surface not being properly updated.
Fixes #1143
2018-11-22 15:37:33 +05:30
Kovid Goyal
074614bc8e
Fix incorrect text-antialiasing when using very low background opacity
...
Fix #1005
2018-11-22 10:26:40 +05:30
Kovid Goyal
4ceb4cfc22
Fix a crash if the client program tries to restore more modes than it saves
...
Fixes #1166
2018-11-22 08:57:43 +05:30
Kovid Goyal
0bb08d8bdd
When parsing OSC 52 clipboard control codes, handle an empty control parameter
...
This is apparently used by tmux. See #782
2018-11-21 19:37:39 +05:30
Kovid Goyal
b9e6557f72
Allow arbitrary sized lines in the secondary scrollback buffer
2018-11-21 17:55:43 +05:30
Kovid Goyal
7ed268ea2f
Refactor some code into a style I like
2018-11-21 10:54:25 +05:30
Kovid Goyal
a91b3b9487
Revert addition of RGB to terminfo
...
See discussion 18fe2e8dfa
2018-11-21 10:33:55 +05:30
Kovid Goyal
cdf236d01b
Fix #1161
2018-11-21 10:12:05 +05:30
Kovid Goyal
f54efb7886
Merge branch 'asan-launcher.dSYM' of https://github.com/Luflosi/kitty
2018-11-20 22:37:56 +05:30
Luflosi
0ffee56170
Ignore asan-launcher.dSYM directory
2018-11-20 16:03:34 +01:00
Kovid Goyal
ab97646576
Have line_as_ansi indicate when the output is truncated
2018-11-20 11:13:49 +05:30
Kovid Goyal
33b62dcabc
Turn on the scrollback pager for all tests
2018-11-20 10:42:17 +05:30
Kovid Goyal
39e6e91d69
Port new coca drag'n drop code from upstream
2018-11-20 10:24:55 +05:30
Kovid Goyal
dedd80c6b5
Fix #1157
2018-11-20 08:51:45 +05:30
Kovid Goyal
df11da74e9
Fix #1156
2018-11-20 08:49:07 +05:30
Kovid Goyal
9991dd6ce4
Generate hash based .pyc files when building
...
Fixes #1155
2018-11-20 08:42:08 +05:30
Kovid Goyal
e777364f91
Add secondary pager history when requesting history for pipe or @ commands
2018-11-19 19:57:15 +05:30
Kovid Goyal
a32ed5ae5f
Avoid creating lots of newline string objects in pagerhist
2018-11-19 12:11:04 +05:30
Kovid Goyal
db1e48848d
More robust no modifier check for CSI parsing
2018-11-19 09:53:01 +05:30
Kovid Goyal
c02fa79591
Fix #1153
2018-11-19 09:35:46 +05:30
Kovid Goyal
6f0a59c696
If a permission error occurs creating the kitty config directory use a temp dir as the config directory. Fixes #1152
2018-11-18 20:02:55 +05:30
Kovid Goyal
bc715d4348
Merge branch 'fix-set-background-opacity' of https://github.com/kdarkhan/kitty
2018-11-17 16:01:33 +05:30
Darkhan Kubigenov
55e4761302
Fix set_background_opacity with increment/decrement
2018-11-17 15:21:42 +06:00
Kovid Goyal
18fe2e8dfa
Add the new RGB boolean capability to terminfo to indicate we support truecolor
...
See https://gist.github.com/XVilka/8346728#detection
2018-11-15 13:59:15 +05:30
Kovid Goyal
18a07a78b5
Move the os window clearing into render_os_window
...
Makes more sense to clear the buffer immediately before rendering rather
than immediately after swapping.
2018-11-14 12:11:26 +05:30
Kovid Goyal
aa7024b264
Bump required version of wayland protocols
2018-11-14 09:16:14 +05:30
Kovid Goyal
c67ab2a6ff
...
2018-11-14 09:01:51 +05:30
Kovid Goyal
d15eab31da
Merge branch 'master' of https://github.com/tarmack/kitty
2018-11-14 09:01:22 +05:30
Tarmack
a6900443d5
Wayland primary selection migrated to unstable protocol
...
This change is actually backwards compatible with the GTK implementation before.
2018-11-13 20:58:02 +01:00
Kovid Goyal
235bcacc7b
Make the buffer clearing more robust
...
Now happens immediately after the buffer is swapped. Fixes #1104
2018-11-13 20:59:39 +05:30
Kovid Goyal
3e26f96744
Add some common synonyms for unicode word searching
...
Fixes #1133
2018-11-13 15:46:33 +05:30
Kovid Goyal
718111582a
Fix #1136
2018-11-12 09:15:41 +05:30
Kovid Goyal
f5cdbe53ea
Merge branch 'patch-3' of https://github.com/maximbaz/kitty
2018-11-11 21:38:39 +05:30
Maxim Baz
bf761a7189
Fix typo in changelog
2018-11-11 13:04:53 +01:00
Kovid Goyal
05ee01b4dd
Merge branch 'scroll-wayland' of https://github.com/maximbaz/kitty
2018-11-11 12:03:39 +05:30
Kovid Goyal
53166d659e
Consolidate options for hiding window decorations
...
Merged into a single option, hide_window_decorations. Old
aliases still work if set to yes.
Fixes #1127
2018-11-11 11:56:44 +05:30
Kovid Goyal
34aea3bca1
Merge branch 'hints-add-trailing-space' of https://github.com/maximbaz/kitty
2018-11-11 11:03:11 +05:30
Maxim Baz
f26519863f
Don't include --progam in the condition
2018-11-10 13:24:39 +01:00
Maxim Baz
a57e96500a
hints: optionally add trailing space
2018-11-10 13:19:40 +01:00
Maxim Baz
5e27c21856
Implement touch_scroll_multiplier
2018-11-10 12:33:47 +01:00
Kovid Goyal
4601cd13dc
icat kitten: Implement reading image data from STDIN, if STDIN is not connected to a terminal
...
Fixes #1130
2018-11-10 12:31:09 +05:30
Kovid Goyal
ad92541ff3
Merge branch 'microoptimization' of https://github.com/Luflosi/kitty
2018-11-10 10:50:03 +05:30
Maxim Baz
3f77a2044e
Make high resolution scrolling more responsive and configurable
2018-11-09 13:22:03 +01:00
Luflosi
75e57a48e0
Microoptimisation
2018-11-09 10:19:42 +01:00
Kovid Goyal
160fbd2071
Add a terminfo entry for full keyboard mode
...
Fixes #1122
2018-11-05 08:11:35 +05:30
Kovid Goyal
f5743f4610
Forgot to multiply xscale
2018-11-05 07:56:33 +05:30
Kovid Goyal
82f9aecacb
macOS: Fix touch scrolling sensitivity low on retina screens
...
Fixes #1112
2018-11-04 12:07:55 +05:30
Kovid Goyal
be6556c884
X11: Fix missing check for NET_WM_STATE
2018-11-04 10:20:38 +05:30
Kovid Goyal
f941ffb1fe
Merge branch 'document-ctrl-l' of https://github.com/maximbaz/kitty
2018-11-04 10:04:39 +05:30
Maxim Baz
cbdba0b6aa
Document how to achieve alternative behavior for Ctrl+L, ref #1113
2018-11-03 20:29:40 +01:00
Kovid Goyal
ce04f102a7
Technically, scroll_until_empty is scroll_until_cursor
2018-11-03 14:23:50 +05:30
Kovid Goyal
fc3bd2d15f
Add an action to the `clear_terminal` function to scroll the screen contents into the scrollback buffer
...
Now if you want to map a key combination that will both scroll the
current screen contents into the scrollback buffer and clear the screen,
you can do something like:
map ctrl+l combine : clear_terminal scroll active : send_text normal,application \x0c
Fixes #1113
2018-11-03 14:18:09 +05:30
Kovid Goyal
a958cabf01
Fix :kbd:ctrl+shift+special key not working in normal and application keyboard modes
...
Fixes #1114
2018-11-03 09:03:50 +05:30
Kovid Goyal
d0a2eab79e
...
2018-11-02 12:47:13 +05:30
Kovid Goyal
b835afefee
Merge branch 'fix-grid-neighbors' of https://github.com/strix/kitty
2018-11-02 10:32:27 +05:30
Brance Boren
d0a7be90f9
Fixed call to Tall.neighbors_for_window
2018-11-01 14:55:13 -06:00
Kovid Goyal
1f3550b84c
...
2018-11-01 07:55:29 +05:30
Kovid Goyal
939212e1d4
Update changelog
2018-10-31 16:11:45 +05:30
Kovid Goyal
7db6318806
Only warn about failure to primary select once
2018-10-31 09:09:46 +05:30
Kovid Goyal
e5d9182606
Since we now have primary selections on wayland, remove it from the click_on_select option's description
2018-10-31 09:04:55 +05:30
Tarmack
d519553581
Implement primary selection for Wayland
2018-10-31 09:03:22 +05:30
Kovid Goyal
e99b1be023
macOS: Ensure stored mouse position is correct when switching to a kitty window
...
Fixes #1103
2018-10-31 08:38:50 +05:30
Kovid Goyal
e460866ebc
Make the bounds check cleaner
2018-10-30 15:02:48 +05:30
Kovid Goyal
23aea68e32
Fix second cell of emoji created using variation selectors not having the same attributes as the first cell
...
Fix #1109
2018-10-30 15:00:47 +05:30
Kovid Goyal
65c2cbe93a
Merge branch 'adjust_column_width_frac' of https://github.com/jjrams/kitty
2018-10-30 11:49:58 +05:30
Kovid Goyal
ee31ba0c76
Merge branch 'multi-pua' of https://github.com/blueyed/kitty
2018-10-30 11:49:05 +05:30
Kovid Goyal
3ed9d9a069
Merge branch 'system_double_click_interval' of https://github.com/Luflosi/kitty
2018-10-28 11:18:43 +05:30
jjrams
721e51c117
Fix typo when using adjust_column_width_frac
2018-10-27 12:24:37 -07:00
Luflosi
09daaf1ec3
Change click_interval default to -1.0 and add help text for negative click_interval values
2018-10-27 17:55:16 +02:00
Kovid Goyal
b2d62f10d2
Dont send frame requests is sync_to_monitor is disabled
2018-10-27 14:04:14 +05:30
Kovid Goyal
0d542b2f60
...
2018-10-27 13:32:16 +05:30
Kovid Goyal
04fd058e0f
Wayland: Improve FPS for rendering with vsync
...
Now a new frame event is requested after every render. This means
that effective FPS should be close to the refresh rate of the output
source.
2018-10-27 12:33:48 +05:30
Kovid Goyal
31a0a9427e
...
2018-10-27 11:35:25 +05:30
Kovid Goyal
04f10ba570
Fix leak of Wayland callback structure when doing a copy
2018-10-27 11:34:54 +05:30
Kovid Goyal
34b7b2e4e8
Move to using upstream glfw fix for mojave initial render issue
2018-10-26 22:29:05 +05:30
Luflosi
09183772d3
Respect the default system double-click interval
2018-10-26 11:57:33 +02:00
Kovid Goyal
3e4eca5816
Wayland: Fix cursor being reset continuously
...
Should only do that if the cursor is actually supposed to be animated.
2018-10-26 11:23:34 +05:30
Kovid Goyal
30c6c4697f
Merge branch 'x11_enter' of https://github.com/martinetd/kitty
2018-10-26 10:26:10 +05:30
Kovid Goyal
b650275d45
Wayland: Fix copying from hidden kitty windows hanging
...
Fix #1051
2018-10-26 10:25:08 +05:30
Kovid Goyal
174bd5c57f
Commit the wl_surface to ensure that we receive the frame event
2018-10-26 10:12:54 +05:30
Dominique Martinet
ec51a219a7
glfw x11: update cursor position on enter event
...
kitty would have an incorrect position when clicking after changing window
without moving (e.g. change workspace, create new kitty etc)
For new kitty window, initial position would be 0 and selection paste would
not work because of this
2018-10-26 13:19:12 +09:00
Kovid Goyal
cca2fb967c
Avoid malloc for frame callbacks
2018-10-26 08:49:17 +05:30
Kovid Goyal
5b547d9b06
Initial attempt at supporting Wayland frame events
...
Does not actually work because the wayland frame callback is not called
at all, fo rsome reason I cannot determine.
2018-10-26 07:42:57 +05:30
Luflosi
facb2df3f6
Merge branch 'master' of github:kovidgoyal/kitty into system_double_click_interval
2018-10-25 13:18:43 +02:00
Kovid Goyal
8395076da5
Cocoa: Cleanup
...
From upstream
2018-10-25 10:32:17 +05:30
Kovid Goyal
e113e0cba7
Allow hiding the tab bar completely, by setting :opt:tab_bar_style to `hidden`.
...
Fixes #1014
2018-10-25 10:05:43 +05:30
Kovid Goyal
407d19c2dc
Remove code to import/export from glfw
...
Since kitty now uses its own private fork, there is no point.
2018-10-24 14:18:01 +05:30
Luflosi
382367506a
[WIP] Respect the default system click_interval
2018-10-24 10:44:24 +02:00
Kovid Goyal
bd5a85a4e7
Fix compilation on ancient linux distros
2018-10-24 08:40:25 +05:30
Kovid Goyal
631f97eb26
Linux: Fix a crash when using the GNU Unifont as a fallback font
...
Fixes #1087
2018-10-24 08:20:37 +05:30
Kovid Goyal
0c0ce4844c
Dont use deprecated FT_Bitmap_New
2018-10-24 07:07:57 +05:30
Kovid Goyal
6bf290149e
Allow specifying monospace when calling fc_match
2018-10-24 06:45:06 +05:30
Kovid Goyal
60fa812b60
...
2018-10-24 06:36:30 +05:30
Kovid Goyal
61f3a39aa0
macOS: Fix incorrect text sizes calaculated when using an external display that is set to mirror the main display
...
Fix #1056
2018-10-24 06:28:58 +05:30
Kovid Goyal
a6949df727
Linux: Fix match rules used as aliases in Fontconfig configuration not being respected
...
Fixes #1085
2018-10-23 12:22:18 +05:30
Kovid Goyal
d839a31d7f
oops forgot to convert poll timeout to milliseconds
2018-10-23 11:26:37 +05:30
Kovid Goyal
1de510f46f
poll at zero timeout as well
2018-10-23 11:09:38 +05:30
Kovid Goyal
0359bbe4be
...
2018-10-23 11:08:13 +05:30
Kovid Goyal
40b355e593
macOS: Fix rendering frames-per-second very low when processing large amounts of input in small chunks
...
We do this by debouncing wakeup events sent to the main loop by the I/O
thread. Use in the input_delay time to debounce. Apparently processing
wakeup events is very expensive in Cocoa.
Fixes #1082
2018-10-23 10:27:56 +05:30
Kovid Goyal
adf9c4fc5f
Remove unused var
2018-10-23 09:05:56 +05:30
Kovid Goyal
ae9d049011
Better fix for initial window render failure on mojave
2018-10-23 09:04:12 +05:30
Kovid Goyal
d24977d164
Disabe brew python upgrade since it is failing for some reason on Travis
2018-10-23 08:35:55 +05:30
Kovid Goyal
3035d64127
Forgot to apply sendEvent micro-optimization to a couple more places
2018-10-23 08:00:20 +05:30
Kovid Goyal
70c9c058e2
Micro-optimization of cocoa event polling
2018-10-21 20:56:27 +05:30
Kovid Goyal
1d9f73adec
...
2018-10-21 20:30:31 +05:30
Kovid Goyal
fca95af49b
macOS: Fix IME input for east asian languages
...
Fix #910
2018-10-21 20:27:03 +05:30
Kovid Goyal
62fe392041
Handle overlay windows when recording window history
2018-10-21 11:56:23 +05:30
Kovid Goyal
097d11819b
Add a new `nth_window action that can be used to go to the nth window and also previously active windows, using negative numbers. Similarly, goto_tab` now accepts negative numbers to go to previous windows
...
Fix #1040
2018-10-21 10:59:06 +05:30
Kovid Goyal
691286f376
Add a minimal example for a python script to display PNG images
...
See #1080
2018-10-21 07:48:31 +05:30
Kovid Goyal
c910f6c832
When using --debug-keyboard also output matched action for keypresses, if any. Fixes #1021
2018-10-20 14:08:33 +05:30
Kovid Goyal
65f9ac32ef
Fix :opt:mouse_hide_wait only taking effect after an event such as cursor blink or key press
...
Fixes #1073
2018-10-20 14:01:55 +05:30
Kovid Goyal
27f2a2e3d5
Merge branch 'filter_tic_output' of https://github.com/Luflosi/kitty
2018-10-18 18:43:57 +05:30
Luflosi
88aab20376
Loop through lines of tic output to correctly handle multiple lines
2018-10-18 12:25:19 +02:00
Luflosi
a045ac3bd7
Decode tic stderr using utf-8
2018-10-18 12:15:37 +02:00
Kovid Goyal
722b605407
Merge branch 'fix_typo_in_scrollback_lines_docs' of https://github.com/Luflosi/kitty
2018-10-18 10:47:22 +05:30
Kovid Goyal
7f53745077
Fix #1062
2018-10-18 08:30:47 +05:30
Kovid Goyal
7f902c4c03
Fix expansion of env vars not working in the :opt:env directive
...
Fixes #1075
2018-10-18 08:12:10 +05:30
Luflosi
1205c2055f
Fix typo in scrollback_lines docs
2018-10-16 14:41:11 +02:00
Luflosi
f08f0f9dbd
Filter tic output to remove "older tic versions may treat the description field as an alias"
2018-10-15 17:17:12 +02:00
Kovid Goyal
093c05e16a
When running kitty @ ls also output the current layout for each tab
2018-10-12 18:19:50 +05:30
Kovid Goyal
787100a4dc
Modify the kittens sub-system to allow creating custom kittens without any user interface.
...
See #870
2018-10-12 18:09:37 +05:30
Kovid Goyal
c493583f25
macOS: Fix drag and drop of files not working on mojave
...
Fixes #1058
2018-10-11 18:36:24 +05:30
Kovid Goyal
b4afbe47b3
wayland: add support for XCURSOR_THEME and XCURSOR_SIZE
...
These can be set by the compositor or the user to configure the
xcursor theme and size.
2018-10-11 13:39:44 +05:30
Kovid Goyal
6c4aeeeadd
...
2018-10-10 09:39:53 +05:30
Kovid Goyal
5b01519367
Merge branch 'fix-wl-key-repeat' of https://github.com/tarmack/kitty
2018-10-09 18:22:45 +05:30
Tarmack
c494759606
Divide a second over the key repeat Hz value for the timer value
2018-10-09 14:30:36 +02:00
Kovid Goyal
2102c48b87
Mir: Remove this experimental backend
...
As of the release of Mir 1.0, libmirclient has been deprecated[1] and
its developers recommend clients using it to switch to Wayland. This
patch removes support for libmirclient and instruct users to use the
experimental Wayland backend instead.
[1] https://discourse.ubuntu.com/t/mir-news-28th-september-2018/8184
2018-10-06 07:53:41 +05:30
Kovid Goyal
c498f4e8ab
Linux: Include the null byte in joystick path
...
This potential bug was found thanks to gcc 8’s -Wstringop-truncation
warning.
2018-10-06 07:49:59 +05:30
Kovid Goyal
05a0166ebd
Forgot some mojave substitutions
2018-10-03 22:03:49 +05:30
Kovid Goyal
0484365de6
More fixes for compiling on mojave
2018-10-03 21:50:39 +05:30
Kovid Goyal
cbab3b56de
Fixes for compilation on mojave, needs testing
2018-10-03 20:51:25 +05:30
Kovid Goyal
715f7985c7
Fix the `*_with_cwd` actions using the cwd of the overlay window rather than the underlying window's cwd
...
Fix #1045
2018-10-03 19:26:01 +05:30
Kovid Goyal
2637018b53
Handle broken pipe errors during test compile
2018-10-03 12:46:08 +05:30
Kovid Goyal
1fa66ca45d
Wayland: Rename handlers for more unicity
2018-10-03 12:30:48 +05:30
Kovid Goyal
13b10f691d
Wayland: Add support for xdg-decoration
...
This allows compositors which prefer to draw the decorations around
clients to do so, rather than letting GLFW draw its own decorations.
The appearance is thus entirely subject to the compositor used, but
should generally be better than the current solid colour decorations we
have, which we continue to use when the compositor doesn’t support this
protocol or tells us to draw the decorations ourselves.
2018-10-03 12:27:51 +05:30
Kovid Goyal
3fe7d91713
Add some needed includes
2018-10-03 11:06:01 +05:30
Kovid Goyal
98864091ff
Move memfd existence test to glfw.py
2018-10-03 11:02:51 +05:30
Kovid Goyal
7750a461aa
Fix compilation on systems that dont have the memfd_create syscall
2018-10-03 10:56:47 +05:30
Kovid Goyal
ac98b85157
Wayland: Use memfd_create() and seals if available
...
This allows the compositor to avoid having to setup and teardown a
SIGBUS signal handler whenever it needs to read from this surface, as it
knows we won’t be able to shrink the file and so doesn’t have to protect
against that.
Only enabled on Linux, since only Linux has memfd_create()
2018-10-03 09:47:04 +05:30
Kovid Goyal
21f6c6a5a8
Wayland: Check for buffer creation failure
...
This prevents unusable decoration objects from being created, and
invalid cursors from being returned to the user.
2018-10-02 11:30:13 +05:30
Kovid Goyal
b8d1491b99
Merge branch 'pipe-scrollback-secondary-screen' of https://github.com/maximbaz/kitty
2018-10-01 06:47:34 +05:30
Maxim Baz
d9c168d824
Account for secondary screen not having history buffer
2018-09-30 16:45:24 +02:00
Maxim Baz
ee7f4ee1a4
Don't guard against alternate_screen in as_text
...
Complementary to 15f534a8f9
2018-09-30 14:13:17 +02:00
Kovid Goyal
ee3ce3c7d8
Move cell_as_sgr to line.c
2018-09-30 08:58:33 +05:30
Kovid Goyal
a57f38dbd5
Merge branch 'pagerhist' of https://github.com/martinetd/kitty
2018-09-30 08:41:52 +05:30
Daniel Hahler
3c4cb3c35b
get_glyph_width for core text?!
2018-09-29 18:56:54 +02:00
Daniel Hahler
12cfe6d1d1
render_line: use cells based on bitmap width
...
[ci skip]
2018-09-29 18:38:53 +02:00
Daniel Hahler
c64e8fc434
MAX_NUM_EXTRA_GLYPHS_PUA=4
2018-09-29 16:49:40 +02:00
Kovid Goyal
15f534a8f9
Add access to secondary screen scrollback via the pipe function
2018-09-29 19:59:01 +05:30
Daniel Hahler
8e09e809aa
fixup! render_glyphs_in_cells: skip centering glyph for PUA
2018-09-29 16:23:16 +02:00
Daniel Hahler
fec5a80b89
Init bm
...
Not sure why this became necessary though?!
Fixes:
Linking kitty/fast_data_types ...
kitty/freetype.c: In function ‘render_glyphs_in_cells’:
kitty/freetype.c:514:82: warning: ‘bm.right_edge’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (num_cells > 1 && right_edge < canvas_width && (delta = (canvas_width - right_edge) / 2) && delta > 1) {
^
kitty/freetype.c:490:21: note: ‘bm.right_edge’ was declared here
ProcessedBitmap bm;
^
2018-09-29 16:20:10 +02:00
Daniel Hahler
1d50a188c4
render_glyphs_in_cells: skip centering glyph for PUA
2018-09-29 16:19:53 +02:00
Kovid Goyal
b0d34b136f
version 0.12.3
2018-09-29 09:15:40 +05:30
Kovid Goyal
7eb234c250
Move kitty.app build instructions from the FAQ to the build page
2018-09-29 08:47:30 +05:30
Daniel Hahler
d52434c0aa
fixup! Handle multiple spaces after PUA glyphs
...
[ci skip]
2018-09-28 23:01:35 +02:00
Daniel Hahler
efc0b830cf
Handle multiple spaces after PUA glyphs
2018-09-28 15:34:14 +02:00
Kovid Goyal
4a8c4c4601
Unicode input: Fix an error when searching for the string 'fir'
...
Fixes #1035
2018-09-28 19:01:20 +05:30
Kovid Goyal
e498cedf56
remove unused import
2018-09-27 08:52:40 +05:30
Kovid Goyal
6c8a52875e
Fix #1029
2018-09-27 08:40:16 +05:30
Kovid Goyal
c1397fd366
Merge branch 'unicode_input-reverse' of https://github.com/blueyed/kitty
2018-09-27 08:35:25 +05:30
Daniel Hahler
3323ddcdef
unicode_input: use reverse mode for menu selection
2018-09-26 22:50:22 +02:00
Kovid Goyal
1be394cda7
Update CHANGELOG
2018-09-26 19:54:42 +05:30
Kovid Goyal
f292092ffc
...
2018-09-26 19:47:53 +05:30
Kovid Goyal
b82e74f99a
Fix for kitty window not being rendered until moved/resized on macOS Mojave
...
Fixes #887
2018-09-26 19:43:04 +05:30
Kovid Goyal
9b293ad66a
Add some more explanation of why TERM is important
2018-09-24 09:28:21 +05:30
Kovid Goyal
3a4420f2d3
version 0.12.2
2018-09-24 05:26:11 +05:30
Kovid Goyal
1eb8d6e845
Merge branch 'doc-fix' of https://github.com/nicoulaj/kitty
2018-09-23 08:49:15 +05:30
Julien Nicoulaud
e2f97dc44a
Fix broken links
2018-09-22 20:22:15 +02:00
Kovid Goyal
ea9af96d2b
Fix using focus_follows_mouse causing text selection with the mouse to malfunction when using multiple kitty windows
...
Fixes #1002
2018-09-22 18:15:03 +05:30
Kovid Goyal
e4033d997c
Merge branch 'prev_' of https://github.com/Luflosi/kitty
2018-09-22 17:28:53 +05:30
Luflosi
bc38357193
Add prev_tab and prev_window as aliases for previous_tab and previous_window
2018-09-22 13:24:51 +02:00
Dominique Martinet
618b486fd5
pager history buffer: remove dead code looking for next new line
2018-09-22 19:10:37 +09:00
Dominique Martinet
1986403e42
Add scrollback benchmark
2018-09-22 19:10:37 +09:00
Dominique Martinet
cf51f80b79
cell_as_sgr: avoid unnecessary formatting functions
2018-09-22 19:10:37 +09:00
Dominique Martinet
2fe17aa889
cursor_as_sgr now works on GPUCells becomes cell_as_sgr
2018-09-22 19:10:09 +09:00
Dominique Martinet
f76c8ad30b
pager history buffer: alloc buffer progressively
...
Realloc buffer 1MB at a time until the configured size is reached
2018-09-22 19:10:09 +09:00
Dominique Martinet
c421d3bb59
line_as_ansi: don't reset SGR at start of line
...
less does not carry the mode over from the previous line anyway, let's
save a few bytes for every line
2018-09-22 19:10:09 +09:00
Dominique Martinet
3d862da2be
pager history buffer: implement rewrap
...
rewarp the buffer the first time it is displayed after the window
changed
2018-09-22 19:10:09 +09:00
Dominique Martinet
10b15caad9
tests: add options param to create_screen()
...
Always apply defaults when creating a screen (the C-side global state
default will not have the intended values without this), and provide a
way to override default values with a new optional parameter
2018-09-22 18:05:13 +09:00
Dominique Martinet
e08238d5a0
pager history buffer: add config option, keep buffer on resize
2018-09-22 18:02:11 +09:00
Dominique Martinet
d0104660c8
Implement pager scrollback history buffer
...
For now, use big fixed-size buffer that is lost on resize
2018-09-22 18:02:11 +09:00
Dominique Martinet
a4c2a9ef0d
line_as_ansi: only compute sgr if needed
2018-09-22 18:02:11 +09:00
Dominique Martinet
ee39d7ba14
line_as_ansi: remove dead undefs
...
CHECK_BOOL, CHECK_COLOR and WRITE_COLOR have been removed in
commit 27cd303a05 ("Centralize code to convert to SGR")
2018-09-22 18:02:11 +09:00
Kovid Goyal
62cb035afe
Remote control: Fix the `focus_window` command not focusing the top-level OS window of the specified kitty window
...
Fixes #1003
2018-09-22 12:17:35 +05:30
Kovid Goyal
7a8bc6b5d2
Fix #1001
2018-09-21 12:26:44 +05:30
Kovid Goyal
0d86ac23bb
Merge branch 'ime' of https://github.com/martinetd/kitty
2018-09-21 09:28:56 +05:30
Dominique Martinet
897fd9486e
glfw/ibus input: use text from ime event instead of global
...
When a key is pressed, text is generated from xkb and attached to the
global key_event variable.
If another key is pressed before ibus replies, this text in global
variable would be overwritten before the processed reply comes in and
the wrong character would be input, as shown in logs with
--debug-keyboard:
Press scancode: 0x19 clean_sym: w composed_sym: w text: w mods: numlock glfw_key: 87 (W) xkb_key: 119 (w)
↳ to IBUS: keycode: 0x11 keysym: 0x77 (w) mods: numlock
Press scancode: 0x20 clean_sym: o composed_sym: o text: o mods: numlock glfw_key: 79 (O) xkb_key: 111 (o)
↳ to IBUS: keycode: 0x18 keysym: 0x6f (o) mods: numlockIBUS processed scancode: 0x19 release: 0 handled: 0
From IBUS: scancode: 0x19 name: w is_release: 0
↳ to application: glfw_keycode: 0x57 (W) keysym: 0x77 (w) action: PRESS mods: numlock text: o
on_key_input: glfw key: 87 native_code: 0x77 action: PRESS mods: 0x0 text: 'o' state: 0 sent text to child
IBUS processed scancode: 0x20 release: 0 handled: 0
From IBUS: scancode: 0x20 name: o is_release: 0
↳ to application: glfw_keycode: 0x4f (O) keysym: 0x6f (o) action: PRESS mods: numlock text: o
on_key_input: glfw key: 79 native_code: 0x6f action: PRESS mods: 0x0 text: 'o' state: 0 sent text to child
Since the whole event is memcpy'd we can just use the text from the
event attached to the reply instead.
2018-09-21 07:34:01 +09:00
Kovid Goyal
39d3d093c4
...
2018-09-20 09:10:57 +05:30
Kovid Goyal
3f0b52bef4
Workaround for broken editors like nano that cannot handle newlines in pasted text
...
Fixes #994
2018-09-20 09:08:29 +05:30
Kovid Goyal
4a04f27fde
Fix #991
2018-09-19 19:58:23 +05:30
Kovid Goyal
5fb02c0439
When mapping the new_tab action allow specifying that the tab should open next to the current tab instead of at the end of the tabs list
...
Fixes #979
2018-09-19 19:43:41 +05:30
Kovid Goyal
edfb4ef3f1
Merge branch 'master' of https://github.com/esell/kitty
2018-09-19 18:13:20 +05:30
Kovid Goyal
f037923b00
Document the basic process for creating custom kittens. Fixes #975
2018-09-19 12:55:50 +05:30
Kovid Goyal
424aafb514
Merge branch 'fix_sgr_bold' of https://github.com/martinetd/kitty
2018-09-19 08:07:00 +05:30
Dominique Martinet
1b64167a3e
cursor_as_sgr: fix bold/dim
...
The old code would print "\e[22m" if either bold or dim was unset, which
is the "normal, neither bold nor dim" control sequence.
Print that only if neither are set, and instead print "1" and "2" (bold,
dim) values individually.
2018-09-19 07:04:01 +09:00
esell
a9a86e4604
Add option to enable custom cursor on macos
2018-09-18 10:56:26 -06:00
Kovid Goyal
1dc7c23b2f
Merge branch 'bash_completion' of https://github.com/martinetd/kitty
2018-09-18 06:19:24 +05:30
Dominique Martinet
5bdcfbc2ce
bash completion: make complete helper start with _
...
It is standard to start complete helpers with underscore to avoid
clobbering the function namespace ; like other shells do.
It is ironic for a completion helper to make completion less agreable...
2018-09-18 09:10:47 +09:00
Kovid Goyal
74e9bf4f31
Another sentence worth of documentation
2018-09-17 06:42:20 +05:30
Kovid Goyal
0652529839
Remove dead code
2018-09-12 21:44:59 +05:30
Kovid Goyal
772d6597a9
macOS: Add an option :opt:macos_traditional_fullscreen to make full-screening of kitty windows much faster, but less pretty.
...
See #911
2018-09-12 21:27:49 +05:30
Kovid Goyal
4e99194022
Document platform fullscreen shortcut on macOS
2018-09-12 20:43:22 +05:30
Kovid Goyal
f0ff2f4ea7
Fix a bug causing incorrect line ordering when viewing the scrollback buffer if the scrollback buffer is full
...
Fixes #960
2018-09-12 20:31:09 +05:30
Kovid Goyal
d583c533c2
Linux: Fix window icon not set on X11 for the first OS window
...
Fix #961
2018-09-12 18:29:06 +05:30
Kovid Goyal
ec1f219850
macOS: Make full screening of kitty much faster by using the "traditional full screen" mode of cocoa, similar to iTerm and MacVim
...
Hopefully workaround a bug in glfw that causes crashes when unplugging
monitors with full screen windows.
Fixes #911
Fixes #898
2018-09-12 15:45:08 +05:30
Kovid Goyal
21d586cc86
macOS: Fix resizing semi-transparent windows causing the windows to be invisible during the resize
...
Fixes #941
Workaround for https://github.com/glfw/glfw/issues/1251
2018-09-12 10:44:24 +05:30
Kovid Goyal
8f7139d48f
Also respond to a terminfo query for "name" in addition to "TN"
2018-09-11 21:41:50 +05:30
Kovid Goyal
cfb6dae04d
...
2018-09-11 17:51:06 +05:30
Kovid Goyal
bceac3ee0b
...
2018-09-11 09:58:26 +05:30
Kovid Goyal
38d6edb0ca
Merge branch 'macos-thicken-font' of https://github.com/tbodt/kitty
2018-09-11 09:57:28 +05:30
Kovid Goyal
1b41a3bcee
...
2018-09-11 08:26:31 +05:30
Kovid Goyal
c54f934f6e
Merge branch 'patch-1' of https://github.com/tanrax/kitty
2018-09-11 08:25:22 +05:30
Theodore Dubois
94052bb712
Add option to increase font thickness on macOS
2018-09-10 19:30:29 -07:00
Andros Fenollosa
7eb1dcc7ee
Fixbug Gnome cache
2018-09-10 18:44:34 +02:00
Andros Fenollosa
626fbe827e
Add local icon
2018-09-10 18:41:07 +02:00
Kovid Goyal
28c154ecf0
typo
2018-09-10 21:58:15 +05:30
Kovid Goyal
8176f661ea
macOS: Fix small leak in glyph rendering code
2018-09-10 21:41:26 +05:30
Kovid Goyal
0195e7f841
Wayland: Add support for animated cursors
2018-09-10 11:54:22 +05:30
Kovid Goyal
141b8a1481
Update glfw from upstream
2018-09-10 09:51:06 +05:30
Kovid Goyal
be3ab90cff
Add a reference to piping to the index page
2018-09-10 08:19:14 +05:30
Kovid Goyal
9782f16635
Support os_window as a destination for the pipe function
2018-09-10 08:10:50 +05:30
Kovid Goyal
6930edfd8a
...
2018-09-10 08:08:16 +05:30
Kovid Goyal
6b1bec6550
Add a FAQ entry about global hotkey access to kitty
2018-09-10 07:57:33 +05:30
Andros Fenollosa
dac0304815
Update binary.rst
2018-09-09 20:08:12 +02:00
Andros Fenollosa
cfcf81b5fb
Update binary.rst
2018-09-09 20:06:56 +02:00
Kovid Goyal
f072a02215
...
2018-09-09 21:08:11 +05:30
Kovid Goyal
5f6e21da9b
Fix kitty @set-colors not working for tab backgrounds when using the fade tabbar style
...
Fixes #937
2018-09-09 19:41:32 +05:30
Kovid Goyal
b9b38a4ec1
A new pipe function that can be used to pipe the contents of the screen and scrollback buffer to any desired program running in a new window, tab or overlay window.
2018-09-09 18:29:59 +05:30
Kovid Goyal
e5a7ba4f22
Allow viewing the current contents of the alternate screen in a new window.
...
Fixes #933
2018-09-09 15:32:05 +05:30
Kovid Goyal
1dcf3f2afb
...
2018-09-09 14:32:07 +05:30
Kovid Goyal
2ec84969dd
Fix drag-scrolling not working when the mouse leaves the window confines
...
Fixes #917
2018-09-09 14:30:32 +05:30
Kovid Goyal
a08b945124
Forgot to revert test
2018-09-09 14:02:46 +05:30
Kovid Goyal
16f712fbaa
Revert the wide-character backspace patch
...
Fixes #875
2018-09-09 13:51:15 +05:30
Kovid Goyal
1f63ff1d41
Have the kitty --title flag apply to all windows created using kitty --session
...
Fixes #921
2018-09-09 10:49:20 +05:30
Kovid Goyal
49d8f4689f
...
2018-09-09 10:24:01 +05:30
Kovid Goyal
e1f993938a
Add a new kitty --start-as command line flag to start kitty fullscreen/maximized/minimized.
...
This obsoletes the --start-in-fullscreen flag introduced in the previous release
which has been removed since it has only existed for a few days.
Fixes #935
2018-09-09 10:23:48 +05:30
Kovid Goyal
ab65b9b2fb
Do not convert bitmaps when loading a glyph to access its metrics
2018-09-09 09:46:19 +05:30
Kovid Goyal
f7a621f89f
Use bitmap pitch to iterate over pixels
2018-09-09 09:42:51 +05:30
Kovid Goyal
b808a05e5e
Clean up monochrome bitmap support code
2018-09-09 08:33:32 +05:30
Kovid Goyal
72c37c519d
...
2018-09-09 08:23:59 +05:30
Kovid Goyal
af4b072b29
Merge branch 'master' of https://github.com/isaz/kitty
2018-09-09 08:20:32 +05:30
ismed
739ed906f0
Use the old FT_Bitmap_New for backward compatibility
2018-09-08 21:07:38 +01:00
ismed
9fd462077a
Add support for embedded bitmap glyphs
2018-09-08 20:22:48 +01:00
Kovid Goyal
cb3671343e
Implement directional movement of windows
2018-09-08 23:51:09 +05:30
Kovid Goyal
b18b705632
Fix overlay window handling when witching to neighboring windows
2018-09-08 23:31:16 +05:30
Kovid Goyal
9963e78636
Linux: Ensure that the python embedded in the kitty binary build always uses UTF-8 mode
...
Fixes #924
2018-09-08 23:03:36 +05:30
Kovid Goyal
e39635ea16
Add a new `neighboring_window` function to switch to neighboring windows in the current layout, similar to window movement in vim
...
Fixes #916
2018-09-08 08:59:11 +05:30
Kovid Goyal
9329b2c202
Allow using "all" as "*" for enabled_layouts
2018-09-08 08:22:37 +05:30
Kovid Goyal
791f70e5a2
API to get neighbors from the current layout
2018-09-08 08:09:35 +05:30
Kovid Goyal
8272c4a429
Fix #929
2018-09-08 06:28:30 +05:30
Kovid Goyal
f0357b061e
Add a new `last_used_layout` function that can be mapped to a shortcut to switch to the previously used window layout
...
Fixes #870
2018-09-08 05:56:02 +05:30
Kovid Goyal
7438e0e997
version 0.12.1
2018-09-08 05:22:02 +05:30
Kovid Goyal
cca672e536
typo
2018-09-07 16:24:29 +05:30
Kovid Goyal
0fa12a687d
Linux: Turn off IME unless the GLFW_IM_MODULE=ibus env var is set
2018-09-07 16:07:01 +05:30
Kovid Goyal
d2b900c77f
Changelog cleanups
2018-09-07 15:38:04 +05:30
Kovid Goyal
21242d9144
...
2018-09-07 15:30:36 +05:30
Kovid Goyal
03fd138b63
Linux: Fix crash with some nvidia drivers when creating tabs in the first top level-window after creating a second top-level window.
...
Fixes #873
The wrong window's OpenGL context was current when creating the tabs.
2018-09-07 15:23:10 +05:30
Kovid Goyal
1eeaef6dbb
Get rid of extra global variable
2018-09-07 14:53:29 +05:30
Kovid Goyal
b9a93b68c4
...
2018-09-07 11:37:33 +05:30
Kovid Goyal
e3728942dc
Fix a small memory leak when creating a new child process
2018-09-07 11:35:00 +05:30
Kovid Goyal
7f0674ac27
Fix backspacing of wide characters in wide-character unaware programs not working
...
Fixes #875
2018-09-07 10:08:25 +05:30
Kovid Goyal
60fcf7ab3d
Merge branch 'prev_tab_default_macos' of https://github.com/Luflosi/kitty
2018-09-07 06:53:24 +05:30
Luflosi
ee82a6ff18
Make ctrl+shift+tab previous_tab by default on macOS
2018-09-06 22:43:36 +02:00
Kovid Goyal
bac5e402b7
Fix #890
2018-09-06 21:25:29 +05:30
Kovid Goyal
732108109e
Nicer error message when sphinx-build is not in PATH
2018-09-06 21:23:03 +05:30
Kovid Goyal
ab3b86d65b
Merge branch 'void' of https://github.com/SolitudeSF/kitty
2018-09-06 21:11:03 +05:30
Kovid Goyal
d4d63506e1
Fix pre-allocation of the full history buffer
...
Also map negative scrollback numbers to (effectively) infinite
scrollback.
2018-09-06 21:06:31 +05:30
SolitudeSF
3ad69f8ba3
Add link for the Void Linux package
2018-09-06 18:36:29 +03:00
Kovid Goyal
9fd50a6ac0
...
2018-09-06 20:26:51 +05:30
Kovid Goyal
9b5c8a18d4
Merge branch 'master' of https://github.com/eigengrau/kitty
2018-09-06 18:29:06 +05:30
Kovid Goyal
9f3112ca56
Merge branch 'spelling' of https://github.com/EdwardBetts/kitty
2018-09-06 18:27:02 +05:30
Kovid Goyal
aa9de47da3
Support compose sequences with no symbol
...
Compose sequences can be defined without an associated symbol. To test for
completeness, we now also rely on XKB’s reported compose state.
Fixes #880 .
2018-09-06 14:53:16 +02:00
Edward Betts
5eaeda4402
Correct spelling mistakes.
2018-09-06 12:07:09 +01:00
Kovid Goyal
ecb03d7dba
...
2018-09-06 11:58:43 +05:30
Kovid Goyal
88612d3691
Better error message when font size is too large
2018-09-06 11:52:48 +05:30
Kovid Goyal
2c0e70a423
Fix #868
2018-09-06 11:49:30 +05:30
Kovid Goyal
d6b70f10d3
Cross-linking options in the docs
2018-09-06 11:02:53 +05:30
Kovid Goyal
40b01fb702
Add a note about using an alias for icat
2018-09-06 10:27:13 +05:30
Kovid Goyal
89222d93f4
Change legacy kitty icat reference
2018-09-06 10:20:23 +05:30
Kovid Goyal
b3db3e5732
Fix completion of paths with spaces
2018-09-06 09:47:36 +05:30
Kovid Goyal
b45161ecc3
zsh completion: Eliminate common prefix when completing file names
2018-09-06 09:46:04 +05:30
Kovid Goyal
d4fc0af7de
Cleanup up path completions
2018-09-06 09:34:25 +05:30
Kovid Goyal
5ef8cce1d7
Fix filenames not being completed for the diff kitten
2018-09-06 07:50:07 +05:30
Kovid Goyal
c98a147f94
Add changelog entry
2018-09-06 07:05:41 +05:30
Kovid Goyal
e9975cb7eb
Merge branch 'fish-completion' of https://github.com/scorphus/kitty
2018-09-06 07:04:54 +05:30
Kovid Goyal
33f0ac83c1
Wayland: Allow using the --class to set the app id
...
Fixes #862
2018-09-06 06:54:38 +05:30
Kovid Goyal
3bd45966c6
diff kitten: Fix spurious traceback on exit when pygments is missing
...
Fixes #863
2018-09-06 06:05:08 +05:30
Pablo S. Blum de Aguiar
1b7244f3c8
Completion for fish
2018-09-05 22:33:39 +02:00
Kovid Goyal
1949f3c3d5
Wayland fix self copy detection across multiple processes
2018-09-05 21:45:32 +05:30
Kovid Goyal
6a51ce5dc4
Wayland: Work on supporting drop of file paths
2018-09-05 21:41:47 +05:30
Kovid Goyal
c0c8e1ce5e
Fill up the rest of the v1 data_source listener struct
2018-09-05 20:04:38 +05:30
Kovid Goyal
6a3d6191bd
Implement the rest of the the data_offer listener callbacks
2018-09-05 19:58:55 +05:30
Kovid Goyal
b2aa07d29f
Wayland: Fix missing data source canceled listener
2018-09-05 19:37:55 +05:30
Kovid Goyal
c84fb68bf8
Wayland: fix copy/pasting into self
2018-09-05 19:23:42 +05:30
Kovid Goyal
128b9e1cd0
Wayland: Implement support for clipboard copy/paste
...
Fix #855
2018-09-05 17:54:26 +05:30
Kovid Goyal
bbe8bcb28d
Fix a regression that broke layout resizing
...
Fixes #860
2018-09-05 10:51:08 +05:30
Kovid Goyal
6dc9c22543
Remove unnecessary use of globals
2018-09-05 10:48:23 +05:30
Kovid Goyal
59f5781f19
Merge branch 'patch-1' of https://github.com/skorokithakis/kitty
2018-09-05 10:41:42 +05:30
Stavros Korokithakis
d61fb9cc42
Add sentence about layouts using windows
2018-09-05 08:08:31 +03:00
Kovid Goyal
ace052ee70
Move data device initialization into its own function
2018-09-05 07:51:15 +05:30
Kovid Goyal
1451a8ccc0
Add a new --start-in-fullscreen command line flag
...
Fixes #856
2018-09-05 07:36:13 +05:30
Kovid Goyal
547959c1ef
Linux: Fix numpad arrow keys not working when num lock is off
...
Fixes #857
2018-09-05 07:31:55 +05:30
Kovid Goyal
b1a5e98630
Update link to Fedora package to a newer one
2018-09-04 22:28:52 +05:30
Kovid Goyal
f3a1ee7b9f
Wayland backend: Add support for copy to clipboard
2018-09-04 22:22:43 +05:30
Kovid Goyal
b0a39b127d
Remove unused import
2018-09-04 17:54:33 +05:30
Kovid Goyal
e36f1157cc
Improve anti-aliasing at small sizes for wavy underlines
2018-09-04 15:48:01 +05:30
Kovid Goyal
053b9a786c
Use a cosine instead of sine wave for wavy underlines
...
Matches other terminals
2018-09-04 15:35:48 +05:30
Kovid Goyal
2561d937da
Forgot to remove mac os filter for native shortcut dispatching in one place
2018-09-04 15:00:09 +05:30
Kovid Goyal
55f457caf4
macOS: Fix a character that cannot be rendered in any font causing font fallback for all subsequent characters that cannot be rendered in the main font to fail
...
Fixes #799
2018-09-04 14:21:36 +05:30
Kovid Goyal
f5cc2fd8ad
Update GLFW from upstream
2018-09-04 09:49:18 +05:30
Kovid Goyal
e630b76fac
Don't patch glfw when importing since the patch has moved upstream
2018-09-04 09:46:09 +05:30
Kovid Goyal
0b6948cb4f
macOS: Fix using open --args not working
...
Fixes #854
2018-09-03 20:58:31 +05:30
Kovid Goyal
b0a2dea747
Improve rendering of wavy underline at small font sizes
...
See #853
2018-09-03 10:15:53 +05:30
Kovid Goyal
f8395e36a1
Draw underlines under the text instead of over it
2018-09-03 09:48:53 +05:30
Kovid Goyal
6ec58f58ce
Allow mapping shortcuts using the raw key code from the OS
...
Fixes #848
2018-09-02 18:46:10 +05:30
Kovid Goyal
96cbfe946c
Fix legacy form of invoking icat broken in 0.12.0
...
Fixes #850
2018-09-02 15:59:18 +05:30
Kovid Goyal
ac686a47c1
Fail early when opening tty fails
2018-09-02 14:29:10 +05:30
Kovid Goyal
e05aaf77ce
spelling typo
2018-09-01 10:41:35 +05:30
Kovid Goyal
6b371eb8a8
Merge branch 'master' of github.com:kovidgoyal/kitty
2018-09-01 10:32:44 +05:30
Kovid Goyal
f6660a0d55
Require PENV when publishing
2018-09-01 10:32:08 +05:30
Kovid Goyal
3b9f213ea2
...
2018-09-01 10:00:35 +05:30
Kovid Goyal
4f05024550
version 0.12.0
2018-09-01 09:16:29 +05:30
Kovid Goyal
4d2d9d5574
Do not change wheel event reporting when not using high resolution scroll events
2018-08-31 15:28:48 +05:30
Kovid Goyal
14f44e79f7
Remove debug printf
2018-08-31 07:56:21 +05:30
Kovid Goyal
ab960ea12d
Linux: Fix slow startup on some systems caused by GLFW searching for joysticks. Since kitty does not use joysticks, disable joystick support.
...
Fixes #830
2018-08-31 07:51:19 +05:30
Kovid Goyal
d276317e3a
Remote control: Allow changing the current window layout with a new goto-layout command
...
Fixes #845
2018-08-30 10:23:20 +05:30
Kovid Goyal
8b3b0064a9
...
2018-08-29 18:57:51 +05:30
Kovid Goyal
66b890bfd3
Merge branch 'alternate_screen_fast_scrolling' of https://github.com/Luflosi/kitty
2018-08-29 17:56:29 +05:30
Luflosi
2454ecd586
Allow for faster scrolling in alternate screen mode
2018-08-29 14:04:12 +02:00
Kovid Goyal
b891f4f874
Better error message for attempts to use CSI codes to resize the window
...
nvim does this for some odd reason
2018-08-29 10:09:06 +05:30
Kovid Goyal
92d06b3088
title stack should be LIFO not FIFO
2018-08-29 10:00:15 +05:30
Kovid Goyal
3067103b18
Implement window title stack
...
Used by new versions of vim
2018-08-29 09:56:52 +05:30
Kovid Goyal
0e248b3faa
Write escape codes to children atomically
...
Ensure a partial escape code is never written
2018-08-29 09:01:52 +05:30
Kovid Goyal
d1a76bbcd9
Merge branch 'typo' of https://github.com/Luflosi/kitty
2018-08-29 07:30:01 +05:30
Luflosi
1d91edfb00
dont -> don't
2018-08-29 03:18:25 +02:00
Kovid Goyal
cf7ecd5e66
Do not import fast_data_types at the top level of utility modules
2018-08-28 10:27:06 +05:30
Kovid Goyal
63a2ecb89c
Merge branch 'writePlist_deprecation' of https://github.com/Luflosi/kitty
2018-08-28 04:54:17 +05:30
Luflosi
8e6b58b1db
Fix deprecation warning on macOS
2018-08-27 23:54:45 +02:00
Kovid Goyal
0f594ef950
Ensure multiplication is not unsigned
2018-08-27 15:47:32 +05:30
Kovid Goyal
0c1b76c17a
Fix completion of kitten names not working
2018-08-27 13:23:17 +05:30
Kovid Goyal
1c11ba8dbd
...
2018-08-27 13:11:30 +05:30
Kovid Goyal
529d5b2226
Dont store the options spec at the top level of the module
2018-08-27 13:06:17 +05:30
Kovid Goyal
9fe16867c6
Do not import config_data at the top-level of the cli module
...
Importing it is slow and it is not needed in many cases, for instance
when used from kittens
2018-08-27 12:59:10 +05:30
Kovid Goyal
1d275c6b35
Only import the ast module on demand
2018-08-27 12:43:20 +05:30
Kovid Goyal
d19b29ced0
Fix incorrect calculation of pending_scroll_pixels
2018-08-27 06:51:25 +05:30
Kovid Goyal
bbefcb2cd2
Fix spaces after file/dir names and config directive names in bash completion
...
Since bash has no concept of completion groups with customizable
behavior, unlike zsh, we tell it to never add trailing spaces and
add the spaces ourselves.
2018-08-26 18:22:40 +05:30
Kovid Goyal
c864cba4a2
Completion of image names for the icat kitten
2018-08-26 11:49:56 +05:30
Kovid Goyal
42546f4371
Implement completion for the kitty command
...
Implemented for bash and zsh. Completion scripts are just thin wrappers
around kitty + complete which knows how to complete kitty command lines.
Should make it easy to add completion for other shells in the future.
2018-08-26 10:39:51 +05:30
Kovid Goyal
ff09bdcbf1
Completion for kittens
2018-08-26 09:42:26 +05:30
Kovid Goyal
f36a9fffa3
Completion for bash
2018-08-26 09:16:02 +05:30
Kovid Goyal
933cced76c
Implement completion for remote control commands
2018-08-25 14:51:59 +05:30
Kovid Goyal
c51e7d3bde
More work on completions
2018-08-25 11:27:22 +05:30
Kovid Goyal
d3b31224cd
More work on completions
2018-08-24 12:15:27 +05:30
Kovid Goyal
ec9bb2302c
...
2018-08-24 11:03:30 +05:30
Kovid Goyal
009ef54de7
Implement high precision scrolling with the trackpad on platforms such as macOS and Wayland that implement it.
...
Fixes #819 . Note that I have no idea whether the code works well on
retina screens, might have to multiple the pixel count by the scale
factor on those screens?
2018-08-24 11:00:58 +05:30
Kovid Goyal
0e0e25f986
Avoid double filter for completions in zsh
2018-08-24 08:13:59 +05:30
Kovid Goyal
8b02b89bd6
Add an is_focused field to the output of kitty @ ls
2018-08-23 16:07:26 +05:30
Kovid Goyal
8ba3c4ba50
Group completion matches
2018-08-23 15:34:54 +05:30
Kovid Goyal
16764c79b2
Start work on completion for the kitty command
2018-08-23 15:10:13 +05:30
Kovid Goyal
96c444d041
Workaround for bug in glfw causing crash when hotplugging monitors
...
Fixes #812
2018-08-21 12:52:16 +05:30
Kovid Goyal
ec1c72e9a3
Fix compiler warning
2018-08-20 10:55:49 +05:30
Kovid Goyal
f9b1f6be5c
Fix #809
2018-08-20 10:24:09 +05:30
Kovid Goyal
9201d27875
Document kitty's extension to the OSC 52 protocol
2018-08-13 07:27:08 +05:30
Kovid Goyal
ecbe79e04f
Update glfw from upstream
2018-08-12 21:36:19 +05:30
Kovid Goyal
6e34a7559b
Fix one-pixel line appearing at window edges at some window sizes when displaying images with background opacity enabled
...
Fixes #741
2018-08-12 07:22:25 +05:30
Kovid Goyal
ea8b17565d
Make ctrl+tab next_tab by default on macOS
2018-08-11 07:55:43 +05:30
Kovid Goyal
a143faaf05
macOS: Fix control+tab key combination not working
...
Fixes #801
2018-08-11 07:18:24 +05:30
Kovid Goyal
acdb56ad5d
...
2018-08-11 06:52:05 +05:30
Kovid Goyal
1f90238b18
If malloc fails remove timer from queue
2018-08-09 08:52:22 +05:30
Kovid Goyal
89b636376e
Possible fix for #784
2018-08-09 08:26:25 +05:30
Kovid Goyal
59f39ae3ab
Fix detection of xprop on systems with older xprop
...
Fixes #798
2018-08-08 15:31:15 +05:30
Kovid Goyal
a92b20f85a
Only do manual focus follows mouse on macOS
2018-08-07 07:56:56 +05:30
Kovid Goyal
e71c432b7c
...
2018-08-06 20:13:16 +05:30
Kovid Goyal
b6a5d09d4f
Allow enabling remote control in only some kitty windows
2018-08-06 20:04:12 +05:30
Kovid Goyal
9235d2b8e4
...
2018-08-06 18:38:23 +05:30
Kovid Goyal
605847fd75
Add --no-response to kitty @ focus-window
2018-08-06 18:17:45 +05:30
Kovid Goyal
6222273adc
...
2018-08-06 12:27:20 +05:30
Kovid Goyal
6a759ea7d5
...
2018-08-06 12:26:57 +05:30
Kovid Goyal
d8a7114dba
macOS: Disable the custom mouse cursor. Using a custom cursor fails on dual GPU machines.
...
I give up, Apple users will just have to live with the limitations of their choice of OS.
See #794
2018-08-06 12:22:01 +05:30
Kovid Goyal
ab818ed89f
IBUS: Fix update of pre-edit text not working correctly
...
Fixes #793
2018-08-06 11:30:33 +05:30
Kovid Goyal
1bb6540b64
Better debug output for pre-edit text
2018-08-06 11:08:12 +05:30
Kovid Goyal
ddd8209c45
Fix crash when pressing enter while using IBUS
2018-08-06 10:35:46 +05:30
Kovid Goyal
1dc3dfe58f
Distinguish shifted Pgup and PgDn keys in normal and application mode
...
Fixes #791
2018-08-05 17:17:15 +05:30
Kovid Goyal
634d262b64
When using the --listen-on option have kitty @ automatically connect to the socket even when --to is not specified
...
The listen on value is set in the env of the child processes, so kitty @
can read it when run from inside kitty.
2018-08-04 22:06:47 +05:30
Kovid Goyal
d964146f8c
Use ctermid() instead of hardcoding /dev/tty
2018-08-04 20:58:01 +05:30
Kovid Goyal
05b817f5f5
Micro-optimization
2018-08-04 20:34:12 +05:30
Kovid Goyal
eb2ec1833c
Use a pipe rather than a signal to wait for terminal ready
...
Simpler code, more robust since there is no longer a race between the
installation of the signal handler and the dispatch of the signal
2018-08-04 20:24:06 +05:30
Kovid Goyal
094ddd9333
Round-trip the zwj unicode character
...
Rendering of sequences containing zwj is still not implemented, since it
can cause the collapse of an unbounded number of characters into a
single cell. However, kitty at least preserves the zwj by storing it as
a combining character.
2018-08-04 18:29:45 +05:30
Kovid Goyal
e05d48a574
Also prevent long running diff workers from causing a hang on exit
2018-08-04 17:51:33 +05:30
Kovid Goyal
927bfcd37a
Use only a single diff executor
2018-08-04 17:46:05 +05:30
Kovid Goyal
42cabace47
Better fix for long running highlight workers
2018-08-04 17:41:37 +05:30
Kovid Goyal
9a1f14d05c
diff kitten: Do not highlight extremely large files
...
python's asyncio module has no way to tell a process executor object to
kill its worker processes, so highlighting very large files cause the
kitten to hang around o exit till the highlighting is done
2018-08-04 17:30:45 +05:30
Kovid Goyal
4189aa8f14
Add a --no-response argument to kitty @ new-window
...
See #786
2018-08-04 15:57:43 +05:30
Kovid Goyal
5fa5bf8142
Add a test for unicode regional indicator widths
2018-08-04 10:56:35 +05:30
Kovid Goyal
000c1cf306
Implement support for emoji skin tone modifiers
...
Fixes #787
2018-08-04 10:06:25 +05:30
Kovid Goyal
28447d3389
Only launch child processes after window size is available in the termios structure
...
The delay is minimal ~ 1ms and there are apparently some applications
such as kakoune that rely on the window size being available on startup.
Since kitty always sizes windows with some size on startup, we can
afford to wait.
Fixes #786
2018-08-04 09:19:11 +05:30
Kovid Goyal
ab7f3310c4
Dont crash if XRRGetCrtcInfo() returns NULL
2018-08-03 16:17:25 +05:30
Kovid Goyal
e5a720c6fa
Fix detection of URLs in HTML source code (URLs inside quotes)
...
Fixes #785
2018-08-03 12:28:23 +05:30
Kovid Goyal
8d20dbe81d
Use the ! modifier when resizing images via ImageMagick
...
Should hopefully make ImageMagick respect the specified width and height
exactly.
2018-08-01 12:03:36 +05:30
Kovid Goyal
1fc666d82c
Add an Info.plist key to enable support for dark mode in Mojave
...
Mojave uses tis key to determine how to draw the titlebar.
See https://developer.apple.com/documentation/appkit/nsappearancecustomization/choosing_a_specific_appearance_for_your_app?language=objc
2018-08-01 03:53:17 +05:30
Kovid Goyal
1b2a1a1e77
Add a check that tic works as expected
...
Apparently on FreeBSD it exits with no errors but fails to write the
compiled terminfo file.
2018-07-31 09:01:23 +05:30
Kovid Goyal
9af3081f45
The focus_follows_mouse option now also works across top-level kitty OS windows
...
Fixes #772
2018-07-30 21:26:20 +05:30
Kovid Goyal
78def6e6bf
kitty @ new-window: Add a new option --window-type
...
To create top-level OS windows. Fixes #770
2018-07-30 08:40:26 +05:30
Kovid Goyal
b4269199b4
Fix #771
2018-07-30 07:58:34 +05:30
Kovid Goyal
cb289125ab
Use _GNU_SOURCE instead of POSIX_SOURCE for fileno()
...
Maybe that will work with FreeBSD
2018-07-29 21:43:02 +05:30
Kovid Goyal
a4e3ce31dd
Merge branch 'fix_window_decorations' of https://github.com/danbtl/kitty
2018-07-29 20:05:11 +05:30
Daniel Beitler
8a725d3d3e
Fix hiding window decorations under X11/Wayland
2018-07-29 10:12:07 -04:00
Kovid Goyal
c48fa0f078
Silence the OpenGL deprecation warnings on macOS 10.14
2018-07-29 19:35:43 +05:30
Kovid Goyal
31aa782362
Update URL to kitty home page in Info.plist
2018-07-29 19:03:41 +05:30
Kovid Goyal
892637683c
Fix controlling terminal not being set on BSD
...
Fixes #764
2018-07-29 13:48:14 +05:30
Kovid Goyal
1cf6f28fe8
When compiling python bytecode for the packages optimize it to level-2 and use relative paths in the pyc files
2018-07-29 13:20:21 +05:30
Kovid Goyal
29f9394257
...
2018-07-29 13:06:26 +05:30
Kovid Goyal
8fd92df7ae
Also fix launcher for netbsd
2018-07-29 12:54:24 +05:30
Kovid Goyal
374f7abb5d
Fix package launcher for FreeBSD
...
Fixes #763
2018-07-29 12:52:24 +05:30
Kovid Goyal
3d1e604a6c
Make the glfw strdup implementation more efficient
2018-07-29 12:21:56 +05:30
Kovid Goyal
1ca49b9380
Fix #761
2018-07-29 12:15:21 +05:30
Kovid Goyal
9bd9cf8052
typo
2018-07-29 11:18:12 +05:30
Kovid Goyal
ed934a0206
Fix #758
2018-07-29 11:07:36 +05:30
Kovid Goyal
dc891760ec
Fix pthread_setname_np on openbsd as well
...
openbsd apparently follows freebsd for this function
2018-07-29 10:34:54 +05:30
Kovid Goyal
97401f843a
Sigh. Apparently _XOPEN_SOURCE is needed on older linux systems for fileno()
2018-07-28 23:54:23 +05:30
Kovid Goyal
833865cb28
Re-enable brew based build on travis
...
New harfbuzz release will hopefully work again
2018-07-28 23:54:23 +05:30
Kovid Goyal
02635d506e
Dont use _XOPEN_SOURCE when building
...
Apparently it has exactly opposite semantics for glibc and whatever libcs
are used on BSD. What a clusterfuck.
2018-07-28 22:56:18 +05:30
Kovid Goyal
f018e1a075
Nicer check for is_binary
2018-07-28 14:02:01 +05:30
Kovid Goyal
c79cde43ae
...
2018-07-28 14:00:18 +05:30
Kovid Goyal
8a812c9d02
diff kitten: Fix error when only RHS file is a binary file
...
Fixes #752
2018-07-28 13:59:32 +05:30
Kovid Goyal
3df78de3f8
Update pending mode escape code parsing to match latest shed color
2018-07-28 10:56:34 +05:30
Kovid Goyal
bd4831e2ee
Some explicit includes needed for FreeBSD
2018-07-26 19:50:38 +05:30
Kovid Goyal
341a34ea9e
Assume file extensions are up to 7 chars long
...
See .desktop files
2018-07-26 18:37:13 +05:30
Kovid Goyal
011866a101
Add a keyboard shortcut to reset the terminal
...
It takes parameters so you can define your own shortcuts to clear the screen/scrollback also. Fixes #747
2018-07-26 17:29:13 +05:30
Kovid Goyal
1486af8770
More debug output when using --debug-keyboard
2018-07-26 08:41:16 +05:30
Kovid Goyal
f06e04ffc5
Fix #745
2018-07-26 07:03:41 +05:30
Kovid Goyal
d72098bdf8
Preserve the mouse selection even when the contents of the screen are scrolled or overwritten provided the new text does not intersect the selected lines.
...
Requires a small CPU usage overhead when scrolling/drawing characters
even in the absence of a selection. I couldn't isolate the overhead from
statistical noise in my testing.
2018-07-25 16:16:57 +05:30
Kovid Goyal
57871e1983
Restore sys.path after importing custom kitten
2018-07-25 09:51:04 +05:30
Kovid Goyal
21dbb0e820
Improve the help message for the kitten remote control cmd
2018-07-25 09:49:01 +05:30
Kovid Goyal
007f377f16
Allow running kitten via the remote control system
...
Fixes #738
2018-07-25 09:45:11 +05:30
Kovid Goyal
da15477aaf
Make the choice of default editor a bit more robust
2018-07-25 08:57:44 +05:30
Kovid Goyal
4f34ad0a8d
...
2018-07-24 14:14:34 +05:30
Kovid Goyal
6ed9dccde2
Remove unused parameter
2018-07-24 13:51:45 +05:30
Kovid Goyal
ce2b3265be
Remote control: Allow matching windows by the environment variables of their child process as well
2018-07-24 12:40:59 +05:30
Kovid Goyal
14ea69c9c7
Pass pid of child process as env var to kittens
2018-07-24 11:28:34 +05:30
Kovid Goyal
72e2307c16
Code to get the env vars of a process
2018-07-24 11:27:10 +05:30
Kovid Goyal
0dd3334811
Implement getting cmdline of process on macOS as well
2018-07-24 11:07:53 +05:30
Kovid Goyal
5485436ea1
...
2018-07-24 10:18:37 +05:30
Kovid Goyal
9e044750ce
When running kittens use the cwd of the child process as the kittens' cwd
2018-07-24 10:14:17 +05:30
Kovid Goyal
f84cb2f07a
...
2018-07-24 09:32:21 +05:30
Kovid Goyal
e0ff6bcc5d
Implement protocol for atomic screen updates
...
See https://gitlab.com/gnachman/iterm2/wikis/synchronized-updates-spec
2018-07-23 13:24:49 +05:30
Kovid Goyal
1695f6800c
Expand links to kitty docs in sample kitty.conf
2018-07-20 21:21:52 +05:30
Kovid Goyal
810f149501
Fix #731
2018-07-20 21:04:07 +05:30
Kovid Goyal
05d51d8693
Fix #730
2018-07-20 15:55:39 +05:30
Kovid Goyal
ac4c819f57
Add a warning not to edit the apc parsers header files
2018-07-20 09:45:05 +05:30
Kovid Goyal
e7cc654bb4
Make error message when creating glfw window fails a little more useful
2018-07-20 09:36:42 +05:30
Kovid Goyal
bf37e3f77f
Format generated header using clang-format
2018-07-19 18:56:10 +05:30
Kovid Goyal
af9f7bb0d2
Generate the code to parse APC escape codes
...
Allows it to be re-used for other APC codes
if needed.
2018-07-19 18:43:26 +05:30
Kovid Goyal
0b7abf5690
Fix test that needed to be changed for new prerendered sprites
2018-07-19 14:21:09 +05:30
Kovid Goyal
490ae248f8
Render all cursor shapes in the cell shader
2018-07-19 14:05:15 +05:30
Kovid Goyal
e552bcb0c6
Prerender cursor sprites
2018-07-19 14:03:39 +05:30
Kovid Goyal
2c27316c4a
Get rid of the cursor program
...
Cursors will now be drawn in the cell program using a sprite
2018-07-19 12:46:25 +05:30
Kovid Goyal
c49dd12855
Pass in cursor shape to cell shader
2018-07-19 12:13:39 +05:30
Kovid Goyal
544f97a3fe
...
2018-07-19 11:18:31 +05:30
Kovid Goyal
6a909e0700
Get rid of the last branch in the cell shader
2018-07-19 10:56:28 +05:30
Kovid Goyal
40a6ad9a1f
...
2018-07-19 06:07:04 +05:30
Kovid Goyal
039f2b49e8
Remove workaround for #654 as it has been upstreamed
2018-07-19 05:11:03 +05:30
Kovid Goyal
5ae2406a03
macOS: Allow scrolling window contents using mouse wheel/trackbar even when the window is not the active window
...
Fixes #729
2018-07-18 10:34:36 +05:30
Kovid Goyal
2c3235d452
Remove need to call super-class on_resize method
2018-07-15 16:19:54 +05:30
Kovid Goyal
d2ea71a403
Remove unused code
2018-07-15 16:14:40 +05:30
Kovid Goyal
feb97b2313
Use asyncio for jobs in the diff kitten
2018-07-15 16:09:52 +05:30
Kovid Goyal
0b662ecb9a
Refactor the kittens tui loop to use asyncio
...
Gets us timers and various jobs for free, and makes it easier to
integrate with libraries that use asyncio from the larger python
ecosystem.
2018-07-15 15:27:35 +05:30
Kovid Goyal
3d0da77c80
Revert change to set PYTHONIOENCODING on macOS
...
It is not needed in python 3.7 as the POSIX locale is
now UTF-8 by default
2018-07-15 12:19:48 +05:30
Kovid Goyal
9918397190
Add an option :opt:env to set environment variables in child processes from kitty.conf
2018-07-15 12:16:43 +05:30
Kovid Goyal
b3e2562c00
macOS bundle: Set the PYTHONIOENCODING env var to utf-8
...
There are apparently still some situations where python ends up with
ascii as its I/O encoding on macOS. See #724
2018-07-15 10:38:40 +05:30
Kovid Goyal
255cacf912
kitty shell prompt: fallback to plain ascii prompt in case of unicode errors
2018-07-14 06:35:43 +05:30
Kovid Goyal
8268f9f612
Add a section about remote control to the main page
2018-07-14 06:06:59 +05:30
Kovid Goyal
92b8798cad
Add note about ctrl+alt to select in columns
2018-07-14 06:02:17 +05:30
Kovid Goyal
fbb4db8a83
Allocate talk data on the heap
...
Most users will talk to 0, 1, 2 peers simultaneously at the most,
so allocate memory for them dynamically.
2018-07-13 17:13:59 +05:30
Kovid Goyal
19a672caf2
Allow kitty to handle talking to more simultaneous peers
2018-07-13 16:46:08 +05:30
Kovid Goyal
5a85c890ba
Add a printf annotation of the log_error function
2018-07-13 16:39:47 +05:30
Kovid Goyal
55556aaac4
Ensure queued display events are dispatched when polling/waiting for events
2018-07-13 10:56:12 +05:30
Kovid Goyal
31853ee20c
Handle errno better when polling for events
2018-07-13 10:33:18 +05:30
Kovid Goyal
037bfeff82
Give IBUS a maximum of three seconds to respond to a key press
...
Previously was using the default timeout, which is 25 seconds
2018-07-12 18:18:21 +05:30
Kovid Goyal
bf1c919547
When de-activating overlay line, mark it dirty
2018-07-12 18:18:21 +05:30
Kovid Goyal
202ec17a08
Add a changelog entry for IBus support
...
Fixes #469
2018-07-12 18:18:21 +05:30
Kovid Goyal
98ede457a0
Do not hand on startup if the ibus daemon is hung
2018-07-12 18:18:21 +05:30
Kovid Goyal
3c772c3576
...
2018-07-12 18:18:21 +05:30
Kovid Goyal
5b1eaa741c
IME input: Show the pre-edit text while the IME is in progress
...
Text is show in reverse video
2018-07-12 18:18:21 +05:30
Kovid Goyal
1a1aa2d6aa
Nicer debug print for key debugging
2018-07-12 18:18:20 +05:30
Kovid Goyal
6e9aecdff3
Fix Shift key not working with IBUS
...
Fixes #721
2018-07-12 18:18:20 +05:30
Kovid Goyal
95187632bf
Allow using GLFW_IM_MODULE to activate ibus
2018-07-12 18:18:20 +05:30
Kovid Goyal
e3e28a023c
Fix exporting to glfw
2018-07-12 18:18:20 +05:30
Kovid Goyal
65bb71779a
Install dbus on travis
2018-07-12 18:18:20 +05:30
Kovid Goyal
29dd766a67
Fix unused vars warning
2018-07-12 18:18:20 +05:30
Kovid Goyal
851145e69e
Add some debug prints for IBUS key handling
2018-07-12 18:18:20 +05:30
Kovid Goyal
b2e300c440
Simplify key round-tripping to IBUS
...
Only send to IBUS after full xkb processing. This is needed as otherwise
modifier state tracking does not work reliably. If you use alt+tab to
switch away from the window, the window never receives the release event
for the alt modifier.
The downside is that now if the uer has both XCompose and ibus active,
the who knows what will happen.
2018-07-12 18:18:20 +05:30
Kovid Goyal
38998a4869
Notify IBUS when focus is gained/lost
2018-07-12 18:18:19 +05:30
Kovid Goyal
21f1fd55f8
Have the IBUS popup display at the cursor position
2018-07-12 18:18:19 +05:30
Kovid Goyal
c6c6a18375
Handle keys returned by IBUS
2018-07-12 18:18:19 +05:30
Kovid Goyal
56063b283e
Implement text commit from the IME system
2018-07-12 18:18:19 +05:30
Kovid Goyal
d27e7ead49
Print an error if too many timers/watches are added
2018-07-12 18:18:19 +05:30
Kovid Goyal
342164ede1
Add API for the application to notify the IME system of state changes
2018-07-12 18:18:19 +05:30
Kovid Goyal
1061e40b98
Bi-directional glfw updates
2018-07-12 18:18:19 +05:30
Kovid Goyal
377115a594
Add a GLFW specific env var to toggle IBUS
2018-07-12 18:18:19 +05:30
Kovid Goyal
e405b68da1
...
2018-07-12 18:18:18 +05:30
Kovid Goyal
d875d7baed
Implement the handler for ibus signals
2018-07-12 18:18:18 +05:30
Kovid Goyal
9c48e4965c
Send key events to ibus
2018-07-12 18:18:18 +05:30
Kovid Goyal
8675659fcb
Fix remaining sync BUS calls
...
Also work on IBUS integration
2018-07-12 18:18:18 +05:30
Kovid Goyal
3b226618ad
Ensure no ibus comms take place till the connection is fully setup
2018-07-12 18:18:18 +05:30
Kovid Goyal
6879a492dc
Give watches and timers names to ease debugging
2018-07-12 18:18:18 +05:30
Kovid Goyal
4070255dde
Simplify watch->fd matching
2018-07-12 18:18:18 +05:30
Kovid Goyal
dd9e484336
Make the DBUS APIs async
2018-07-12 18:18:18 +05:30
Kovid Goyal
78cda7aa74
Implement dispatch for the IBUS connection
2018-07-12 18:18:17 +05:30
Kovid Goyal
9ced447fa3
Make timer dispatch more efficient
2018-07-12 18:18:17 +05:30
Kovid Goyal
8e665ffedc
Implement DBUS timeout functions
2018-07-12 18:18:17 +05:30
Kovid Goyal
99ea6c08a7
Implement timers for the linux event loops
...
Needed for dbus integration. Also cleanup the event handling code.
X11 and Wayland now share most of their event polling and dispatch logic.
2018-07-12 18:18:17 +05:30
Kovid Goyal
b0bfa2b2fc
...
2018-07-12 18:18:17 +05:30
Kovid Goyal
3797294838
Use an id for watches
2018-07-12 18:18:17 +05:30
Kovid Goyal
3d6995d1e6
Work on integration of DBUS into event loop
2018-07-12 18:18:17 +05:30
Kovid Goyal
e91eb27e56
Refactor linux backend event loops
...
Allow waiting for events on an arbitrary number of fds. Needed
for async DBUS integration.
2018-07-12 18:18:17 +05:30
Kovid Goyal
3a4b614ae0
IBUS does not need a connection to the DBUS session bus
2018-07-12 18:18:16 +05:30
Kovid Goyal
26a6d6bef9
Set startup IBUS cursor and focus state
2018-07-12 18:18:16 +05:30
Kovid Goyal
dca81589a7
Finish code to connect to IBUS daemon
2018-07-12 18:18:16 +05:30
Kovid Goyal
5b7c697dfe
Connect to IBUS
2018-07-12 18:18:16 +05:30
Kovid Goyal
18d6b8a0ad
Code to read the IBUS address
2018-07-12 18:18:16 +05:30
Kovid Goyal
cdee601137
Start work on IBUS support
2018-07-12 18:18:16 +05:30
Kovid Goyal
e74c08ff39
Disable brew based travis build
...
Building the latest release of harfbuzz is failing
2018-07-12 17:42:33 +05:30
Kovid Goyal
5bfe2fb8d3
Make using a fixed color for the text under the cursor the default
2018-07-12 16:52:38 +05:30
Kovid Goyal
55fc5c4358
Add an option :opt:cursor_text_color to render text under the cursor in a fixed color.
...
See #126
2018-07-12 12:50:42 +05:30
Kovid Goyal
d6a603d536
Change the default publish action from build+ to all
2018-07-10 22:05:33 +05:30
Kovid Goyal
5c85d915cc
...
2018-07-10 22:00:34 +05:30
Kovid Goyal
57f8519a52
version 0.11.3
2018-07-10 21:42:01 +05:30
Kovid Goyal
056be45dd5
...
2018-07-10 21:30:30 +05:30
Kovid Goyal
3ee22e545e
macOS: Workaround for switching from fullscreen to windowed mode with the titlebar hidden causing window resizing to not work.
...
Fixes #711
2018-07-10 21:29:30 +05:30
Kovid Goyal
db5aa36f44
Fix deprecation warning from newer versions of wayland-scanner
2018-07-10 19:48:37 +05:30
Kovid Goyal
cc767061cc
Linux: Fix compilation with python 3.7
...
Fixes #714
2018-07-10 18:47:05 +05:30
Kovid Goyal
1d22b75090
Fix a regression in the previous release that caused pasting large amounts of text to be duplicated
...
Fixes #709
2018-07-08 16:25:08 +05:30
Kovid Goyal
4313531432
macOS: Use a custom mouse cursor that shows up well on both light and dark backgrounds
...
Fixes #359 . Also, update GLFW from upstream for retina cursor setting
support.
2018-07-07 10:43:30 +05:30
Kovid Goyal
1faddeb402
Also return image dimensions when loading PNG
2018-07-07 08:04:11 +05:30
Kovid Goyal
2b035739f8
Make the PNG reader code re-useable
2018-07-07 07:46:15 +05:30
Kovid Goyal
aeed20087e
Fix segfault when opening more tabs than would fit with even one character titles on the tab bar. Fixes #706
2018-07-07 05:35:56 +05:30
Kovid Goyal
a239f41495
minimal borders for the grid layout
2018-07-06 20:23:56 +05:30
Kovid Goyal
b36d6967a5
DRYer
2018-07-06 17:54:01 +05:30
Kovid Goyal
7c1d13b7db
Minimal borders for vertical and horizontal layouts
2018-07-06 17:46:08 +05:30
Kovid Goyal
3e99949db8
Implement minimal borders in the Fat layout
2018-07-06 17:35:23 +05:30
Kovid Goyal
aa12a65a8f
Draw only the minimum borders needed for inactive windows
...
Fixes #699
Note that currently this is only implemented by the Tall layout.
2018-07-06 17:30:53 +05:30
Kovid Goyal
18804efb7e
Let the layout control which window borders are drawn
2018-07-06 17:14:25 +05:30
Kovid Goyal
a5d27196ea
Remove unnecessary code
2018-07-06 13:17:51 +05:30
Kovid Goyal
5af6d88ffb
Support drawing individual border widths
2018-07-06 13:17:51 +05:30
Kovid Goyal
472a3bc69f
Refactor layout dimension to use per window decoration sizes
2018-07-06 13:17:51 +05:30
Kovid Goyal
f0f1c911ea
Track window neighbors
2018-07-06 13:17:50 +05:30
Kovid Goyal
fcb0033d25
When drag-scrolling stop the scroll when the mouse button is released.
2018-07-06 13:01:49 +05:30
Kovid Goyal
c8b1e76783
When clicking in the margin/border area of a window map the click to the nearest cell in the window. Avoids selection with the mouse failing when starting the selection just outside the window.
2018-07-06 12:32:08 +05:30
Kovid Goyal
b50f621e61
DRYer
2018-07-06 10:55:03 +05:30
Kovid Goyal
77c4f5fecc
When dragging to select with the mouse "grab" the mouse so that if it strays into neighboring windows, the selection is still updated
...
Fixes #624
2018-07-06 10:33:01 +05:30
Kovid Goyal
e27ea3337a
Prevent integer wrap on xlimit
2018-07-06 09:50:34 +05:30
Kovid Goyal
23fbf6f157
Fix triple-click to select line not working when the entire line is filled
...
Fixes #703
2018-07-06 08:17:48 +05:30
Kovid Goyal
321e5081ed
Merge branch 'reproducible-docs' of https://github.com/jamessan/kitty
2018-07-05 20:37:57 +05:30
James McCoy
33cac29f87
seq_as_rst: Sort "Choices" so they are consistently formatted
2018-07-05 11:00:54 -04:00
Kovid Goyal
12be438dea
...
2018-07-05 12:30:11 +05:30
Kovid Goyal
00092db6ad
Use an enum for border colors
2018-07-05 11:52:32 +05:30
Kovid Goyal
619c3a0025
macOS: Add an option macos_window_resizable to control if kitty top-level windows are resizable using the mouse or not
...
Fixes #698
2018-07-03 06:49:28 +05:30
Kovid Goyal
f12697c897
Better error when kitty config dir is a file
...
See #697
2018-07-03 06:30:29 +05:30
Kovid Goyal
4bf0e0ea23
version 0.11.2
2018-07-01 07:58:46 +05:30
Kovid Goyal
c7879d06c9
Output native key names in --debug-config
2018-06-30 18:48:39 +05:30
Kovid Goyal
05227e7dfb
Fix --debug-config failing when native keys present
2018-06-30 18:42:19 +05:30
Kovid Goyal
9805d164d0
Remove unknown flags from brew install for harfbuzz on travis
2018-06-30 18:34:27 +05:30
Kovid Goyal
05384c46e7
...
2018-06-30 18:25:45 +05:30
Kovid Goyal
c2679eff9a
Fix compiler warning
...
The compiler warning is harmless, since we exec immediately after
using the const char* but since I have a no warning policy...
2018-06-30 18:15:08 +05:30
Kovid Goyal
3ec66c0b9f
Fix regression in previous release that caused --debug-config to fail when printing shortcuts
...
Forgot to adjust the print shortcuts code for native shortcuts.
Fixes #695
2018-06-30 17:48:25 +05:30
Kovid Goyal
9277b80fad
Remove unused code
2018-06-30 12:01:56 +05:30
Kovid Goyal
568a4c9b5d
Re-raise KeyError idiomatically
2018-06-29 13:49:08 +05:30
Kovid Goyal
4de18688ca
Merge branch 'fix/conf-utils-keyparser' of https://github.com/arubertoson/kitty
2018-06-29 13:42:21 +05:30
Marcus Albertsson
12975347ee
Fix: Exception in conf utils
...
The bug was related to trying to split a string with unstript spaces in
the action parameter. It resulted in a unbound error as there was no
previous raise when getting the key from args_funcs. The fix is twofold,
it makes sure that we raise the keyerror if we're trying to grab a non
existing key and we're stripping the spaces from the action before
splitting.
This should fix both the unbound error and the not being able to resolve
correct actions.
2018-06-29 08:56:25 +01:00
Kovid Goyal
e35c3cc913
Add an option single_window_margin_width to allow different margins when only a single window is visible in the layout
...
Fixes #688
2018-06-29 09:56:05 +05:30
Kovid Goyal
65fef81f29
hints kitten: Add an option to select multiple items
...
Fixes #687
2018-06-29 06:49:16 +05:30
Kovid Goyal
e3f60e6fa7
Update CHANGELOG
2018-06-28 20:34:56 +05:30
Kovid Goyal
0c88e11cd7
More useful exception when unexpected output encountered from a kitten
2018-06-27 14:13:40 +05:30
Kovid Goyal
d689c21283
Fix pasting large amounts of text very slow.
...
Fixes #682
Apparently when refactoring child.py I somehow lost the code to make the
child fd non-blocking.
2018-06-26 18:20:46 +05:30
Kovid Goyal
5362d1a7a6
Micro-optimization
2018-06-26 16:02:05 +05:30
Kovid Goyal
3b1490020d
...
2018-06-26 12:35:38 +05:30
Kovid Goyal
b8ba25b81f
Add a link to the kitty source code for packagers
2018-06-26 12:03:07 +05:30
Kovid Goyal
8bfdc47998
macOS: Fix an error in remote control when using --listen-on. Fixes #679
2018-06-25 12:33:54 +05:30
Kovid Goyal
2491fafe98
Update glfw from upstream
2018-06-23 14:59:36 +05:30
Kovid Goyal
b5bc466aef
Merge branch 'master' of https://github.com/Ma-Shell/kitty
2018-06-23 13:54:47 +05:30
Marcel Schumacher
cfd6ea4301
bugfix for get-text with extent=screen
2018-06-23 10:13:37 +02:00
Kovid Goyal
2cdf41f190
...
2018-06-23 13:20:53 +05:30
Kovid Goyal
9169d0aa9b
...
2018-06-23 10:34:35 +05:30
Kovid Goyal
05a25e3531
redirect to kitty website
2018-06-23 10:30:34 +05:30
Kovid Goyal
2852ce9a4d
Update glfw from upstream
2018-06-23 10:23:21 +05:30
Kovid Goyal
20f8f2c401
Removed unused code
...
The template is no longer needed since I switched my global
template to py3
2018-06-23 10:03:37 +05:30
Kovid Goyal
0995187080
Remove unused code
...
linux-installer.sh was accidentally committed to the kitty repo
2018-06-23 09:58:20 +05:30
Kovid Goyal
d10eac1b02
Merge branch 'fix-new_os_window' of https://github.com/blueyed/kitty
2018-06-23 08:28:11 +05:30
Daniel Hahler
2cc2f803f1
create_session: handle args=None
...
Fixes `new_os_window`:
scancode: 0x39 release: 0 clean_sym: n composed_sym: N mods: ctrl+shift glfw_key: N
Traceback (most recent call last):
File "…/Vcs/kitty/kitty/boss.py", line 431, in dispatch_special_key
return self.dispatch_action(key_action)
File "…/Vcs/kitty/kitty/boss.py", line 487, in dispatch_action
passthrough = f(*key_action.args)
File "…/Vcs/kitty/kitty/boss.py", line 199, in new_os_window
self._new_os_window(args)
File "…/Vcs/kitty/kitty/boss.py", line 195, in _new_os_window
startup_session = create_session(self.opts, special_window=sw, cwd_from=cwd_from)
File "…/Vcs/kitty/kitty/session.py", line 127, in create_session
if args.hold:
2018-06-23 02:57:47 +02:00
Kovid Goyal
66a52ac588
Also ignore failure to read readline history in the ask kitten
2018-06-22 17:23:55 +05:30
Kovid Goyal
32f22e0ada
kitty shell: Ignore failure to read readline history file
2018-06-22 17:23:01 +05:30
Kovid Goyal
c037f53534
...
2018-06-22 15:35:24 +05:30
Kovid Goyal
aba84581f5
When running kitty from within kitty, use a full path
...
Fixes inability to run kitty from the shell when the users shell scripts
reset PATH. See #668
2018-06-22 15:33:07 +05:30
Kovid Goyal
82f6fbff77
Add a --hold command line option to stay open after the child process exits
...
Fixes #667
2018-06-22 13:52:03 +05:30
Kovid Goyal
d16215ab6e
Initialize glfw for --debug-config as well
2018-06-22 13:30:03 +05:30
Kovid Goyal
45b0233f60
Update GLFW from upstream
...
Use the new init hint for keyboard debugging
2018-06-22 13:26:41 +05:30
Kovid Goyal
1ce4366972
...
2018-06-22 12:44:08 +05:30
Kovid Goyal
c8fc21d336
Linux: Allow using XKB key names to bind shortcuts to keys not supported by GLFW
...
Useful to bind keys such as the play/pause or volume buttons. Also can
be used to bind non-ascii keys on international keyboards. Fixes #665
2018-06-22 12:41:50 +05:30
Kovid Goyal
5dd3243674
Update glfw from upstream
2018-06-22 10:21:51 +05:30
Kovid Goyal
815dd99f7c
Keep the Debian PC police happy
...
Fixes #661
2018-06-21 13:12:45 +05:30
Kovid Goyal
bf0dcb1d2e
Update version of glad used to generate OpenGL wrapper
...
Also fix #654
2018-06-20 12:43:26 +05:30
Kovid Goyal
031fc10859
Merge branch 'title-command-line-parameter' of https://github.com/lamby/kitty
2018-06-19 13:48:55 +05:30
Chris Lamb
a644e4c31e
Support "-T" as an alias for "--title".
...
Thank you for developing Kitty.
Currently kitty is not available on the list of "alternatives" for a
terminal emulator on Debian GNU/Linux and derivatives. This is because
Debian Policy states that packages that provide a terminal emulator must
provide, inter alia, support the command-line option -T title, which
creates a new terminal window with the specified window title [0].
This PR therefore adds -T as an alias for --title, thus bringing kitty into
compliance and allowing cleaner integration into the Debian desktop.
This issue was originally filed as #900704 .
[0] https://www.debian.org/doc/debian-policy/#packages-providing-a-terminal-emulator
[1] https://bugs.debian.org/900704
Signed-off-by: Chris Lamb <lamby@debian.org >
2018-06-19 10:10:43 +02:00
Kovid Goyal
0398dbdcbe
Fix extra blank lines when using log_error()
2018-06-19 12:51:54 +05:30
Kovid Goyal
84b2fbba28
--debug-font-fallback also prints out what basic fonts were matched
...
Fixes #656
2018-06-19 12:48:33 +05:30
Kovid Goyal
491f233d33
diff kitten: When triggering a search scroll to the first match automatically
2018-06-19 10:30:52 +05:30
Kovid Goyal
5e38af6d24
When closing a kitty window reset the mouse cursor to its default shape and ensure it is visible. Fixes #655
2018-06-19 10:19:17 +05:30
Kovid Goyal
4c0f68150a
Merge branch 'master' of https://github.com/Luflosi/kitty
2018-06-18 18:41:12 +05:30
Luflosi
3f25f70783
Ignore .DS_Store
2018-06-18 14:39:12 +02:00
Kovid Goyal
d7007f77aa
DRYer
2018-06-18 12:18:04 +05:30
Kovid Goyal
94273941ad
...
2018-06-18 12:10:42 +05:30
Kovid Goyal
c09542ea6a
Speed up reading of command responses
2018-06-18 11:42:32 +05:30
Kovid Goyal
c5583d380d
No need to use select() for TTYIO
...
Instead make read() block with timeout via termios
2018-06-18 11:10:16 +05:30
Kovid Goyal
f820f72768
Add a kitty @ get-colors command
2018-06-18 10:02:05 +05:30
Kovid Goyal
6db1f8e3e3
Dont read more data than needed in TTYIO
2018-06-18 08:36:47 +05:30
Kovid Goyal
2aba3e249c
Linux installer: Workaround for bug in 3.0 <= python <= 3.5
2018-06-18 07:21:44 +05:30
Kovid Goyal
f66db65974
version 0.11.1
2018-06-17 10:57:55 +05:30
Kovid Goyal
5b6038db35
Dont include a literal dump of the conf files
...
Since all the config options are documented separately on the page in
any case, there is not much need for it. And now that the conf files are
downloadable, it is probably nicer to just view/edit them directly in
the users favorite pager/editor rather than the browser.
2018-06-16 22:31:21 +05:30
Kovid Goyal
9a365b0968
Merge branch 'docs' of https://github.com/blueyed/kitty
2018-06-16 22:26:45 +05:30
Daniel Hahler
8a0cd73821
docs: improve generation of default config files
...
- config files are placed into `docs/generated/conf/`, using the
expected name, and without any indentation
- `literalinclude::` is used instead of `include::`
- uses `:download:` instead of `:file:` to allow for downloading the
generated files easily
2018-06-16 18:35:58 +02:00
Kovid Goyal
49b065cbe7
Use conf_dir instead of cwd as base for session file
2018-06-16 10:22:46 +05:30
Kovid Goyal
77f651cb5d
Expand env vars for the start_session config variable
2018-06-16 10:18:48 +05:30
Kovid Goyal
fedde51c12
...
2018-06-16 10:16:06 +05:30
Kovid Goyal
f710d6906e
Add a linkcheck target to check links in the docs
2018-06-16 09:27:39 +05:30
Kovid Goyal
c9a751360e
Update CHANGELOG
2018-06-16 09:25:00 +05:30
Kovid Goyal
ad97315925
diff kitten: Misc fixes to msg display in the status line
2018-06-16 08:57:02 +05:30
Kovid Goyal
e8f7a2b345
Dont send on_text events with empty text
2018-06-16 08:55:10 +05:30
Kovid Goyal
5bc8d05f0a
...
2018-06-16 08:49:08 +05:30
Kovid Goyal
3669d4135c
diff kitten: Add keybindings to search without regex
2018-06-16 08:45:42 +05:30
Kovid Goyal
73b870bb87
...
2018-06-16 08:41:19 +05:30
Kovid Goyal
6b4217c12a
Use a single build script on Travis
...
Allows the build to fail faster if any of the intermediate steps fails
2018-06-16 08:33:07 +05:30
Kovid Goyal
8b4fe494cf
Format matches count the same as scroll percent
2018-06-16 08:24:32 +05:30
Kovid Goyal
35041e7709
Fix docs links
2018-06-16 08:19:33 +05:30
Kovid Goyal
12cbcf1c17
Add an option to kitty.conf to specify a default startup session
...
Fixes #641
2018-06-16 08:14:11 +05:30
Kovid Goyal
26f50a451e
Add a section on configuration to the main page in the docs
2018-06-16 07:45:24 +05:30
Kovid Goyal
11f3d7e215
...
2018-06-15 17:53:04 +05:30
Kovid Goyal
a7d533cfe5
Increase contrast of link color with text color in docs
2018-06-15 15:38:30 +05:30
Kovid Goyal
52ec4dc21b
Allow cross-linking to @ command documentation
2018-06-15 15:31:05 +05:30
Kovid Goyal
6f7ea49008
Switch to high number OSC codes instead of DCS string codes for dynamic color push/pop
2018-06-15 15:21:46 +05:30
Kovid Goyal
84b99b1b3d
diff kitten: Clear the search when pressing Esc
2018-06-15 15:00:09 +05:30
Kovid Goyal
1022d8a0ee
diff kitten: Show the number of matches in the status bar when doing a search
2018-06-15 14:57:03 +05:30
Kovid Goyal
cd6a46730a
...
2018-06-15 14:48:59 +05:30
Kovid Goyal
59743fd7a1
diff kitten: Allow theming the selection background/foreground as well
2018-06-15 14:43:39 +05:30
Kovid Goyal
07bd371e21
Re-org diff kitten docs
...
Move the auto-generated bits to the end
2018-06-15 14:31:13 +05:30
Kovid Goyal
fe3b10a8fb
diff kitten: Implement searching for text in the diff
...
Fixes #574
2018-06-15 14:28:42 +05:30
Kovid Goyal
c994bc1d89
Add more clarification about kitty's performance goals
2018-06-15 13:51:49 +05:30
Kovid Goyal
22cffef7c8
diff kitten: Use a single-width replacement for control chars
...
Preserves text width better, and conveys the essential message, namely
non-printable characters. Most people wont know what <hex code> is in
any case.
2018-06-15 08:08:21 +05:30
Kovid Goyal
5dfb8b1d80
diff kitten: Display CRLF line endings using the unicode return symbol instead of <d> as it is less intrusive.
...
Fixes #638
2018-06-15 07:08:57 +05:30
Kovid Goyal
82f9f002bd
diff kitten: Fix default foreground/background colors not being restored when kitten quits. Fixes #637
2018-06-14 23:25:13 +05:30
Kovid Goyal
9f51506422
...
2018-06-14 22:07:34 +05:30
Kovid Goyal
2a8295d71c
diff kitten: Better error message when one of the arguments does not exist
2018-06-14 21:53:13 +05:30
Kovid Goyal
7214b66aa5
A new tui API for simple line editing
...
Handles basic line-editing with the extended keyboard protocol and
support for wide chars.
Currently used by the unicode input kitten.
2018-06-14 13:11:48 +05:30
Kovid Goyal
a7d9c63a4e
wcwidth() for not assigned code points should be -4
...
That way, wcswidth() computes their width as 1, which matches how they
are rendered
2018-06-14 10:27:42 +05:30
Kovid Goyal
61dd52b50f
Ignore the non-characters from the unicode standard in addition to ignoring the control characters
2018-06-14 10:20:13 +05:30
Kovid Goyal
a157f3c5e3
Fix kitty @ set-colors --all not working when more than one window present
...
Fixes #632
2018-06-13 14:21:55 +05:30
Kovid Goyal
fc02246373
...
2018-06-13 07:46:11 +05:30
Kovid Goyal
adb8a4676c
Fix a regression that broke the legacy increase/decrease_font_size actions
2018-06-13 07:42:12 +05:30
Kovid Goyal
f78d05a57f
Clear scrollback on reset
...
Fixes #631
2018-06-13 07:20:19 +05:30
Kovid Goyal
301d34fecf
Ignore errors in talk socket shutdown
...
macOS apparently shuts down the socket before shutdown can be called.
2018-06-12 21:15:43 +05:30
Kovid Goyal
0848816644
...
2018-06-12 21:03:02 +05:30
Kovid Goyal
ba7f0132f2
Add a command line option to make --single-instance wait for the closing of the newly opened window before quitting. Fixes #630
2018-06-12 20:53:25 +05:30
Kovid Goyal
561fe81d00
Use base instead of cwd when checking for docs
2018-06-12 09:24:36 +05:30
Kovid Goyal
2db83ecf1e
Run make docs for linux-package only if docs are not found
2018-06-12 09:20:18 +05:30
Kovid Goyal
1b8c6b23e1
Dont run make docs to build linux-package
...
The pre-built docs are now included in the official kitty source code
release. This means that building linux-package does not require
sphinx anymore.
2018-06-12 09:15:43 +05:30
Kovid Goyal
b6622b9458
Fix paths to built bundles
2018-06-12 08:53:22 +05:30
Kovid Goyal
d79e943844
Dont build docs when freezing
2018-06-12 08:41:38 +05:30
Kovid Goyal
105959d91b
version 0.11.0
2018-06-12 08:36:19 +05:30
Kovid Goyal
ea414945f2
DRYer
2018-06-11 17:52:00 +05:30
Kovid Goyal
4acc692a94
Fix #627
2018-06-11 13:59:40 +05:30
Kovid Goyal
05c475e6ca
Update glfw from upstream
2018-06-11 13:08:21 +05:30
Kovid Goyal
c04e1aedb2
Use basenames for default window title
2018-06-11 12:39:13 +05:30
Kovid Goyal
4711746f8f
Linux: When using layouts that map the keys to non-ascii characters, map shortcuts using the ascii equivalents, from the default layout.
...
Fixes #606
2018-06-11 12:21:35 +05:30
Kovid Goyal
7a7262923b
Fix a regression in 0.10 that caused incorrect rendering of the status bar in irssi when used inside screen.
...
Fixes #621 . The cursor in margin check was incorrect causing upwards
movement of the cursor when below the bottom margin to be incorrect.
2018-06-11 10:13:21 +05:30
Kovid Goyal
cde60b19e8
Automatically build docs when running linux-pacakge
...
Fixes #622
2018-06-11 09:57:56 +05:30
Kovid Goyal
59430c1c14
Add missing screen_delete_lines to client
2018-06-11 09:12:30 +05:30
Kovid Goyal
e55cae6192
Fix kitty @ set-colors not working with the window border colors
...
Fixes #623
2018-06-11 09:03:24 +05:30
Kovid Goyal
ed71e73ca5
Merge branch 'master' of https://github.com/dcolascione/kitty
2018-06-11 07:18:14 +05:30
Kovid Goyal
9ffd0111cc
Merge branch 'autodpi-x11' of https://github.com/dcolascione/kitty
2018-06-11 07:16:36 +05:30
Kovid Goyal
93b1919a38
Update glfw from upstream, to allow kitty to react to Xft.dpi changes
2018-06-11 07:12:06 +05:30
Daniel Colascione
535606fadb
A DPI change is signaled by either a viewport _or_ a scaling factor change
...
Before this change, kitty considered only changes in viewport size to
signal DPI, and on non-macOS platforms, it's the scaling factor, not
the viewport size, that changes when DPI changes.
2018-06-10 18:31:44 -07:00
Kovid Goyal
7cf7d94bba
Add a make docs Makefile target
...
Fixes #622
2018-06-11 06:31:23 +05:30
Daniel Colascione
136a718453
Avoid spurious selection
...
If we've previously reset the selection to EMPTY_SELECTION (say,
because we were marked dirty), the selection ends up being 0/0, so if
we click some random place, we suddenly get a non-empty selection
region and highlight random stuff even though all the user did was
left-click once somewhere.
2018-06-10 12:01:18 -07:00
Kovid Goyal
5f6c4c0f6c
...
2018-06-10 06:36:23 +05:30
Kovid Goyal
ddfe7797e5
Fix #620
2018-06-09 23:21:00 +05:30
Kovid Goyal
fc74d22724
Nicer error message when specifying a non-existent kitten
2018-06-09 13:49:33 +05:30
Kovid Goyal
ca41e642fb
Nicer error message when no kitten name is specified
2018-06-09 13:47:49 +05:30
Kovid Goyal
83849ab07a
Document the clipboard kitten
2018-06-09 13:32:32 +05:30
Kovid Goyal
02ac2336bd
DRYer
2018-06-09 12:47:52 +05:30
Kovid Goyal
c094ebce07
Set VMIN to 1 as without it poll() returns immediately even when no data is available to read on macOS
2018-06-09 11:17:12 +05:30
Kovid Goyal
65ed9c759c
...
2018-06-09 11:10:58 +05:30
Kovid Goyal
83fe2438f9
Forgot to port the exception handler loop
2018-06-09 11:08:25 +05:30
Kovid Goyal
caa20aa081
Use the new tty code in tui as well
2018-06-09 09:06:48 +05:30
Kovid Goyal
fd598df1c6
Add a one-time support option
2018-06-08 22:17:07 +05:30
Kovid Goyal
0cc008e737
Use TTYIO for the icat kitten as well
2018-06-08 20:21:05 +05:30
Kovid Goyal
5dbaf9aab0
Clean up usage of TTYIO for remote cmds and the shell
2018-06-08 20:17:27 +05:30
Kovid Goyal
71c1432892
Update glfw from upstream
2018-06-08 18:02:44 +05:30
Kovid Goyal
59ab22c0c8
Merge branch 'master' of https://github.com/dcolascione/kitty
2018-06-08 17:53:08 +05:30
Daniel Colascione
668f6fa257
More robustly strip bracketed paste termination sequence
...
The previous code performed only one replacement on the bracketed
paste content. This procedure didn't stop someone embedding the
terminating sequence anyway. POC:
1) $ x=$'\033[201~'; printf '%s%s%s\necho hello world\n' "${x:0:1}" "$x" "${x:1}" | xclip
2) paste into kitty
3) see the shell execute a command!
This patch closes this hole.
2018-06-08 04:53:02 -07:00
Kovid Goyal
5701ec4082
Remove duplicate import
2018-06-08 15:42:42 +05:30
Kovid Goyal
04afe969a0
Fix building on macOS with termios.h
2018-06-08 15:41:40 +05:30
Kovid Goyal
19721014d0
Remote control: Fix kitty @ sometimes failing to read the response from kitty.
...
Fixes #614
2018-06-08 15:35:01 +05:30
Kovid Goyal
44b84ba295
Update glfw from upstream
2018-06-08 14:27:30 +05:30
Kovid Goyal
f80f61f84f
...
2018-06-08 12:54:38 +05:30
Kovid Goyal
6247270011
Build the docs on Travis
2018-06-08 12:03:51 +05:30
Kovid Goyal
68394cebe3
Linux: Include a man page and the HTML docs when building the linux-package
2018-06-08 11:06:41 +05:30
Kovid Goyal
a386277df9
Release a source tarball that contains pre-built docs
2018-06-08 10:36:33 +05:30
Kovid Goyal
f88b98ccd9
Generate a simple man page with the output of kitty --help
2018-06-08 10:13:15 +05:30
Kovid Goyal
eecf80469e
Update glfw from upstream
...
Adds glfwpostemptyevent not working fix to wayland backend as well
2018-06-08 09:14:14 +05:30
Kovid Goyal
66dd83027d
Use pipe2() on non-Apple platforms
2018-06-08 08:15:12 +05:30
Kovid Goyal
a1355484a6
Use the process name as the default window title rather than "kitty"
...
Fixes #610
2018-06-07 23:23:10 +05:30
Kovid Goyal
ca17e9b02c
...
2018-06-07 22:23:15 +05:30
Kovid Goyal
dd085a9297
Update glfw from upstream
...
Fixes https://github.com/glfw/glfw/issues/1281
2018-06-07 21:46:01 +05:30
Kovid Goyal
6c72c93b02
Fix inactive_text_alpha also applying to the tab bar
...
Fixes #612
2018-06-07 20:19:29 +05:30
Kovid Goyal
223fe85449
Mention the kitty website in kitty --help
2018-06-07 18:22:39 +05:30
Kovid Goyal
365c992f80
Fix only one the two fds created by self_pipe having CLOEXEC and NONBLOCK set
2018-06-07 15:48:50 +05:30
Kovid Goyal
1dd489cf0c
Add --chop-long-lines to the less invocation as it ensures line numbers are correct even if the scrollback window is narrower
2018-06-07 13:29:31 +05:30
Kovid Goyal
ed0239a556
When viewing the scrollback in less and kitty is currently scrolled, position the scrollback in less to match kitty's scroll position.
...
Fixes #148
2018-06-07 13:25:37 +05:30
Kovid Goyal
dbb94fc1ff
Fix wrap markers not being added when getting the history buf as text
2018-06-07 13:12:15 +05:30
Kovid Goyal
b9dd434fab
Add an option to control quit on last window behavior
2018-06-07 08:03:47 +05:30
Kovid Goyal
23d089b4be
macOS: Add macOS standard shortcuts
...
For copy, paste and new OS window (⌘+C, ⌘+V, ⌘+N)
Only defined on macOS, not Linux, thanks to the new config
infrastructure.
2018-06-07 07:54:21 +05:30
Kovid Goyal
faa5443d43
macOS: When clicking dock icon with no windows, create a new window
2018-06-07 07:19:39 +05:30
Kovid Goyal
1afa91bbb4
macOS: Keep kitty running when the last window is closed
...
This is how applications are supposed to behave on macOS. Fixes #543
2018-06-07 06:19:36 +05:30
Kovid Goyal
908823166e
NULL check
2018-06-07 05:52:55 +05:30
Kovid Goyal
6845dd115e
Add a config option to hide window decorations under X11/Wayland
...
Fixes #607
2018-06-07 05:48:51 +05:30
Kovid Goyal
ad44e1a515
macOS: Fix crash when triggering some global menu actions with the mouse
2018-06-06 22:53:07 +05:30
Kovid Goyal
2e8d19601b
macOS: Fix the new OS window keyboard shortcut not working if no kitty window currently has focus.
...
Fixes #524
2018-06-06 22:18:33 +05:30
Kovid Goyal
f259c23695
Use the binary install instructions on the front-page
...
Testing has revealed no problems with the binary installer, so
make it live. Fixes #595
2018-06-06 17:19:05 +05:30
Kovid Goyal
f75957d8c0
...
2018-06-06 13:31:29 +05:30
Kovid Goyal
53ae5a4f8d
A new tab bar style
2018-06-06 13:27:15 +05:30
Kovid Goyal
c76a8242e2
Make the icat kitten work even if stdout/stdin are redirected
2018-06-06 12:04:10 +05:30
Kovid Goyal
8a1a45b067
Allow the diff kitten to work even if stdout/stdin are redirected
...
Now directly opens /dev/tty
2018-06-06 12:01:47 +05:30
Kovid Goyal
8f433f5ff6
...
2018-06-06 11:27:03 +05:30
Kovid Goyal
97c317b735
Make screen_size handling in tui cleaner
...
Now screen size is fetched only for output_fd rather than sys.stdout
2018-06-06 11:20:55 +05:30
Kovid Goyal
c8e9199b03
Refactor tab drawing code
2018-06-06 09:17:31 +05:30
Kovid Goyal
351e1a5a15
Tabulate consecutive maps
2018-06-05 14:06:57 +05:30
Kovid Goyal
7b1449ba46
Include sample conf files
2018-06-05 13:57:51 +05:30
Kovid Goyal
3983953e72
Indented blocks should also be doc-commented
2018-06-05 13:54:39 +05:30
Kovid Goyal
84ad0604f4
Wrap generated conf file
2018-06-05 13:22:09 +05:30
Kovid Goyal
c509c5eb0d
Add custom syntax highlighting for conf and session files
2018-06-05 12:37:04 +05:30
Kovid Goyal
d39cf5d702
Get rid of the default diff.conf
2018-06-05 10:44:18 +05:30
Kovid Goyal
2b0d8bfe46
Get rid of the default kitty.conf
2018-06-05 09:17:31 +05:30
Kovid Goyal
61fc96b187
...
2018-06-05 08:48:37 +05:30
Kovid Goyal
070e95b5e1
Make sphinx warnings fatal
2018-06-05 08:47:34 +05:30
Kovid Goyal
727028280a
...
2018-06-05 08:46:40 +05:30
Kovid Goyal
ea4a7136f0
Get rid of the |kitty.conf| substitution
2018-06-05 08:44:51 +05:30
Kovid Goyal
065a2b37c7
Get rid of the |sc_| substitution rules
2018-06-05 08:13:28 +05:30
Kovid Goyal
b5e452942e
Port changes from master
2018-06-05 07:56:41 +05:30
Kovid Goyal
4fa8cb562a
Finish adding shortcuts to docs
2018-06-05 07:52:31 +05:30
Kovid Goyal
429efd70ff
More conf docs
2018-06-05 07:52:31 +05:30
Kovid Goyal
4c636fdeca
More conf docs
2018-06-05 07:52:31 +05:30
Kovid Goyal
1168687923
More conf docs
2018-06-05 07:52:30 +05:30
Kovid Goyal
db32079bd8
More conf docs
2018-06-05 07:52:30 +05:30
Kovid Goyal
e7246fd024
Implement shortcuts in the RST docs
2018-06-05 07:52:30 +05:30
Kovid Goyal
1c93e2a94e
Show full tracebacks on sphinx failure
2018-06-05 07:52:30 +05:30
Kovid Goyal
e8bd6f4493
Initial stab at adding shortcuts to the docs
2018-06-05 07:52:30 +05:30
Kovid Goyal
cd36e3b314
oops
2018-06-05 07:52:30 +05:30
Kovid Goyal
ad29d7f639
...
2018-06-05 07:52:30 +05:30
Kovid Goyal
b98fca972f
More conf docs
...
Add a 🔗 role that works nicely in both contexts
2018-06-05 07:52:29 +05:30
Kovid Goyal
c63c3d2844
More conf docs
2018-06-05 07:52:29 +05:30
Kovid Goyal
6c1434ab8a
More conf docs
...
Also dont parse option values unnecessarily
2018-06-05 07:52:29 +05:30
Kovid Goyal
b6d33e2019
More conf docs
2018-06-05 07:52:29 +05:30
Kovid Goyal
97bd8b127f
More conf docs
2018-06-05 07:52:29 +05:30
Kovid Goyal
2be45eeca3
More conf docs
2018-06-05 07:52:29 +05:30
Kovid Goyal
485fe0a7fb
Allow linking to latter options in a option group
2018-06-05 07:52:29 +05:30
Kovid Goyal
0070e0a58a
More conf docs
2018-06-05 07:52:29 +05:30
Kovid Goyal
f7fe59dfbe
Allow multiple conf files to be processed for cross-references
2018-06-05 07:52:28 +05:30
Kovid Goyal
fd731feacc
Warn about missing opt references
2018-06-05 07:52:28 +05:30
Kovid Goyal
61194ef1c8
Use a custom sphinx role for the conf file
2018-06-05 07:52:28 +05:30
Kovid Goyal
dadbaf9ab1
More conf docs
2018-06-05 07:52:28 +05:30
Kovid Goyal
ffdb91ffd5
More work on the conf docs
2018-06-05 07:52:28 +05:30
Kovid Goyal
2ae3157d49
Simplify by using the option definition as a title
2018-06-05 07:52:28 +05:30
Kovid Goyal
1c2c98c1a4
More conf docs
2018-06-05 07:52:28 +05:30
Kovid Goyal
8d446d15e8
Add vim header to generated conf file
2018-06-05 07:52:28 +05:30
Kovid Goyal
faddcd34d2
More conf docs
2018-06-05 07:52:27 +05:30
Kovid Goyal
8c7e618324
Implement referring to config options
2018-06-05 07:52:27 +05:30
Kovid Goyal
cdb1fc8602
More work on conf docs
2018-06-05 07:52:27 +05:30
Kovid Goyal
9dc9fb2012
Start work on documenting the conf file
2018-06-05 07:52:27 +05:30
Kovid Goyal
3ce9e1932c
Merge branch 'master' of https://github.com/ricci/kitty
2018-06-05 07:41:57 +05:30
Robert Ricci
da6ad5df45
Switch to generic hash instead of sha1 specifically
...
Suggested by @maximbaz
2018-06-04 15:43:03 -06:00
Robert Ricci
a9f394ce18
Fix stray text
2018-06-04 14:28:35 -06:00
Robert Ricci
093921cb9a
Add support for sha1 hashes to the hint kitten
...
This is specifically intended for git commit hashes, so it allows for
hashes as short as 7 characters (git's default length for abbreviated
hashes) up to the full 40 characters
2018-06-04 14:25:38 -06:00
Kovid Goyal
c9818e7bb1
...
2018-06-04 15:14:16 +05:30
Kovid Goyal
c8bf7763b6
Merge branch 'foldmethod' of https://github.com/gibfahn/kitty
2018-06-03 23:01:06 +05:30
Gibson Fahnestock
00446fa2c4
Set foldmethod in kitty.conf
...
As this is copied to other people's computers, it's useful to have this
set so folding always works nicely.
2018-06-03 13:36:37 +01:00
Kovid Goyal
7cf6b8b594
Move the config utils into its own package
2018-06-03 11:54:26 +05:30
Kovid Goyal
088766da72
Build the logo on Travis before running osx-bundle
2018-06-03 09:58:58 +05:30
Kovid Goyal
1c1b04b1d9
Build osx-bundle not linux-package on Travis on macOS
2018-06-03 09:41:02 +05:30
Kovid Goyal
29734563b4
Fix typo in threading.h introduced by FreeBSD commits
2018-06-03 09:29:33 +05:30
Kovid Goyal
b6e330e3e7
Remove trailing whitespace from more files
2018-06-03 09:24:15 +05:30
Kovid Goyal
138b4cf5da
Fix build breakage caused by FreeBSD support
...
Also move the changes to the glfw files to glfw.py
2018-06-03 09:17:18 +05:30
Kovid Goyal
92e86a3b28
Merge branch 'master' of https://github.com/ricci/kitty into t
2018-06-03 08:58:37 +05:30
Robert Ricci
dc48e6c432
Clean up nested ifdefs
2018-06-02 12:48:38 -06:00
Robert Ricci
80da4d1344
Handle pthread_setname_np on FreeBSD
...
For some reason, the function has a slightly different name and
signature
2018-06-02 12:05:49 -06:00
Robert Ricci
e7ad2637d8
Don't 'hardcode' linux joystick for x11 module
...
The correct joystick module appears to be inserted in the list in
glfw.py . This fixes the build on FreeBSD 11
2018-06-02 11:46:10 -06:00
Robert Ricci
8e84b21452
Re-order includes for "_POSIX_C_SOURCE"
...
One FreeBSD, the build was getting errors about _POSIX_C_SOURCE
being redefined. The fix for this is to make sure that Python.h
gets included before any system libraries.
2018-06-02 11:26:02 -06:00
Kovid Goyal
5674dc5bfc
...
2018-06-02 20:24:37 +05:30
Kovid Goyal
1b9c5522fb
Move tab bar into its own module
2018-06-02 20:22:27 +05:30
Kovid Goyal
71bdf73884
...
2018-06-02 15:13:15 +05:30
Kovid Goyal
8d04216c2b
Update CHANGELOG
2018-06-02 15:04:45 +05:30
Kovid Goyal
620782aa80
Document the icat kitten
2018-06-02 14:45:46 +05:30
Kovid Goyal
bd9a4e9cd8
Dont hardcode the ssh options
2018-06-02 14:30:05 +05:30
Kovid Goyal
af6ff15ee2
Wayland: Fix wheel/touchpad scrolling in opposite direction
...
Workaround for glfw bug. Fixes #594
2018-06-02 13:25:33 +05:30
Kovid Goyal
bb8e0e7789
Add CLI docs for the diff kitten
2018-06-02 13:09:18 +05:30
Kovid Goyal
4448d2dc7f
...
2018-06-02 13:06:49 +05:30
Kovid Goyal
7236e0ff21
Add CLI docs for the hints kitten
2018-06-02 13:04:25 +05:30
Kovid Goyal
9a615efa83
Document CLI of panel kitten
2018-06-02 12:24:21 +05:30
Kovid Goyal
f857b1afd3
Add a --debug-keyboard command line option
...
It's a little more discoverable than the env var.
2018-06-02 12:08:13 +05:30
Kovid Goyal
5cd9af6c37
...
2018-06-02 11:29:07 +05:30
Kovid Goyal
ec0edd6f45
A new kitten to draw dock panels on X11 desktops showing the output from running arbitrary terminal programs
2018-06-02 11:27:01 +05:30
Kovid Goyal
0f82f90968
...
2018-06-02 09:29:53 +05:30
Kovid Goyal
06237b85f5
Only add to server_args unconditionally if two non-option args have been seen
2018-06-01 22:55:13 +05:30
Kovid Goyal
d319180e88
...
2018-06-01 22:48:19 +05:30
Kovid Goyal
d8f5dc958d
ssh kitten: Handle combined single character options
2018-06-01 22:47:07 +05:30
Kovid Goyal
5b31b237e3
...
2018-06-01 21:44:28 +05:30
Kovid Goyal
e211589f9f
Binary install instructions
2018-06-01 21:42:49 +05:30
Kovid Goyal
cd80a85d2d
ssh kitten: Dont transfer terminfo if any of the -Nnf arguments are passed to ssh
2018-06-01 20:33:57 +05:30
Kovid Goyal
b752d1ca48
Publish installer.sh
2018-06-01 20:04:15 +05:30
Kovid Goyal
091e74d618
Run the linux bundle on Travis
2018-06-01 19:22:08 +05:30
Kovid Goyal
35fb8ea1bf
Linux installer
2018-06-01 14:56:05 +05:30
Kovid Goyal
b6c8b4f124
Add an INSTALL file that points to the building from source instructions
2018-06-01 14:49:26 +05:30
Kovid Goyal
9ed703384f
Add some command line options to the installer
2018-06-01 11:18:29 +05:30
Kovid Goyal
e259fc5250
macOS installer implemented
2018-06-01 11:04:16 +05:30
Kovid Goyal
8b08182555
Start work on an installer
2018-06-01 10:31:52 +05:30
Kovid Goyal
4e6d929e20
Update glfw from upstream
2018-06-01 09:15:35 +05:30
Kovid Goyal
0d7feb0404
ssh kitten: Allow specifying args to pass to ssh
...
Uses the same syntax as the ssh command. Note that currently specifying
-N -f or similar will not work (it does not make sense anyway as you
only use this kitten if you plan on an interactive ssh session).
Fixes #591
2018-06-01 07:42:25 +05:30
Kovid Goyal
1dc9adebb4
Add an option to @set-window-title to make the change overridable
2018-06-01 06:49:47 +05:30
Kovid Goyal
d89861f601
Code to support the linux bundle
2018-05-31 23:02:38 +05:30
Kovid Goyal
0354e5b669
Add a PNG load test that does not depend on PIL
2018-05-31 20:15:23 +05:30
Kovid Goyal
98ec3fe18f
Documentation work
2018-05-31 16:15:43 +05:30
Kovid Goyal
e12f5209fb
Dont install libunistring on travis
...
No longer needed
2018-05-31 13:43:36 +05:30
Kovid Goyal
77d149518c
Documentation work
2018-05-31 08:40:32 +05:30
Kovid Goyal
087f13f293
Documentation work
2018-05-31 08:30:01 +05:30
Kovid Goyal
8d8224812d
Use modern GA loading code
2018-05-30 20:28:48 +05:30
Kovid Goyal
489ed6a915
Improve presentation of screenshots
2018-05-30 20:04:49 +05:30
Kovid Goyal
98bcbf8150
Partition dependency list
2018-05-30 19:45:14 +05:30
Kovid Goyal
1fe81872c6
Add the build badge to the build from source page
2018-05-30 19:43:02 +05:30
Kovid Goyal
fb0db2b7df
Document kitty @
2018-05-30 19:35:54 +05:30
Kovid Goyal
28803d9a5a
Use rst roles to format cli help text
2018-05-30 19:07:12 +05:30
Kovid Goyal
fba37e73e7
...
2018-05-30 17:52:55 +05:30
Kovid Goyal
f8fa76d77e
Use program directives to namespace options
2018-05-30 15:32:50 +05:30
Kovid Goyal
a3e4c74f5d
Add command line API reference
2018-05-30 15:14:07 +05:30
Kovid Goyal
0667027506
...
2018-05-30 13:45:27 +05:30
Kovid Goyal
0c5c6fcbbe
Make the sidebar a little nicer
2018-05-30 13:43:48 +05:30
Kovid Goyal
bf8dfa5ee3
Add a link to the kittens on the front page
2018-05-30 13:11:26 +05:30
Kovid Goyal
f6d0cadcc5
Redirect old asciidoc pages to new website
2018-05-30 12:52:59 +05:30
Kovid Goyal
611d95f0f7
Add the CHANGELOG to the docs
2018-05-30 12:46:00 +05:30
Kovid Goyal
bbc1430420
Add a support page
...
Also fix a few links flagged by make linkcheck
2018-05-30 12:08:20 +05:30
Kovid Goyal
61f7ce4dee
Dont use emoji for search as it does not render well in Chrome
2018-05-30 10:42:25 +05:30
Kovid Goyal
e4163fca6a
Add website publish code
2018-05-30 10:41:37 +05:30
Kovid Goyal
21d7cc1a60
Configure the alabaster theme a bit
...
And remove duplicated FAQ from README
2018-05-30 09:44:53 +05:30
Kovid Goyal
f82b7841c6
Start work on a kitty website
...
Port the current asciidoc documentation to sphinx
2018-05-29 21:03:50 +05:30
Kovid Goyal
edda0d91bb
...
2018-05-29 08:22:14 +05:30
Kovid Goyal
c70200ada0
...
2018-05-29 08:20:11 +05:30
Kovid Goyal
adccc8fea4
When closing a tab switch to the last active tab instead of the rightmost tab. Fixes #585
2018-05-29 08:06:33 +05:30
Kovid Goyal
b886b4c6b2
Ensure font data is free'd before other finalizers
...
Fixes #583
2018-05-29 07:18:07 +05:30
Kovid Goyal
9eb113802d
Add a setting to control the margins to the left and right of the tab bar
...
Fixes #584
2018-05-28 21:59:45 +05:30
Kovid Goyal
dab57f3819
When receiving contiguous non-empty OSC 52 clipboard writes, combine them.
...
Max combined text is set at 1MB. Allows sending texts larger than the
escape code size limit.
2018-05-28 21:50:42 +05:30
Kovid Goyal
88d0499818
If non-base64 encoded data sent via OSC 52 clear the clipboard as suggested by xterm docs
2018-05-28 21:26:59 +05:30
Kovid Goyal
51706ed195
Fix inverted permission check for write-clipboard
2018-05-28 21:18:39 +05:30
Kovid Goyal
7332561d8e
Add in the redundant ctrl+<234578`> key combinations in normal and application mode. They all conflict with other keys but by implementing them the same as other terminals, I can at least avoid having to explain how they Ctrl+number is broken in traditional terminals over and over again.
2018-05-28 20:37:48 +05:30
Kovid Goyal
daafea7f7e
Don't add a newline at the end of the size output
2018-05-28 14:19:12 +05:30
Kovid Goyal
5f7bc8bff2
Opening for reading is sufficient
2018-05-28 14:11:10 +05:30
Kovid Goyal
8809b8db56
Make --print-screen-size work when stdout is redirected
2018-05-28 14:09:52 +05:30
Kovid Goyal
686a5f7baf
Update some missing shortcut definitions
2018-05-28 14:03:28 +05:30
Kovid Goyal
020b6b582d
...
2018-05-28 14:00:04 +05:30
Kovid Goyal
64ed8daf59
Add clipboard shortcuts to the readme
2018-05-28 13:58:57 +05:30
Kovid Goyal
dd20789249
Add support for the CSI t escape code to query window and cell sizes
2018-05-28 13:47:42 +05:30
Kovid Goyal
6570565e2d
Rename --print-screen-size to --print-window-size
...
We are reporting the size (inner area) of the terminal window, not the
full screen.
2018-05-28 13:14:42 +05:30
Kovid Goyal
345b3437f4
Add a config option to set the EDITOR kitty uses
...
Useful on systems that make it hard to set system-wide environment
variables. See #580
2018-05-28 12:24:09 +05:30
Kovid Goyal
20611c7c15
Add a convenience option to kitty icat to print the screen size
2018-05-28 10:11:19 +05:30
Kovid Goyal
8dea5b3e3e
Reduce data sent to GPU per draw by 30%
...
Split up the Cell structure into a CPUCell and a GPUCell. Only the
GPUCell part needs to be sent to the GPU. Should make kitty use even
less system resources and make a performance difference on systems where
the GPU bandwidth is constrained.
Also allows adding more CPU only data in the future without affecting
GPU bandwidth. For example, hyperlinks or more combining characters.
2018-05-27 21:25:09 +05:30
Kovid Goyal
c8756612f7
...
2018-05-27 12:37:50 +05:30
Kovid Goyal
9fe995c7d8
Workaround for GLFW not working with the wlroots wayland compositor
2018-05-27 12:37:50 +05:30
Kovid Goyal
422bcfcb54
...
2018-05-27 12:37:50 +05:30
Kovid Goyal
3b04776956
Show the window much sooner after creating it
...
Do not make any OpenGL calls between creation and showing of the window.
Hopefully, that will make the fussy wlroots happy.
2018-05-27 12:37:50 +05:30
Kovid Goyal
1ba76508de
More detailed error message when cursor creation fails
2018-05-27 12:37:49 +05:30
Kovid Goyal
4e09a518d5
Don't initialize OpenGL for the temp window as it is not needed
...
Also dont fail to start if cursor creation fails, since cursor shapes
are not critical.
2018-05-27 12:37:49 +05:30
Kovid Goyal
e056460f0b
Split up creation of font group and sending of sprites to GPU
2018-05-27 12:37:49 +05:30
Kovid Goyal
da166aef99
API to control smallest allowed resize from python
2018-05-27 12:37:49 +05:30
Kovid Goyal
a42bc3bf8c
oops
2018-05-27 12:37:49 +05:30
Kovid Goyal
997c244664
Allow specifying initial window size in number of cells
2018-05-27 12:37:49 +05:30
Kovid Goyal
fe8cf46d56
Handle window DPI changes
2018-05-27 12:37:49 +05:30
Kovid Goyal
df9eab279a
Implement changing the font size for individual top level (OS) windows
2018-05-27 12:37:49 +05:30
Kovid Goyal
b14c9614e0
DRYer
2018-05-27 12:37:05 +05:30
Kovid Goyal
ed44515318
All tests pass
2018-05-27 12:37:05 +05:30
Kovid Goyal
523aadaa3b
Refactor font group handling
...
Allow kitty to manage multiple groups of fonts with different cell
sizes. Will eventually allow kitty to have different font sizes/dpi per
OSWindow
2018-05-27 12:37:05 +05:30
Kovid Goyal
4f18342ea6
Linux: Fix fonts not being correctly read from TrueType Collection (.ttc) files.
...
kitty was always selecting the first font rather than the
actual matched font. Fixes #577
2018-05-27 12:30:28 +05:30
Kovid Goyal
f36e6f0461
Nicer handling of empty lines
2018-05-26 13:40:43 +05:30
Kovid Goyal
978dc008e2
hints kitten: Fix a regression that caused some blank lines to be not displayed
2018-05-26 13:35:44 +05:30
Kovid Goyal
94f1759b14
Update README
2018-05-24 19:31:08 +05:30
Kovid Goyal
a4af0599cc
version 0.10.1
2018-05-24 19:26:12 +05:30
Kovid Goyal
de4384a420
tui: Use correct key names for enter and backspace keys
2018-05-24 15:23:34 +05:30
Kovid Goyal
a33ebce3c9
diff kitten: Add keybindings to scroll by a page
2018-05-24 15:17:03 +05:30
Kovid Goyal
219d3161d9
diff kitten: Fix incorrect syntax highlighting with a few file formats such as yaml
2018-05-24 15:00:26 +05:30
Kovid Goyal
2e07159461
macOS: Fix regression that caused the macos_option_al_alt setting to always be set to no for all os windows ina kitty instance after the first. Fixes #571
2018-05-24 09:14:13 +05:30
Kovid Goyal
23d0f5ce32
Preserve line numbers when adding in shifts to shader
2018-05-23 19:41:54 +05:30
Kovid Goyal
f4792a1e3d
Add link to diff kitten in main README
2018-05-23 13:38:44 +05:30
Kovid Goyal
2a5ef628fa
DRYer
2018-05-23 13:25:46 +05:30
Kovid Goyal
4b259dd719
diff kitten: Make the keyboard shortcuts configurable
...
Fixes #563
2018-05-23 13:10:32 +05:30
Kovid Goyal
c127476c4e
...
2018-05-23 09:56:53 +05:30
Kovid Goyal
beded75547
Make ssh kitten work with the execrable dash shell
2018-05-23 09:54:33 +05:30
Kovid Goyal
74a6cdb3bb
...
2018-05-23 09:35:57 +05:30
Kovid Goyal
ba554fb01d
...
2018-05-23 09:35:29 +05:30
Kovid Goyal
39c98e83da
Cleanup key action with arguments parsing
2018-05-23 09:32:52 +05:30
Kovid Goyal
73660f7119
...
2018-05-23 09:15:27 +05:30
Kovid Goyal
46b4f33850
A nice error message when using shortcuts to change background_opacity without setting dynamic_background_opacity
...
Also change the default shortcuts
2018-05-23 09:14:10 +05:30
Kovid Goyal
ad8e16aac0
...
2018-05-23 08:50:19 +05:30
Kovid Goyal
ae6e082419
Keyboard shortcuts to control background opacity
2018-05-23 08:48:59 +05:30
Kovid Goyal
f46d3057ba
Add an example of setting environment variables in a session file
2018-05-23 08:28:18 +05:30
Kovid Goyal
8e0e4b8fd1
cmds: Check for extra arguments
2018-05-23 08:24:08 +05:30
Kovid Goyal
76da315f81
...
2018-05-23 08:19:30 +05:30
Kovid Goyal
95de39feb9
Nice error message when dynamic_background_opacity is not set
2018-05-23 08:16:22 +05:30
Kovid Goyal
c0f790c928
Add a remote command to control window opacity
...
Fixes #569
2018-05-23 08:13:37 +05:30
Kovid Goyal
6fbb953aa4
Add a note about needing a temp file for tic
2018-05-22 23:18:11 +05:30
Kovid Goyal
30b38e9fa0
Drop the requirement for having python on the server when using the ssh kitten
2018-05-22 23:15:24 +05:30
Kovid Goyal
d20e801793
Add a kitten to easily ssh into servers that automatically copies the terminfo files over
2018-05-22 22:32:51 +05:30
Kovid Goyal
fe65b346c1
Fix Ctrl+Alt+Space not working in normal and application keyboard modes.
...
Fixes #562
2018-05-22 14:52:00 +05:30
Kovid Goyal
c5da1c0f1b
Update link to Debian package
2018-05-22 10:44:36 +05:30
Kovid Goyal
3fd2f03f11
Print failure message to standard error
2018-05-21 23:26:57 +05:30
Kovid Goyal
4ad4e28a9c
...
2018-05-21 23:25:59 +05:30
Kovid Goyal
d3edd2e73f
Add a kitten to get/set the clipboard via OSC 52
2018-05-21 23:24:27 +05:30
Kovid Goyal
3d37348c2b
...
2018-05-21 23:17:44 +05:30
Kovid Goyal
8a3e81b7ba
Send an empty response to clipboard queries if reading from clipboard is not allowed or the clipboard is empty
...
Prevents utilities from hanging when querying the clipboard. Also fix 52
prefix missing from the OSC response.
2018-05-21 23:17:39 +05:30
Kovid Goyal
a29c317217
Add code to disable terminal echo to non_blocking_read
2018-05-21 22:09:34 +05:30
Kovid Goyal
48847cdaf8
hints kitten: Fix detection of URLs in ReStructuredText
2018-05-21 16:14:49 +05:30
Kovid Goyal
a59cda8b60
...
2018-05-21 16:02:24 +05:30
Kovid Goyal
e70b5114fb
diff kitten: resolve symlinks before passing paths to the diff tool
2018-05-21 15:50:28 +05:30
Kovid Goyal
d2ab7fbb36
Add a ref
2018-05-21 14:17:21 +05:30
Kovid Goyal
70352ca722
kittens: Don't fail on systems that return invalid values for SC_IOV_MAX. Fixes #558
2018-05-21 12:22:46 +05:30
Kovid Goyal
be28e7bf46
Update README
2018-05-21 11:30:19 +05:30
Kovid Goyal
6b2b8e0208
...
2018-05-21 11:00:24 +05:30
Kovid Goyal
c997dc8ea7
Add a link to the default diff.conf
2018-05-21 10:59:10 +05:30
Kovid Goyal
f52afbb396
Add a reference to kitty-diff as a program that uses the kitty graphics protocol
2018-05-21 10:53:31 +05:30
Kovid Goyal
a20e7e2a6b
Add a note about why kitty-diff is kitty only
2018-05-21 10:51:50 +05:30
Kovid Goyal
9903b8e8db
version 0.10.0
2018-05-21 09:50:36 +05:30
Kovid Goyal
1d18f63eb5
Update README
2018-05-21 09:06:19 +05:30
Kovid Goyal
a63682b160
...
2018-05-20 18:35:46 +05:30
Kovid Goyal
812f3e60ca
...
2018-05-20 18:35:15 +05:30
Kovid Goyal
f8f5838ab5
Update CHANGELOG
2018-05-20 18:34:07 +05:30
Kovid Goyal
07782e071a
Update CHANGELOG
2018-05-20 18:09:08 +05:30
Kovid Goyal
624dfdf913
Update README
2018-05-20 17:33:09 +05:30
Kovid Goyal
a01dad8c3c
Render the shade unicode box characters as per the spec
2018-05-20 16:34:17 +05:30
Kovid Goyal
b6baa99fce
diff kitten: Make the representation of tabs configurable
2018-05-20 15:37:52 +05:30
Kovid Goyal
912b395316
diff kitten: Render tabs as four spaces instead of <9>
2018-05-20 15:29:12 +05:30
Kovid Goyal
b1b90d2bf7
Replace tabs in README
2018-05-20 15:17:19 +05:30
Kovid Goyal
37bd964fee
Add some notes about integrating with git
2018-05-20 15:12:21 +05:30
Kovid Goyal
fa3e173c18
diff kitten: Report errors converting images
2018-05-20 15:01:25 +05:30
Kovid Goyal
2a9dc23c61
...
2018-05-20 12:44:16 +05:30
Kovid Goyal
2885f54360
Add README for diff kitten
2018-05-20 12:41:40 +05:30
Kovid Goyal
ac2f4c8ab6
Nicer window title for the diff kitten
2018-05-20 12:26:14 +05:30
Kovid Goyal
7282d8edc1
Add an option to control how much dimming SGR dim does
2018-05-20 11:00:13 +05:30
Kovid Goyal
6f2d63eb87
Implement SGR dim
...
kitty now supports the SGR DIM escape code, which makes text fade into
the background. It works by alpha blending the text color into the
background color. Fixes #446
2018-05-20 10:43:26 +05:30
Kovid Goyal
9cab8a2de5
diff kitten: Do not specify the default foreground color in formatting codes.
...
Fixes an issue with foreground color being incorrect after a highlighted
segment if the syntax highlight does not specify a foreground color at
the boundary.
2018-05-20 08:51:41 +05:30
Kovid Goyal
709d19119d
Update bundled glfw
2018-05-20 08:03:58 +05:30
Kovid Goyal
029b82807c
Ignore \ prefixed lines when parsing patches
2018-05-19 23:02:49 +05:30
Kovid Goyal
67c0942e01
Fix error reporting in the diff kitten
2018-05-19 22:51:02 +05:30
Kovid Goyal
fb57653665
Make debugging kittens a little nicer
...
Now debug() writes to the stderr of the parent kitty process instead of
a temp file.
2018-05-19 16:32:08 +05:30
Kovid Goyal
646a349d82
...
2018-05-19 15:11:08 +05:30
Kovid Goyal
ad1109b6fe
Hints kitten: Overhaul making it more intelligent
...
It now uses information about the geometry of the screen.
So URLs that stretch over multiple lines are detected even if there is a
hard line break in between (some programs like mutt generate these).
2018-05-19 14:31:00 +05:30
Kovid Goyal
c2bd6a66d9
...
2018-05-19 08:49:03 +05:30
Kovid Goyal
ba9af3df8c
Fix moving cursor outside a defined page area incorrectly causing the cursor to be placed inside the page area. Caused incorrect rendering in neovim, which relies on this behavior.
...
Fixes #542
2018-05-19 08:04:37 +05:30
Kovid Goyal
5d4e968f50
Allow commenting lines in command logs
2018-05-19 07:33:29 +05:30
Kovid Goyal
0e327f3d13
Allow kittens to ask for wrap markers
2018-05-18 23:09:27 +05:30
Kovid Goyal
bb06bfa627
Cleanup the as_text_generic macro
...
Also allow adding a \r at the end of each visual line
2018-05-18 23:06:06 +05:30
Kovid Goyal
2a713cab60
kittens should specify their own required input type
...
It is DRYer. Also replace the run_kitten function with just kitten that
takes no type of input argument. Backward compat for run_kitten is
maintained.
2018-05-18 22:55:42 +05:30
Kovid Goyal
26df57a1c7
More elegant handling for pressing enter with no valid current input in the hints kitten
2018-05-18 21:28:43 +05:30
Kovid Goyal
18893f86ce
Render a couple more powerline symbols directly, bypassing the font
...
There are apparently a set of "extra" powerline glyphs that need to be
boundary aligned. https://github.com/ryanoasis/powerline-extra-symbols
Fixes #550
2018-05-18 19:20:10 +05:30
Kovid Goyal
8fead5ebe8
Add a test function to test drawing of single box characters easily
2018-05-18 15:43:40 +05:30
Kovid Goyal
6020aadbf2
diff kitten: Show overall diff stats
2018-05-18 14:19:25 +05:30
Kovid Goyal
f8b6b532e0
diff kitten: Show scroll %
2018-05-18 13:36:12 +05:30
Kovid Goyal
05ec174868
@resize-window now has a useful return code
2018-05-18 00:01:31 +05:30
Kovid Goyal
3875ee021a
re-org screenshots
2018-05-17 23:53:36 +05:30
Kovid Goyal
2931afa0ae
Fix vertical biasing of last window in grid not working when number of windows is odd
2018-05-17 23:42:37 +05:30
Kovid Goyal
2803e45380
Fix swapped row/col when biasing grid layout
2018-05-17 23:39:29 +05:30
Kovid Goyal
965dde599e
Cleanup layout.py
2018-05-17 23:34:41 +05:30
Kovid Goyal
229ea45d81
...
2018-05-17 23:27:35 +05:30
Kovid Goyal
8ea84c97d5
Use an overlay window for window resizing
...
Also implement a remote command to resize windows
2018-05-17 23:26:41 +05:30
Kovid Goyal
7c47bd547f
Fix ctrl+alt+<special> not working in normal and application keyboard modes.
...
Fixes #548
2018-05-17 20:43:18 +05:30
Kovid Goyal
6ae58e6882
Add a couple more functions to --replay-commands
2018-05-17 20:15:59 +05:30
Kovid Goyal
3bc0f90a82
Fix incorrect parsing of --replay-commands
2018-05-17 20:06:59 +05:30
Kovid Goyal
2a99ef254f
Dont segfault when printing a freetype font object with a NULL postscript name
2018-05-17 19:49:31 +05:30
Kovid Goyal
5bc811f26e
Improve the help text for --replay-commands
2018-05-17 19:42:46 +05:30
Kovid Goyal
83893d762a
Implement resizing for the grid layout
2018-05-17 18:47:41 +05:30
Kovid Goyal
24bed6273b
Simplify grid layout code some more
2018-05-17 17:47:42 +05:30
Kovid Goyal
2a5b314f67
Simplify grid layout code
2018-05-17 17:20:09 +05:30
Kovid Goyal
e3c9fc3fba
DRYer
2018-05-17 17:17:03 +05:30
Kovid Goyal
b81700a8fd
DRYer
2018-05-17 17:12:24 +05:30
Kovid Goyal
b319fd4b93
Implement resizing for vertical and horizontal layouts
2018-05-17 17:09:03 +05:30
Kovid Goyal
23d6995558
...
2018-05-17 16:50:16 +05:30
Kovid Goyal
190612d507
Make the resize step size configurable
2018-05-17 16:48:35 +05:30
Kovid Goyal
cddfe425e1
Dont keep increasing bias in Tall layout when it wont change the actual layout
...
Also refactor the bias code so that it is shared with the fat layout.
2018-05-17 16:02:42 +05:30
Kovid Goyal
bc6a03a41b
Implement resizing for the Fat layout
2018-05-17 15:19:05 +05:30
Kovid Goyal
e053d1f566
Implement resizing of individual windows in a layout
...
See the Layouts section in the README for details. Fixes #362
Note that it is only implemented for the Tall layout currently. Other
layouts to follow. The implementation might also be refined in the
future.
2018-05-17 15:09:41 +05:30
Kovid Goyal
e429b8484c
Update kitty invocation when preprocessing README
2018-05-17 14:56:52 +05:30
Kovid Goyal
22159c5eb4
Fix mockup for testing
2018-05-16 16:43:39 +05:30
Kovid Goyal
903df9972a
...
2018-05-16 16:25:41 +05:30
Kovid Goyal
4dcbb1f077
Avoid needless re-allocation of Layout objects on layout change
...
Also allows layout instance data to be preserved when cycling layouts
2018-05-16 16:24:31 +05:30
Kovid Goyal
5158d49781
Generalize bias handling
2018-05-16 15:57:04 +05:30
Kovid Goyal
3fdf47c535
Allow specifying the width of the tall window in the Tall layout as a percentage of available space
...
Also remove the --window-layout option as it was redundant. Same effect
can be achieved using -o enabled_layouts=some_layout,*
2018-05-16 14:02:58 +05:30
Kovid Goyal
b59d1bda8b
Add a comment for RTL shaping
2018-05-16 07:00:36 +05:30
Kovid Goyal
1760fb9db2
Partial fix for rendering RTL languages like arabic
2018-05-16 06:56:16 +05:30
Kovid Goyal
082c771fc0
Fix typo in conf file
2018-05-16 00:08:52 +05:30
Kovid Goyal
7ec989d485
Fix Ctrl+backspace acting as plain backspace in normal and application keyboard modes. Fixes #538
2018-05-16 00:07:54 +05:30
Kovid Goyal
0f9613eb9e
...
2018-05-11 06:15:26 +05:30
Kovid Goyal
85a354351a
...
2018-05-11 06:06:18 +05:30
Kovid Goyal
24db8cef4f
Merge branch 'add-fat-layout' of https://github.com/theJian/kitty
2018-05-11 05:23:14 +05:30
theJian
9908eee40c
Update readme
2018-05-11 01:00:29 +08:00
theJian
b6517758d9
Add fat layout
2018-05-11 00:59:46 +08:00
Kovid Goyal
029500f3ed
Store fd for screen_size at creation time
2018-05-10 18:27:18 +05:30
Kovid Goyal
686727a7c3
Nicer hooks for kitty-bar
...
Allows kitty-bar to be refactored into a pure CLI app
2018-05-10 17:47:51 +05:30
Kovid Goyal
91a1d61cc6
diff: Fix margins not being reset on exit
2018-05-10 16:21:26 +05:30
Kovid Goyal
b8e9921f3d
Forgot this file in previous commit
2018-05-10 16:20:58 +05:30
Kovid Goyal
e0ce5d5629
tui: Cleanup unhandled exception processing
...
Also handler finalization should happen before term manager
finalization.
2018-05-10 16:20:33 +05:30
Kovid Goyal
ed511c296c
Avoid needing to resend images on every draw_screen()
2018-05-10 15:58:52 +05:30
Kovid Goyal
eab1fbbbb0
diff: Mark displayed images as change starts
2018-05-10 15:29:53 +05:30
Kovid Goyal
ee3b052a50
tui: Preserve cursor position when placing images
2018-05-10 15:27:35 +05:30
Kovid Goyal
5b98f15d9b
typo in comment
2018-05-10 15:15:02 +05:30
Kovid Goyal
51d76e5a2b
...
2018-05-10 14:37:43 +05:30
Kovid Goyal
a6bce0b221
diff: More work on showing images
2018-05-10 14:33:09 +05:30
Kovid Goyal
fb5dc8a2ba
A spot of refactoring
2018-05-10 11:52:51 +05:30
Kovid Goyal
d571ee0d01
diff: More work on displaying images
2018-05-10 11:50:46 +05:30
Kovid Goyal
5d7ed67316
diff: More work on displaying images
2018-05-10 10:36:50 +05:30
Kovid Goyal
9f6c754339
Add a note about KITTY_WINDOW_ID
2018-05-10 10:27:34 +05:30
Kovid Goyal
2819a4ebf3
...
2018-05-10 09:53:17 +05:30
Kovid Goyal
dec1203ea8
Make the kitty window id available as the environment variable KITTY_WINDOW_ID
...
Fixes #532
2018-05-10 08:52:28 +05:30
Kovid Goyal
87ab0d7b18
Make it clear that focus-window focuses the window it is run inside by default.
2018-05-10 08:46:38 +05:30
Kovid Goyal
043530409c
DRYer
2018-05-10 07:47:29 +05:30
Kovid Goyal
9710282d22
Have the paste_from_selection action paste from the clipboard on platforms that do not have a primary selection such as Wayland and macOS. Fixes #529
2018-05-10 07:42:03 +05:30
Kovid Goyal
5e8e141fb5
Fix cursor_stop_blinking_after=0 not working. Fixes #530
2018-05-10 07:31:53 +05:30
Kovid Goyal
2e313fbdd2
Better exception for image conversion failure
2018-05-09 20:50:56 +05:30
Kovid Goyal
5c3e4db05f
DRYer
2018-05-09 20:36:53 +05:30
Kovid Goyal
2be2f6aa0c
Make icat a kitten
...
The kittens framework did not exist when icat was first written.
2018-05-09 20:26:30 +05:30
Kovid Goyal
6d038f5cdf
Pass the image manager to the render code
2018-05-09 20:12:39 +05:30
Kovid Goyal
27feccba39
diff: More work on image support
2018-05-09 19:41:37 +05:30
Kovid Goyal
7d39d5c088
Ensure only a single screen size function is used
2018-05-09 14:14:09 +05:30
Kovid Goyal
2e69b904da
diff: More work on images
2018-05-09 14:06:15 +05:30
Kovid Goyal
79dcc8c771
Don't search in names.h
2018-05-09 11:32:22 +05:30
Kovid Goyal
683e5a4754
DRYer
2018-05-09 11:32:09 +05:30
Kovid Goyal
d51a424b98
diff: Start work on image display
2018-05-09 10:25:53 +05:30
Kovid Goyal
e07d216a11
Expand environment variables in config file include directives
2018-05-09 09:35:50 +05:30
Kovid Goyal
b9fa8dbe42
DRYer
2018-05-09 09:28:38 +05:30
Kovid Goyal
3820c46801
Ensure there is a blank line before each new item
2018-05-09 08:33:24 +05:30
Kovid Goyal
b663160bc2
Fix rendering of binary files
2018-05-09 08:17:52 +05:30
Kovid Goyal
a65c807a4a
diff: Add keyboard shortcuts to got to next/previous change
2018-05-09 08:12:40 +05:30
Kovid Goyal
3a1f85cb69
diff: Make the diff implementation configurable
2018-05-08 23:32:21 +05:30
Kovid Goyal
196bd9c22b
Allow setting the number of context lines in diff.conf
2018-05-08 23:17:40 +05:30
Kovid Goyal
9bf2087b55
Better error message when pygments style is not found
2018-05-08 23:13:50 +05:30
Kovid Goyal
51e589c7e6
diff: Add a option for pygments style
2018-05-08 23:08:20 +05:30
Kovid Goyal
7365ed9b05
diff: Better title rendering
2018-05-08 23:02:00 +05:30
Kovid Goyal
9cb7a6b2c7
...
2018-05-08 22:50:00 +05:30
Kovid Goyal
9ff7eae1af
diff: Add an option to control syntax aliases
2018-05-08 22:46:25 +05:30
Kovid Goyal
61e1b74434
Highlight .pyj files as python
2018-05-08 22:32:34 +05:30
Kovid Goyal
324c223d54
diff kitten: keyboard shortcuts to change the number of lines of context
2018-05-08 22:19:50 +05:30
Kovid Goyal
96793a296c
diff kitten has working syntax highlighting
2018-05-08 14:48:01 +05:30
Kovid Goyal
7b1626a38f
Ensure highlighting is run only once
2018-05-08 09:20:36 +05:30
Kovid Goyal
09a3a3dafb
More work on the diff kitten
2018-05-08 08:43:41 +05:30
Kovid Goyal
0e21708f25
...
2018-05-08 08:26:47 +05:30
Kovid Goyal
89fa2343a6
Sign the released macOS app
2018-05-07 23:04:20 +05:30
Kovid Goyal
03256d8ac9
Code to integrate with pygments
2018-05-07 13:30:59 +05:30
Kovid Goyal
889ca77912
Allow programs running in kitty to read/write from the clipboard
...
By default only writing is allowed. There is a config option to enable
reading, if needed.
2018-05-07 09:57:39 +05:30
Kovid Goyal
23ee6b3109
More work on the diff kitten
2018-05-06 16:25:04 +05:30
Kovid Goyal
d133ffac25
Make using tui.operations more convenient
2018-05-06 15:34:11 +05:30
Kovid Goyal
ffc6e65392
Implement scrolling for the diff kitten
2018-05-06 14:41:10 +05:30
Kovid Goyal
d61086907d
Add a global debug function to the kittens
2018-05-06 13:48:40 +05:30
Kovid Goyal
5b58c2892d
Rename module
2018-05-06 10:35:01 +05:30
Kovid Goyal
67379c67cc
More work on the diff kitten
2018-05-05 13:38:28 +05:30
Kovid Goyal
4691257233
...
2018-05-05 11:19:56 +05:30
Kovid Goyal
d46a8c893a
Fix --debug-config failing when no options are changed
2018-05-05 11:18:51 +05:30
Kovid Goyal
577ba0b39d
Cleanup
2018-05-05 11:14:20 +05:30
Kovid Goyal
f761245280
pep8
2018-05-05 11:13:32 +05:30
Kovid Goyal
f1b4e585aa
Merge branch 'master' of https://github.com/FrancescoMagliocco/kitty
2018-05-05 11:08:18 +05:30
FrancescoMagliocco
255db2cb66
Fixed where output of '--debug-config' would not be aligned if an option key was longer than 20 characters.
2018-05-05 00:39:25 -04:00
Kovid Goyal
8b6240a067
version 0.9.1
2018-05-05 09:46:28 +05:30
Kovid Goyal
f5c713b118
More work on the diff kitten
2018-05-05 09:45:35 +05:30
Kovid Goyal
ac7596b7c5
...
2018-05-05 07:30:59 +05:30
Kovid Goyal
f69ed984a4
Output GL version when running with --debug-gl
...
See #521
2018-05-05 07:26:30 +05:30
Kovid Goyal
83850b28ae
Update GL wrapper generated by new version of glad
2018-05-04 18:12:31 +05:30
Kovid Goyal
5efa26a98d
Micro-optimization
2018-05-04 15:48:58 +05:30
Kovid Goyal
51d2c01bc1
Highlight changed in individual lines in chunks that have the same number of adds/removes
2018-05-04 15:35:11 +05:30
Kovid Goyal
be9d876997
find common prefix and suffix of two strings
2018-05-03 20:15:28 +05:30
Kovid Goyal
866b53f384
More work on the diff kitten
2018-05-03 18:05:55 +05:30
Kovid Goyal
de1a2f7682
Delay load some particularly heavy stdlib modules that are not often needed
2018-05-03 17:53:22 +05:30
Kovid Goyal
86686bfac7
Avoid rendering tab bar more than once per tick
2018-05-03 17:00:18 +05:30
Kovid Goyal
3f316c39d1
Dynamically allocate the scrollback history buffer
...
Reduces startup memory consumption when using very large scrollback
buffer sizes.
2018-05-03 15:17:02 +05:30
Kovid Goyal
14459a7d18
Fix #506
2018-05-03 11:19:11 +05:30
Kovid Goyal
c062b84bc6
Forgot to remove args.cmd
2018-05-03 11:14:10 +05:30
Kovid Goyal
890a68fa53
Use -c as an alias for --config instead
2018-05-03 11:12:16 +05:30
Kovid Goyal
59017a6e6f
Remove the -c command line flag as it is better to use +runpy instead
2018-05-03 11:11:25 +05:30
Kovid Goyal
06cb2cafe6
Add ssh script with terminfo copy to README
2018-05-03 09:40:18 +05:30
Kovid Goyal
e4ed170748
...
2018-05-03 09:15:05 +05:30
Kovid Goyal
f011a6c86c
Disallow use of both macos_titlebar_color and background_opacity
...
Fixes #519
2018-05-03 09:11:41 +05:30
Kovid Goyal
45fc1ace0c
Ignore -e if it is specified on the command line.
...
This is for compatibility with broken software that assumes terminals
should run with an -e option to execute commands instead of just passing
the commands as arguments. Fixes #502
2018-05-03 08:41:39 +05:30
Kovid Goyal
8d51edec17
Option to disable bell symbol on tab
2018-05-02 22:05:38 +05:30
Kovid Goyal
f2afba2ef4
Change the window border color if a bell occurs in an unfocused window. Can be disabled by setting the bell_border_color to be the same as the inactive_border_color.
2018-05-02 22:02:45 +05:30
Kovid Goyal
efcd3a5df7
Show a bell on the tab if a bell occurs in one of the windows in the tab and the window is not the currently focused window. Fixes #514
2018-05-02 21:44:14 +05:30
Kovid Goyal
2a52acdef4
Fix tab title not changing to reflect the window title when switching between different windows in a tab
2018-05-02 21:07:45 +05:30
Kovid Goyal
eadfeeec9b
Fix window focus gained/lost events not being reported to child programs when switching windows/tabs using the various keyboard shortcuts.
2018-05-02 20:50:42 +05:30
Kovid Goyal
f8a581129f
Fix #513
2018-05-02 15:52:56 +05:30
Kovid Goyal
93ff651d9e
...
2018-05-02 15:52:10 +05:30
Kovid Goyal
bec0f02b11
More work on the diff kitten
2018-05-02 15:26:47 +05:30
Kovid Goyal
0721951c79
Add hunk title lines
2018-05-02 09:47:24 +05:30
Kovid Goyal
b37d07d31a
Update CHANGELOG
2018-05-01 23:41:19 +05:30
Kovid Goyal
9cacfc0c26
macOS: When the macos_titlebar_color is set to background change the titlebar background to match the current background color of the active kitty window
2018-05-01 23:37:48 +05:30
Kovid Goyal
0b93b85cf2
Dont use case range in names.h as it prevents compilation with Visual Studio
2018-05-01 11:27:10 +05:30
Kovid Goyal
f7001ea068
Fix character names for control characters not being read from unicode database
...
Also allow unicode_names.c to be compiled with python 2 so I can re-use
it in calibre.
2018-05-01 10:13:58 +05:30
Kovid Goyal
aa93c3fb66
Fix passing @text to other programs such as when viewing the scrollback buffer not working correctly if kitty is itself scrolled up. Fixes #509
2018-05-01 07:38:05 +05:30
Kovid Goyal
166c7bf0e6
Update CHANGELOG
2018-04-29 20:16:11 +05:30
Kovid Goyal
bb1374f64e
Only define VCS_REV where it is needed
2018-04-29 18:47:14 +05:30
Kovid Goyal
053835afbe
Add an option to not request window attention on bell. Fixes #507
2018-04-29 18:16:41 +05:30
Kovid Goyal
4760580d1c
More work on the diff kitten
2018-04-29 08:07:03 +05:30
Kovid Goyal
8fa492e0ee
More work on the diff kitten
2018-04-28 14:07:24 +05:30
Kovid Goyal
040ae75c77
Remote control: Allow matching windows by number (visible position).
...
Fixes #501
2018-04-28 11:00:42 +05:30
Kovid Goyal
759aaf294a
Remove extra level of indirection in creating iterator
2018-04-28 10:39:59 +05:30
Kovid Goyal
9ea0de868c
Parse send_text payload only once at startup
2018-04-27 18:13:37 +05:30
Kovid Goyal
78002cf3ba
Update glfw from upstream
...
Fixes #488
2018-04-27 15:32:54 +05:30
Kovid Goyal
f68f8bf9c9
macOS: Fix changing tab title and kitty shell not working
...
I forgot that Apple has its own special snowflake readline variant.
Fixes #494
2018-04-27 15:16:26 +05:30
Kovid Goyal
54438cae3f
DRYer
2018-04-27 11:19:46 +05:30
Kovid Goyal
2e693c31df
Refactor shortcut config parsing
...
Resolution of kitty_mod and creation of the maps now happens in one
central place after all config is parsed. Fixes #496
Also have --debug-config output multi-key shortcuts nicely as well.
2018-04-27 11:16:58 +05:30
Kovid Goyal
0f06bf1bdb
Merge branch 'macos_hide_from_tasks' of https://github.com/cfal/kitty
2018-04-27 08:19:32 +05:30
Alex Lau
b7f4f2e898
Move call to cocoa_window.m
2018-04-26 12:42:56 -07:00
Kovid Goyal
7148ee8a0f
When triple-clicking select all wrapped lines belonging to a single logical line. Fixes #492
2018-04-26 10:16:00 +05:30
Kovid Goyal
238508fc0a
Update glfw from upstream
...
Proper cross-platform fix for issue of mouse cursor not being restored
over un-focused windows.
2018-04-26 08:31:52 +05:30
Kovid Goyal
84ab0f5062
More work on the diff kitten
2018-04-26 08:01:12 +05:30
Kovid Goyal
cf04bdb36a
Merge branch 'master' of https://github.com/FabioLolix/kitty
2018-04-26 06:58:16 +05:30
FabioLolix
d09a30d16c
Updated Readme - Arch package
...
Kitty has been moved to the Arch community repository
2018-04-25 21:13:17 +02:00
Kovid Goyal
d54b58d2f3
...
2018-04-25 19:50:40 +05:30
Kovid Goyal
0be0963dc7
Utility method to truncate formatted lines to specified width
2018-04-25 19:34:04 +05:30
Kovid Goyal
61a2360df5
hints kitten: Detect bracketed URLs and dont include the closing bracket in the URL.
2018-04-25 14:33:37 +05:30
Kovid Goyal
b3ed4e3bc2
...
2018-04-25 09:16:10 +05:30
Kovid Goyal
316e7cb9f5
Also use cwd of child when opening programs via the hints kitten
2018-04-25 09:07:35 +05:30
Kovid Goyal
23851e31bf
When calling pass_selection_to_program use the current directory of the child process as the cwd of the program. Fixes #491
2018-04-25 08:30:22 +05:30
Alex Lau
b7b64ec513
Default to off
2018-04-24 17:13:37 -07:00
Kovid Goyal
2b372373ae
Update glfw from upstream
2018-04-24 18:15:28 +05:30
Kovid Goyal
7a543fac86
Wire up color handling in the diff kitten
2018-04-24 10:58:15 +05:30
Kovid Goyal
5c4b14468c
Apply default colors in diff kitten
2018-04-24 10:33:18 +05:30
Alex Lau
7d4d978d97
Add macos_hide_from_tasks option
2018-04-23 22:02:54 -07:00
Kovid Goyal
fe5b8f3aec
Fix using modifiers with subsequent keys in a muti-key shortcut not working
2018-04-24 09:42:37 +05:30
Kovid Goyal
f5abe7cbf7
Add a setting to clear all shortcuts defined up to that point
2018-04-24 09:08:22 +05:30
Kovid Goyal
bd0382830a
Add a setting (kitty_mod) to change the modifier used by all the default kitty shortcuts, globally
...
See #487
2018-04-24 08:53:07 +05:30
Kovid Goyal
0b99bb534f
Unicode input: When searching by name search for prefix matches as well as whole word matches
...
So now hori matches both "hori" and "horizontal". Switched to a
prefix-trie internally.
2018-04-24 07:45:20 +05:30
Kovid Goyal
9d67198ff9
Update path in gen-wcwidth.py
2018-04-23 21:25:33 +05:30
Kovid Goyal
fda57a81e1
Fix Shift+function key not working
...
Also support pressing F13-f25 function keys. Fixes #485
2018-04-23 11:28:02 +05:30
Kovid Goyal
9962ac2703
...
2018-04-23 10:54:04 +05:30
Kovid Goyal
edc4b91d15
Expand ~ and env vars in program names. Fixes #483
2018-04-23 10:53:20 +05:30
Kovid Goyal
92ca8ab9cc
Fix #482
2018-04-23 07:19:40 +05:30
Kovid Goyal
07e2d9175c
Merge branch 'fixconfig' of https://github.com/Abominas/kitty
2018-04-23 06:59:44 +05:30
Abominas
c90dbb25b9
Fix config format crash
2018-04-22 17:35:58 -07:00
Kovid Goyal
b5da109e7f
Wire up config infrastructure for diff kitten
2018-04-22 21:44:47 +05:30
Kovid Goyal
aa18429a8c
DRYer
2018-04-22 21:22:08 +05:30
Kovid Goyal
e578d41adb
Make merge_dicts() re-useable
2018-04-22 21:00:17 +05:30
Kovid Goyal
f3579e78af
Make load_config() re-useable
2018-04-22 20:58:43 +05:30
Kovid Goyal
9c43707f40
Make the hinting defaults zero when missing
2018-04-22 20:34:00 +05:30
Kovid Goyal
99ff92a5a7
Don't fail to start if the user deletes the hintstyle key from their fontconfig configuration. Fixes #480
2018-04-22 20:29:46 +05:30
Kovid Goyal
d866c0d202
Fix NULL return without error set
2018-04-22 20:19:21 +05:30
Kovid Goyal
20c42ab519
tui: Allow handlers to finalize() as well as initialize()
2018-04-22 13:14:25 +05:30
Kovid Goyal
8bbc2b82d4
More work on the diff kitten
2018-04-22 13:05:58 +05:30
Kovid Goyal
6929358976
More work on the diff kitten
2018-04-21 15:45:16 +05:30
Kovid Goyal
82acd6b511
Add a note on how to create a script to launch kitty
...
Useful when running from source
2018-04-21 15:33:21 +05:30
Kovid Goyal
bb939ed4f8
Remove unused code
2018-04-20 22:19:31 +05:30
Kovid Goyal
cd25abc49f
...
2018-04-20 22:06:42 +05:30
Kovid Goyal
2e90e443ed
Fix #476
2018-04-20 21:33:24 +05:30
Kovid Goyal
92bb6e293a
Add threaded job infrastructure to tui
2018-04-20 21:12:10 +05:30
Kovid Goyal
ea9b431386
Allow changing the source used by test_compile
2018-04-20 21:02:05 +05:30
Kovid Goyal
23077fd6a6
DRYer
2018-04-20 20:56:29 +05:30
Kovid Goyal
5eee7ce338
Fix #475
2018-04-20 20:32:16 +05:30
Kovid Goyal
784894cac3
xkbcommon.org's HTTPS certificate has expired
2018-04-20 18:39:27 +05:30
Kovid Goyal
757983b729
Another ParseTuple mismatch
2018-04-20 18:29:55 +05:30
Kovid Goyal
b6660353cd
Merge branch 'bigendian-fixes' of https://github.com/jamessan/kitty
2018-04-20 18:26:26 +05:30
James McCoy
215a7689d9
Correct types for various PyArg_ParseTuple/Py_BuildValue calls
...
Debian's [mips] build failed one of the font tests:
FAIL: test_sprite_map (kitty_tests.fonts.Rendering)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/kitty_tests/fonts.py", line 48, in test_sprite_map
self.ae(test_sprite_position_for(0, 1), (0, 1, 1))
self = <kitty_tests.fonts.Rendering testMethod=test_sprite_map>
AssertionError: Tuples differ: (0, 0, 0) != (0, 1, 1)
First differing element 1:
0
1
- (0, 0, 0)
? ^ ^
+ (0, 1, 1)
? ^ ^
This was due to test_sprite_position_for() using the "I" code to parse
into an unsigned short. Since mips is big endian, the "wrong" byte was
stored into extra_glyphs.data.
This commit changes all similar data type mismatches that were found
from auditing calls to PyArg_ParseTuple/Py_BuildValue.
[mips]: https://buildd.debian.org/status/fetch.php?pkg=kitty&arch=mips&ver=0.9.0-1&stamp=1524126606&raw=0
2018-04-20 08:28:26 -04:00
Kovid Goyal
dd18a1dfd8
Simplify is_ascii_control_char
...
No need to use macros for unsigned char
2018-04-20 14:30:07 +05:30
Kovid Goyal
32f16ee5f5
macOS: Add support for dead keys
...
I have modified GLFW to support dead keys on macOS. That was painful.
Fixes #465
2018-04-20 14:25:53 +05:30
Kovid Goyal
d4f426d2ce
Merge branch 'unsigned-char-build' of https://github.com/jamessan/kitty
2018-04-20 10:15:13 +05:30
Kovid Goyal
a6d96c9a14
Fix #471
2018-04-20 09:32:01 +05:30
Kovid Goyal
bf3bfeaf69
Merge branch '32bit-long-fix' of https://github.com/jamessan/kitty
2018-04-20 09:24:18 +05:30
Kovid Goyal
6ce82177ea
Merge branch 'remove-sysctl-include' of https://github.com/jamessan/kitty
2018-04-20 09:21:47 +05:30
James McCoy
dc6efb5b37
Use uint64_t to detect out of range graphics command id
...
parse_graphics_code() uses an unsigned long to detect if the id is
"> UINT32_MAX", however sizeof(long) == sizeof(void *) on Linux systems.
So this condition will be impossible on any 32-bit system.
2018-04-19 20:32:48 -04:00
James McCoy
b26d1f306d
travis: Force unsigned char on one build
2018-04-19 20:23:11 -04:00
James McCoy
cf678d8179
Remove unnecessary <sys/sysctl.h> include
...
The code that required this include was removed in
66803e6873 , and the include is causing
build failures for some of Debian's architectures.
2018-04-19 19:14:40 -04:00
Kovid Goyal
8cecb22481
Add a link to the debian package
...
See #263
2018-04-19 19:42:46 +05:30
Kovid Goyal
2504266806
macOS: Fix option as alt not working for keys that act as dead keys in the current keyboard layout
2018-04-19 17:44:31 +05:30
Kovid Goyal
e3795eb07e
Dont add CPPFLAGS from the python build
...
They contain include paths specific to the python build such as -I. that
are not appropriate for building kitty. Also move cppflags in front of
cflags when invoking the compiler.
2018-04-19 10:33:10 +05:30
Kovid Goyal
796ead5d75
Merge branch 'support-cppflags' of https://github.com/jamessan/kitty
2018-04-19 10:27:22 +05:30
Kovid Goyal
d5907a1bf9
More work on the diff kitten
2018-04-19 10:26:14 +05:30
James McCoy
ddd4774169
setup.py: Support specifying CPPFLAGS distinctly from CFLAGS
2018-04-18 23:08:45 -04:00
Kovid Goyal
1dc83a47cf
When rendering a private use unicode codepoint and a space as a two cell
...
ligature, set the foreground colors of the space cell to match the
colors of the first cell. Works around broken applications like
powerline that use different colors for the two cells. Fixes #467
2018-04-19 07:30:36 +05:30
Kovid Goyal
0a8dc4be0a
Start work on the diff kitten
2018-04-17 17:43:56 +05:30
Kovid Goyal
3d99361790
Add a note about dotted and dashed underline styles
2018-04-17 08:21:28 +05:30
Kovid Goyal
1e278938cc
Fix #463
2018-04-16 21:51:55 +05:30
Kovid Goyal
ba177c61bc
...
2018-04-16 16:46:42 +05:30
Kovid Goyal
458f10be10
version 0.9.0
2018-04-15 20:18:52 +05:30
Kovid Goyal
c1667d9fc1
Fix run_kitten shortcuts in readme
2018-04-15 20:04:32 +05:30
Kovid Goyal
52f4e81d59
hints kitten: Reverse order of hints
...
Gives hints at the bottom of the screen smaller numbers. In
non-fullscreen usage matches closer to the bottom are more likely to be
the ones the user is looking for. Fixes #460
2018-04-14 23:07:53 +05:30
Kovid Goyal
1056ab1b81
Store marks in the index map
2018-04-14 23:01:49 +05:30
Kovid Goyal
3f9d04b616
Fix #458
2018-04-14 08:41:40 +05:30
Kovid Goyal
d9cc065c99
...
2018-04-13 22:34:28 +05:30
Kovid Goyal
612fb3b596
Process events when timeout is zero
2018-04-13 22:34:08 +05:30
Kovid Goyal
532d51c411
Neaten up main_loop()
2018-04-13 15:19:25 +05:30
Kovid Goyal
5630c0e434
Fix merging of shortcuts
...
Multi-key shortcuts take precedence over conflicting single key
shortcuts defined at the same and lower levels
2018-04-12 19:40:22 +05:30
Kovid Goyal
5ba8ca2745
...
2018-04-12 16:53:46 +05:30
Kovid Goyal
e9ffb8d185
Clarify --config help text
2018-04-12 16:47:26 +05:30
Kovid Goyal
339a2e0800
Add a word select type to the hints kitten
2018-04-12 13:49:12 +05:30
Kovid Goyal
98c04fb7da
Pass some common option values to the kittens
2018-04-12 13:21:05 +05:30
Kovid Goyal
c95d1393cc
Add some more default keybindings for the hints kitten
2018-04-12 13:01:16 +05:30
Kovid Goyal
1779cdd353
Fix #455
2018-04-12 10:45:29 +05:30
Kovid Goyal
6a090ac740
Add a --type argument to hints kitten
...
Allows addition of more sophisticated types of matches later.
2018-04-12 10:30:32 +05:30
Kovid Goyal
3c7236557c
hints: Use --program=@ to copy to clipboard
2018-04-12 10:16:48 +05:30
Kovid Goyal
83a3d99824
Make --help work for all kittens
2018-04-12 09:33:50 +05:30
Kovid Goyal
808750a76a
Rename url_hints to just hints
2018-04-12 09:23:48 +05:30
Kovid Goyal
32caea4197
Better error message for unknown uniform in cursor program
2018-04-12 09:11:43 +05:30
Kovid Goyal
038248f55d
Remove unnecessary handling of passed in files to url_hints
2018-04-12 09:04:54 +05:30
Kovid Goyal
21b7bf6009
url_hints: Allow using a group to ignore prefix/suffix when matching via regex
2018-04-12 08:54:36 +05:30
Kovid Goyal
9dc571d8a9
Add a conveninet shortcut to test kittens
2018-04-12 08:52:00 +05:30
Kovid Goyal
805baad9cd
More appropriate message when URLs not found
2018-04-12 07:27:40 +05:30
Kovid Goyal
cc910f6b79
...
2018-04-12 07:16:20 +05:30
Kovid Goyal
56dd442e2c
Flush output streams on kitten end
2018-04-11 20:24:39 +05:30
Kovid Goyal
3192b61385
...
2018-04-11 20:19:03 +05:30
Kovid Goyal
eef3a215a1
...
2018-04-11 14:42:07 +05:30
Kovid Goyal
cb7fff6986
Refactor the ask kitten to use the new API
2018-04-11 14:40:58 +05:30
Kovid Goyal
75b5130d96
Allow the URL hints kitten to insert the selected URL into the terminal
2018-04-11 13:22:07 +05:30
Kovid Goyal
2cf8c6aea7
Refactor the kittens framework
...
Make it possible to perform arbitrary actions with the kittens output
and also allow running kittens from standalone python files.
2018-04-11 13:09:31 +05:30
Kovid Goyal
5755ba72b1
Fix #449
2018-04-09 20:13:13 +05:30
Kovid Goyal
785937ecfc
Remove unnecessary function calls
...
glfwSetInputMode is a no-op if the passed in mode is the same as the
current mode anyway.
2018-04-09 19:40:14 +05:30
Kovid Goyal
955ead05be
Make the command to copy over terminfo files a one liner
2018-04-09 16:45:11 +05:30
Kovid Goyal
3830261384
Merge branch 'patch-2' of https://github.com/maximbaz/kitty
2018-04-09 16:38:42 +05:30
Maxim Baz
662ab0df45
Allow background opacity for values in range [0.91, 0.99]
2018-04-09 12:59:17 +02:00
Kovid Goyal
1ce50fb6f0
Also clean-up selection extend for line select
2018-04-09 10:43:05 +05:30
Kovid Goyal
74dcf8800d
...
2018-04-09 09:51:51 +05:30
Kovid Goyal
e90df0ca95
When double-clicking select words that continue onto next/prev line as well. Fixes #444
2018-04-09 09:47:18 +05:30
Kovid Goyal
49c375ae0f
Fix #441
2018-04-08 09:05:31 +05:30
Kovid Goyal
6c4d1a4951
Merge branch 'unicode-fix' of https://github.com/epsilon-phase/kitty
...
Fixes #442
2018-04-08 08:54:53 +05:30
alexander white
f99e368831
Fixed crash on tab-completing without any search results.
2018-04-07 14:10:16 -04:00
Kovid Goyal
8468ad60d5
...
2018-04-06 20:55:47 +05:30
Kovid Goyal
a1ce29aab9
Update CHANGELOG
2018-04-06 20:53:29 +05:30
Kovid Goyal
20b5084904
Update glfw
...
Fixes #439
2018-04-06 20:18:03 +05:30
Kovid Goyal
2fde0ea86b
Add some documentation for the kitty shell
2018-04-06 15:06:28 +05:30
Kovid Goyal
b64bceac7f
Add a keyboard shortcut to open the kitty shell
2018-04-06 14:59:13 +05:30
Kovid Goyal
a97174a350
Add basic command name and option name completion to the shell
2018-04-06 14:07:14 +05:30
Kovid Goyal
6141c9fdda
Implement a command shell for kitty
...
Run it with:
kitty @
2018-04-06 12:11:37 +05:30
Kovid Goyal
a32e010f89
Move the remote commands into their own module
...
Separates the commands from the UI for running them.
2018-04-06 10:38:26 +05:30
Kovid Goyal
4847fb52cc
Updates to README
2018-04-06 08:16:14 +05:30
Kovid Goyal
58e33e2512
URL hints: Exclude trailing punctuation from URLs
2018-04-04 08:53:12 +05:30
Kovid Goyal
584b59c7a1
Shorter filtering code
2018-04-03 10:19:21 +05:30
Kovid Goyal
2e657f0020
Have safe_remove remove all instances
2018-04-03 10:15:58 +05:30
Kovid Goyal
ae112294c8
Fix compilation on Travis
2018-04-03 10:13:18 +05:30
Kovid Goyal
8b4c7ea23f
Pass CFLAGS to linker as well
...
Fixes #435
2018-04-03 10:03:03 +05:30
Kovid Goyal
83e225a50f
...
2018-04-02 15:30:14 +05:30
Kovid Goyal
6256b9027a
Add a --reset option to @ set-colors
2018-04-02 11:14:54 +05:30
Kovid Goyal
1fd84612a8
Add a remote control command to change colors
...
Also add a FAQ entry about changing colors in a running kitty instance.
I'm tired of all the bug reports asking for this feature. Apparently,
people find it hard to google for the existing escape codes based
solution.
2018-04-02 10:45:52 +05:30
Kovid Goyal
2efa83bc4d
Use git rev-parse instead, more robust
2018-04-01 20:33:12 +05:30
Kovid Goyal
fa064bf9cf
When kitty is built from a git checkout show the current revision in --debug-config
2018-04-01 20:27:31 +05:30
Kovid Goyal
325d2bc14e
Improve mouse selection for windows with padding
...
Moving the mouse into the padding area now acts as if the mouse is over
the nearest cell. Fixes #430
Note that this only applies to padding defined via the
window_padding_width option, not any leftover space from the window size
not being an exact multiple of the cell size.
2018-04-01 18:06:27 +05:30
Kovid Goyal
90a4b4f859
URL hints kitten: Open the URL from within the kitty process. This ensures that the behavior of the program used to open the URL is the same as when ctrl+shift clicking URLs. Fixes #424
2018-04-01 16:48:07 +05:30
Kovid Goyal
ce0db16479
Fix using kitty --single-instance to open a new window in a running kitty instance, not respecting the --directory flag. Fixes #429
2018-04-01 12:39:33 +05:30
Kovid Goyal
43ce3ce4b0
Forgot to add _replace() method to new Options class
2018-04-01 12:33:18 +05:30
Kovid Goyal
910cebeeb5
Allow setting all 256 colors in the config file
2018-04-01 12:24:00 +05:30
Kovid Goyal
1c78633d1a
Add an "include" directive for the config files to read multiple config files.
2018-04-01 10:19:21 +05:30
Kovid Goyal
530fd61125
Add support for multi-key shortcuts
...
Fixes #338
2018-03-31 12:21:37 +05:30
Kovid Goyal
9edfafcac2
Update glfw
2018-03-31 12:21:37 +05:30
Kovid Goyal
677c47b9dd
Possible fix for handling unknown modifiers on Xkb systems
2018-03-31 12:21:37 +05:30
Kovid Goyal
b59d7dda11
Import glfw from upstream, key handling on macOS works again
2018-03-31 12:21:37 +05:30
Kovid Goyal
7a3534baf8
Make ascii control char test nicer
2018-03-31 12:21:37 +05:30
Kovid Goyal
3bfcadcd81
Install newer libxkbcommon on Travis
2018-03-31 12:21:37 +05:30
Kovid Goyal
529bb5c6a0
We need xkbcommon >= 0.5
2018-03-31 12:21:36 +05:30
Kovid Goyal
caf9a12b34
Update glfw from upstream
...
libxkbcommon based keyboard handling now works (at least the basic
stuff, haven't tested compose/mapnotify etc.)
2018-03-31 12:21:36 +05:30
Kovid Goyal
da8e2d3d4a
Adjust keys callback for new glfw keyboard API
2018-03-31 12:21:36 +05:30
Kovid Goyal
582500d3e9
Basic changes for new glfw keyboard API
2018-03-31 12:21:36 +05:30
Kovid Goyal
7926a140b8
version 0.8.4
2018-03-31 12:16:35 +05:30
Kovid Goyal
023487a1d7
Merge branch 'reduce-iconset' of https://github.com/justinnhli/kitty
2018-03-31 11:43:41 +05:30
Justin Li
71f84b1023
reduce icon set size to fit iconutil limits
2018-03-30 22:57:34 -07:00
Kovid Goyal
ce85382c68
Revert the change to use rendered bitmap width to calculate cell width
...
Instead if the bitmap is up to two pixels wider than the cell width
simply crop on the right. Fixes #352
2018-03-30 18:54:15 +05:30
Kovid Goyal
94d248d812
Fix presence of XDG_CONFIG_DIRS env var preventing kitty from starting up due to a silly typo
...
Fixes #421
2018-03-29 17:51:14 +05:30
Kovid Goyal
62db7639a8
version 0.8.3
2018-03-29 09:56:44 +05:30
Kovid Goyal
80f3fe6e9f
...
2018-03-29 00:05:37 +05:30
Kovid Goyal
9ba2c4b397
Update glfw from upstream
2018-03-28 19:57:01 +05:30
Kovid Goyal
bfa53d4b45
Update glfw from upstream
...
Includes proper fix for Wayland key repeat
2018-03-28 15:26:56 +05:30
Kovid Goyal
69f3ceb903
Merge glfw upstream changes to build on Wayland on FreeBSD
2018-03-28 09:47:16 +05:30
Kovid Goyal
d0f839bbd8
Fix audible bell not working under Wayland
2018-03-27 19:45:19 +05:30
Kovid Goyal
48538c0e25
Update bundled glfw
2018-03-27 15:07:25 +05:30
Kovid Goyal
02ab22f08c
Update CHANGELOG
2018-03-27 12:15:25 +05:30
Kovid Goyal
b3b216a6dc
...
2018-03-27 12:09:18 +05:30
Kovid Goyal
431564c8bc
Linux: When calculating cell widths use the actual rendered bitmap width in addition to the horizontal advance reported by FreeType.
...
The horizontal advance is insufficient for some fonts at some point
sizes. So although rendering the characters is slower, we do it
to ensure cell width is correct. Fixes #352
2018-03-27 12:04:38 +05:30
Kovid Goyal
57f1bbb71a
Make cwd check more robust
...
Apparently getcwd() raises an exception on macOS when the cwd does not
exist.
2018-03-27 10:54:49 +05:30
Kovid Goyal
faac8649e4
Fix a regression that broke visual bell and invert screen colors escape code. Fixes #419
2018-03-27 10:46:26 +05:30
Kovid Goyal
1e6a41186f
Move check for NULL boss into call_boss()
...
Negligible perf impact and makes it safe to use in different contexts
2018-03-27 09:56:29 +05:30
Kovid Goyal
eddee67130
Fix error when testing update_selection because not boss is defined
2018-03-27 09:54:14 +05:30
Kovid Goyal
9b834014e9
Merge branch 'zero-length-title' of https://github.com/jamessan/kitty
2018-03-27 09:41:33 +05:30
James McCoy
a467e79144
Stop setting title to ";" when 0-length OSC 2 is received
...
Various programs send a 0-length title if no title is configured (e.g.,
(n)vim with 'title' unset, or mutt without ts_enabled). When this
happens, kitty is mis-parsing the data and setting the title to ";".
2018-03-26 21:30:45 -04:00
Kovid Goyal
90cc785b55
Allow double-click and triple-click + drag to extend selections word at a time or line at a time. Fixes #400
2018-03-26 16:48:28 +05:30
Kovid Goyal
09710425ab
Move rectangle_select onto the selection object
2018-03-26 12:37:36 +05:30
Kovid Goyal
dd36727adf
Show macOs version for --debug-config
2018-03-25 12:47:47 +05:30
Kovid Goyal
47b665a624
Prettyify --debug-config output
2018-03-25 12:36:27 +05:30
Kovid Goyal
7011329761
Add a --debug-config option to provide diagnostic info about the system and kitty
2018-03-25 12:30:56 +05:30
Kovid Goyal
ea24c23fde
Allow specifying a system wide kitty config file
...
The system config is merged with any user specific config files, with
options in the user specific config files having higher priority.
Also follow the full XDG spec for finding config files, including
XDG_CONFIG_DIRS.
2018-03-25 11:47:11 +05:30
Kovid Goyal
be8f2b8106
Create a shortcut to set the tab title
...
No longer need to use remote control just to change tab titles.
2018-03-25 09:55:02 +05:30
Kovid Goyal
71db024a3b
Add history based completion to the ask kitten
2018-03-24 11:49:34 +05:30
Kovid Goyal
3790af6897
Basic ask kitten
2018-03-23 18:03:43 +05:30
Kovid Goyal
dc6ef63ddd
Merge branch 'oS' of https://github.com/jubalh/kitty
2018-03-23 15:33:40 +05:30
Michael Vetter
ef762f7a2b
Add link to openSUSE package
2018-03-23 10:45:42 +01:00
Kovid Goyal
4ed646e062
Merge branch 'tic2' of https://github.com/jubalh/kitty
2018-03-21 21:17:46 +05:30
Michael Vetter
afbd843388
Mention tic as dependency
2018-03-21 16:42:44 +01:00
Kovid Goyal
18c3598ef2
Merge branch 'desktop' of https://github.com/jubalh/kitty
2018-03-21 20:43:50 +05:30
Michael Vetter
1c2623e609
Have more detailed desktop file category
...
Let's use the 'TerminalEmulator' category according to the spec:
https://specifications.freedesktop.org/menu-spec/menu-spec-1.0.html
2018-03-21 11:28:57 +01:00
Kovid Goyal
e232863028
Also recognize unicode aliases for macOS modifiers
2018-03-20 15:10:29 +05:30
Kovid Goyal
a89309153d
Merge branch 'patch-1' of https://github.com/sle-odoo/kitty
2018-03-18 17:59:27 +05:30
Simon Lejeune
fee7c8e573
update dependencies to run make app
...
while imagemagick is defined as an optional dependency in the installation section, its presence is indeed mandatory to successfully run `make app` as seen at https://github.com/kovidgoyal/kitty/blob/master/logo/make.py#L27
2018-03-18 10:56:40 +01:00
Kovid Goyal
1a52127c55
version 0.8.2
2018-03-17 17:45:57 +05:30
Kovid Goyal
4920431c3a
Update CHANGELOG
2018-03-17 17:40:41 +05:30
Kovid Goyal
773f26b61d
Fix screen not being refreshed immediately after moving a window. Fixes #397
2018-03-16 22:00:57 +05:30
Kovid Goyal
16e77d7329
Replace use of PyObject_Str in a couple more places
2018-03-16 21:26:46 +05:30
Kovid Goyal
2cec0908a5
Fix a segfault when getting the contents of the scrollback buffer as text
...
Fixes #398
2018-03-16 21:10:48 +05:30
Kovid Goyal
b3ef62c188
Merge branch 'i386-fixes' of https://github.com/oleastre/kitty
2018-03-16 20:42:57 +05:30
Olivier Samyn
3385f6fe67
Avoid comparison between signed and unsigned compilation error (32bit)
2018-03-16 09:31:37 +01:00
Kovid Goyal
0170bf636b
...
2018-03-15 20:58:26 +05:30
Kovid Goyal
b2561fd61e
Add a facility to specify command line arguments when running kitty from the GUI on macOS
...
Fixes #395
2018-03-15 20:57:08 +05:30
Kovid Goyal
64b48945d4
Add a focus-tab remote command
...
Fixes #394
2018-03-15 17:41:49 +05:30
Kovid Goyal
bbfd463357
Dont show a useless traceback when failing to match in a remote command
...
Fixes #393
2018-03-15 15:45:12 +05:30
Kovid Goyal
2179dab8ed
Re-organize kitty.conf into sections
...
Sections are de-limited by vim folds
2018-03-15 13:07:02 +05:30
Kovid Goyal
801ead7f7f
Add ntoe to readme about right click to extend selection
2018-03-15 12:20:46 +05:30
Kovid Goyal
9e4834d58b
Right click should only extend selection if there is an existing selection
2018-03-15 12:19:45 +05:30
Kovid Goyal
f38e089de0
Merge branch 'extend-selection' of https://github.com/vsajko/kitty
2018-03-15 12:07:23 +05:30
Kovid Goyal
b252504306
...
2018-03-15 11:31:37 +05:30
Kovid Goyal
81bcdaf48a
Dont show [options] if there are no options in usage message
2018-03-15 11:30:31 +05:30
Kovid Goyal
44f654ff86
Cleanup remote_control.py
2018-03-15 11:26:22 +05:30
Kovid Goyal
84cfa9382f
Add argspecs for the remote control command help text
2018-03-15 11:21:13 +05:30
Kovid Goyal
c6da374aa9
Add a configurable keyboard shortcut and remote command to set the font size to a specific value
...
Fixes #388
2018-03-15 11:15:35 +05:30
Vedran Sajko
d9fe0b2540
Extend selection with right click
2018-03-15 00:09:33 +01:00
Kovid Goyal
5a905dfe7f
Add kitty.app to .gitignore
...
Also have make clean clean linux-package and kitty.app when running
manually.
2018-03-14 12:10:15 +05:30
Kovid Goyal
09b6d6e62b
README cleanups
2018-03-14 08:01:10 +05:30
Kovid Goyal
6aa26cf75f
Improve the wording for close_on_child_death option
2018-03-13 09:12:06 +05:30
Kovid Goyal
bae8915881
Add an option to have kitty close the window when the main processes running in it exits, even if there are still background processes writing to that terminal.
...
Merge branch 'master' of https://github.com/josswright/kitty
2018-03-13 09:08:45 +05:30
Kovid Goyal
9c46de319e
MacOS: Fix restoring of window size not correct on Retina screens
...
Fixes #382
2018-03-13 08:19:15 +05:30
Joss Wright
994eecadb7
Adds close_on_child_death option for disowned processes.
2018-03-12 21:02:37 +00:00
Kovid Goyal
f7f9ceec34
Consolidate signal handling
...
Move the signal handler for SIGCHLD into child-monitor.c
Makes for cleaner code.
2018-03-12 21:53:02 +05:30
Kovid Goyal
527255e3a1
Fix compilation with gcc 8
...
Apparently some nitwit Linux distros have made an unreleased compiler
their default compiler. Fixes #376
Fixes various new warnings that GCC 8 issues
2018-03-12 10:38:12 +05:30
Kovid Goyal
0333da991d
...
2018-03-12 08:11:43 +05:30
Kovid Goyal
2bf8e1b1a3
Allow the name of the lib directory in linux-package to be configurable. Fixes #372
2018-03-12 08:10:53 +05:30
Kovid Goyal
ffc717717c
Oops
2018-03-12 07:53:31 +05:30
Kovid Goyal
2c8414db5d
Be a bit more specific
2018-03-12 07:52:08 +05:30
Kovid Goyal
32473d7dc7
make clean fallsback to manual cleaning when not in a git checkout
...
Fixes #379
2018-03-12 07:50:54 +05:30
Kovid Goyal
079f10eebd
...
2018-03-11 22:31:19 +05:30
Kovid Goyal
ae1f305a81
Add kittens to the LOC script
2018-03-11 12:03:23 +05:30
Kovid Goyal
0b1f5209d5
Use CFLAGS and LDFLAGS env vars when building the launcher as well
...
Fixes #374
2018-03-11 08:12:17 +05:30
Kovid Goyal
fc9980903d
Make layout names case-insensitive for enabled_layouts in sessions as well
2018-03-10 23:42:06 +05:30
Kovid Goyal
ad87131926
A bit of documentation for goto_layout
2018-03-10 23:38:18 +05:30
Kovid Goyal
4dfe1b664f
Add configurable keyboard shortcuts to switch to a specific layout
...
Fixes #369
2018-03-10 23:34:47 +05:30
Kovid Goyal
d7b2ac97b5
...
2018-03-09 21:04:20 +05:30
Kovid Goyal
fd9dac4ca4
Add a small delay when opening the editor with the config file to workaround bugs in vim that cause it to ignore SIGWINCH if it happens early during startup.
2018-03-09 21:03:42 +05:30
Kovid Goyal
8ca9348b07
...
2018-03-09 18:10:17 +05:30
Kovid Goyal
5cc18fdb4b
...
2018-03-09 18:02:06 +05:30
Kovid Goyal
51b6b325b9
Add a keyboard shortcut to edit the kitty config file easily
...
Fixes #366
2018-03-09 17:57:09 +05:30
Kovid Goyal
b3cc6f3802
...
2018-03-09 17:49:31 +05:30
Kovid Goyal
1295094715
README cleanups
2018-03-09 11:00:50 +05:30
Kovid Goyal
af85f58e3d
version 0.8.1
2018-03-09 09:21:50 +05:30
Kovid Goyal
3b34821c86
Report unhandled exceptions during loop initialization in the unicode input kitten as well
2018-03-08 13:57:13 +05:30
Kovid Goyal
eaea0b16b5
Fix URL hints not working on macOS
...
Fixes #363
2018-03-08 13:38:16 +05:30
Kovid Goyal
964ffadc8e
DRYer
2018-03-08 13:37:56 +05:30
Kovid Goyal
1b84064e5f
...
2018-03-08 13:01:35 +05:30
Kovid Goyal
dd128a99ac
Report unahndled exceptions when starting loop in URL hints kitten
2018-03-08 12:58:54 +05:30
Kovid Goyal
bc829a9712
Use a dedicated static variable for tracking window system initialization
2018-03-06 13:55:06 +05:30
Kovid Goyal
3459c55ebf
Add section on reporting bugs to CONTRIBUTING
2018-03-05 21:03:01 +05:30
Kovid Goyal
a631d950e1
Add a guide to contributing
2018-03-05 20:57:57 +05:30
Kovid Goyal
f35e2d76ad
Add a note about using --login on macOS when changing the default shell
2018-03-05 14:54:20 +05:30
Kovid Goyal
8db838da9f
macOS: Fix shell not starting in login mode on some computers. Fixes #247
2018-03-05 13:30:09 +05:30
Kovid Goyal
7254a880dc
Guard against print failure
2018-03-05 13:29:26 +05:30
Kovid Goyal
a0df5b970b
Report unhandled exceptions via log_error() as well
2018-03-05 10:28:33 +05:30
Kovid Goyal
54ed08c24e
Ensure the extra glyphs array is always re-initialized
2018-03-04 23:36:39 +05:30
Kovid Goyal
97e1ecabdc
Render private use unicode characters that are followed by a space as two cell ligatures. Fixes #357
2018-03-04 22:58:24 +05:30
Kovid Goyal
e716f6d35e
Replace deprecated ASL with os_log on macOS
2018-03-04 12:28:06 +05:30
Kovid Goyal
c7506496da
Unify error logging between python and C
2018-03-04 11:55:47 +05:30
Kovid Goyal
1e3d3df9b8
Remove unused code
2018-03-04 10:59:12 +05:30
Kovid Goyal
ed75ad0d41
Log a timestamp as well when printing error messages from python
2018-03-04 10:44:28 +05:30
Kovid Goyal
fd6159c0b4
Redirect stderr/stdout to console.app when launched via launchd on macOS
2018-03-04 10:17:43 +05:30
Kovid Goyal
976c322b83
Print a couple of errors to stderr instead of stdout
2018-03-04 08:58:36 +05:30
Kovid Goyal
28c1935800
Fix Unicode emoji presentation variant selector causing new fallback font to always be loaded
2018-03-03 21:32:43 +05:30
Kovid Goyal
1edf1524f8
Update bundled glfw
2018-03-03 11:21:09 +05:30
Kovid Goyal
0dfe101c0f
brew's python3 handling seems to have changed
2018-03-03 11:09:07 +05:30
Kovid Goyal
a571821f73
Fix compilation on Travis (I hope)
2018-03-03 10:56:07 +05:30
Kovid Goyal
f8e6f87984
Dont use MSG_NOSIGNAL on Apple
2018-03-03 10:51:29 +05:30
Kovid Goyal
c7338bca6f
Document how to control kitty from programs not running in a kitty window
2018-03-03 10:38:25 +05:30
Kovid Goyal
15f07f57bf
Finish remote control via socket implementation
2018-03-03 10:32:49 +05:30
Kovid Goyal
ec989a45b5
...
2018-03-03 08:55:05 +05:30
Kovid Goyal
e8286c50b2
Implement sending responses to peers
2018-03-02 12:35:32 +05:30
Kovid Goyal
bfbbe3db14
mutex remove_poll_fd()
...
It modifies talk_data.fds which can also be modified from the main
thread when adding a writer.
2018-03-02 11:13:47 +05:30
Kovid Goyal
6214a87522
Correct error handling for pthread_join
2018-03-02 11:08:11 +05:30
Kovid Goyal
743ff719c8
join the talk thread on exit
...
Also shutdown reading on the control socket after message received.
2018-03-02 11:02:18 +05:30
Kovid Goyal
b491eacb9c
Ensure the moitor threads are shut down on exit
2018-03-02 10:32:12 +05:30
Kovid Goyal
5bfc89e13f
Implement listening on the --listen-on socket
2018-03-02 10:26:19 +05:30
Kovid Goyal
52d2b7b09e
Implement --listen-on option
2018-03-02 09:08:58 +05:30
Kovid Goyal
19e59d9575
Start refactoring peer message handling to allow multiple listening sockets and responses
2018-03-02 09:08:58 +05:30
Kovid Goyal
6fe4baf1de
Move pthread includes into separate header
2018-03-02 09:08:58 +05:30
Kovid Goyal
bc21ec7551
Have kitty @ use /dev/tty instead of stdout/stdin
...
Allows redirecting those streams, while still being able to send
messages. Downside is that if user runs it outside kitty there wont
be any useful error message.
2018-03-02 09:08:58 +05:30
Kovid Goyal
aad4a1fd6a
Dont fail for non-UTF-8 encoded config files, simply replace the undecodeable chars instead
2018-03-02 08:49:27 +05:30
Kovid Goyal
721595ef04
Ensure config file is always opened with UTF-8
2018-03-02 08:47:13 +05:30
Kovid Goyal
139838c717
Option to print debug information about font fallback
2018-02-28 21:43:40 +05:30
Kovid Goyal
c93238d8c9
Some documentation for the unicode input kitten
2018-02-28 00:29:11 +05:30
Kovid Goyal
5ee1fbe07d
Copy the launcher script into linux-package
...
The launcher script is mostly useless on linux, but is needed
when using kitty.app built from source and might be useful on linux as
well, if running kitty without putting it on PATH.
2018-02-28 00:25:57 +05:30
Kovid Goyal
ee1287211d
Typo in makefile app target
2018-02-27 21:06:42 +05:30
Kovid Goyal
94e8be6b1c
...
2018-02-27 20:29:08 +05:30
Kovid Goyal
053ba7f082
Nicer error message when user tries to run logo/make.py with missing tools
2018-02-27 19:56:52 +05:30
Kovid Goyal
e8f3f00792
Handle cols being zero
2018-02-27 18:48:48 +05:30
Kovid Goyal
740a89b77f
Treat Ctrl+Alt+letter as Esc,Ctrl+letter
...
Follows the behavior of some other terminals and is better than
generating nothing, since apparently there are some terminal programs
that use these keys. Fixes #345
2018-02-27 08:46:09 +05:30
Kovid Goyal
1fe936dbbc
Fix off by one when restoring cursor position after resize. Fixes #344
2018-02-25 09:15:48 +05:30
Kovid Goyal
11e85ac703
Swapped unicode input name and hex mode prompt strings
2018-02-24 14:51:49 +05:30
Kovid Goyal
4cb99be8e6
version 0.8.0
2018-02-24 11:11:56 +05:30
Kovid Goyal
8cf9fd3cdb
...
2018-02-23 09:38:07 +05:30
Kovid Goyal
b22950bb0a
More work on README
2018-02-23 09:36:46 +05:30
Kovid Goyal
f87d62571b
Add links to relevant parts of the README in the major features list
2018-02-23 09:13:20 +05:30
Kovid Goyal
42afc56b65
Update CHANGELOG with entry for macos_titlebar_color
...
Fixes #341
2018-02-22 21:21:33 +05:30
Splinter Suidman
10c3c7c41f
Implement setting title bar color.
2018-02-22 21:19:55 +05:30
Kovid Goyal
e236539e3a
Option for changing macOS titlebar color
...
Note that the actual implementation is still needed, this is just the
option definition/parsing code.
2018-02-22 15:07:24 +05:30
Kovid Goyal
1fc605cbc0
Move needs_special_handling definition into keys.c
2018-02-22 14:37:51 +05:30
Kovid Goyal
1e4963e727
Revert change to make alt+bs emit werase
...
Most linux terminals emit ESC+BS instead. And iTerm2 in Esc+ mode also
emits this. So go with the majority for greatest ecosystem
compatibility. Fixes #264
2018-02-22 13:51:14 +05:30
Kovid Goyal
95384d437a
Use the nice array based interface for fcntl.ioctl
2018-02-20 17:01:14 +05:30
Kovid Goyal
e44910212c
Sample code to use TIOCGWINSZ in python
2018-02-20 16:47:06 +05:30
Kovid Goyal
36b8802f43
Add a link to the graphics protocol page in the README
2018-02-20 16:32:57 +05:30
Kovid Goyal
a6b0554edc
Merge branch 'master' of https://github.com/Polynomial-C/kitty
2018-02-20 15:42:23 +05:30
Lars Wendler
c1df5eac57
Added Gentoo to the list of Linux packagers.
2018-02-20 11:09:43 +01:00
Kovid Goyal
68bf1be8d0
render on cursor shape change as well
2018-02-20 11:54:35 +05:30
Kovid Goyal
d5edea3c7f
render on cursor position change as well
2018-02-20 11:27:39 +05:30
Kovid Goyal
eb580f5ead
Update CHANGELOG for padding color
2018-02-20 10:10:28 +05:30
Kovid Goyal
c99588082b
Fix incorrect bottom blank rects in vertical and tall layouts
2018-02-20 10:06:37 +05:30
Kovid Goyal
96d241e9f3
Fix enabled_layouts in session files not being respected
2018-02-20 10:01:41 +05:30
Kovid Goyal
8f423c6d8f
Fix padding color not tracking active window bg color
2018-02-20 09:52:19 +05:30
Kovid Goyal
f25ecedcab
Always set the padding color to current window background
2018-02-20 09:43:59 +05:30
Kovid Goyal
2913c1aedc
Change the color of the padding and margins to match the current background color of the window, when only a single window is visible.
...
Fixes #323
2018-02-20 09:43:49 +05:30
Kovid Goyal
5a15f7e8ad
Sync to monitor refreshes by default
...
Prevents tearing while scrolling. See #318
Reduce draw calls while processing mouse move events to make latency
while selecting with the mouse acceptable. Also add a config option to
turn off monitor syncing, so people with keyboard repeat rates higher
than their monitor's refresh rate can use it.
2018-02-20 09:38:00 +05:30
Kovid Goyal
e6cb64baa5
Revert "Enable syncing of redraws to monitor refresh rate"
...
This reverts commit 6a51096304 .
Turns out that dynamically changing the swap interval causes bad flicker
when rendering on X11 in a fullscreen window (or more generally, when
only a single X11 window is visible).
2018-02-20 08:32:33 +05:30
Kovid Goyal
537023ef5a
Fix simple_render_screen() broken by multiple OSwindow draw calls optimization
2018-02-20 05:52:32 +05:30
Kovid Goyal
70125e0de5
Only build asan-launcher if --sanitize is given
...
Fixes #328
2018-02-16 08:56:30 +05:30
Kovid Goyal
8c5646b81b
Merge branch 'build-package-fix' of https://github.com/13k/kitty
2018-02-16 08:22:30 +05:30
Kiyoshi '13k' Murata
bd741365cb
Fix packaging trying to modify unrelated files
...
`package()` method in `setup.py` tries to compile and chmod all files
under the directory given by `--prefix PREFIX`.
If PREFIX is a directory containing other distributions (like
`/usr/local` or `$HOME/.local`), then it would try to compile - using
possibly the wrong python version - and chmod all files within PREFIX.
2018-02-15 19:46:51 -02:00
Kovid Goyal
efd9843920
Update CHANGELOG
2018-02-15 17:42:32 +05:30
Kovid Goyal
0bb8ec61e5
Fix regression caused by overlay window support code
...
Closing a window would not update the window layout, depending on the
position of the window in the current layout.
2018-02-15 09:16:00 +05:30
Kovid Goyal
6a51096304
Enable syncing of redraws to monitor refresh rate
...
Now, when large changes, such as scrolling occur, the OpenGL back buffer
swapping is synchronized to the monitor refresh rate (if supported by
the OS). This eliminates tearing artifacts when scrolling the screen fast.
Fixes #318
2018-02-14 20:59:58 +05:30
Kovid Goyal
807c8f9005
Do not send history buf in alternate screen mode
2018-02-14 20:46:12 +05:30
Kovid Goyal
9c21610215
Use a single generic function to get text and ANSI representations of all buffers
2018-02-14 20:38:53 +05:30
Kovid Goyal
97b4256ba4
Remove unused code
2018-02-14 18:50:52 +05:30
Kovid Goyal
e4b643fdaf
Show a nice message when no URLs are found
2018-02-14 18:36:57 +05:30
Kovid Goyal
0bda7b3679
When running kittens respect current screen scroll
2018-02-14 18:35:32 +05:30
Kovid Goyal
51e3e9997c
Allow clicking URLs via keybaord hints by pressing ctrl+shift+e
2018-02-14 17:18:57 +05:30
Kovid Goyal
9f52d427e5
http->https in readme
2018-02-14 17:08:09 +05:30
Kovid Goyal
ad706f9924
Make the list of URL prefixes configurable
2018-02-14 12:48:44 +05:30
Kovid Goyal
57cf789c75
Finish up the URL hints kitten
2018-02-14 12:34:01 +05:30
Kovid Goyal
62174fdbcc
DRYer
2018-02-14 11:19:58 +05:30
Kovid Goyal
dff7ddea39
Make the default intense black a little lighter
...
Brings it closer to the color definitions at:
https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit
2018-02-14 11:17:07 +05:30
Kovid Goyal
0c3257b6b9
Start work on url hints kitten
2018-02-14 11:01:17 +05:30
Kovid Goyal
4bbf5c0bc9
Allow choosing a match by index in the search by name panel as well
2018-02-13 11:25:45 +05:30
Kovid Goyal
b0820f6e13
Use . instead of r for the index char
2018-02-13 11:10:35 +05:30
Kovid Goyal
b0f5d8dfdc
Fix table row generation for non-name unicode input panels
2018-02-13 10:50:06 +05:30
Kovid Goyal
67e0d3723a
Implement favorites for unicode input
2018-02-13 10:33:55 +05:30
Kovid Goyal
a36f4a4670
Add a Emoji panel to the unicode input kitten
2018-02-13 09:06:39 +05:30
Kovid Goyal
dab852c412
Implement searching for unicode characters by name
2018-02-12 14:08:54 +05:30
Kovid Goyal
193ac6cd81
Forgot to remove from recent when adding to top of list
2018-02-12 12:39:02 +05:30
Kovid Goyal
34ca8419bb
Finish chose unicode symbol by recently used
2018-02-12 10:19:29 +05:30
Kovid Goyal
6094aabe26
...
2018-02-12 10:19:29 +05:30
Kovid Goyal
19648257f2
Have wcwidth() ignore SGR
2018-02-12 10:19:29 +05:30
Kovid Goyal
3363a9459b
Implement drawing of titlebar, remembering of mode and fix various bugs in tui
2018-02-12 10:19:29 +05:30
Kovid Goyal
4d92f4871a
Mark names.h as being generated
2018-02-12 10:19:29 +05:30
Kovid Goyal
f0d4ad16d2
Work on search by name in unicode input
2018-02-12 10:19:29 +05:30
Kovid Goyal
2cc8402458
A FAQ entry about terminfo over SSH
2018-02-12 10:19:12 +05:30
Kovid Goyal
1c79320133
Fix #319
2018-02-11 13:03:20 +05:30
Kovid Goyal
8b099d969f
oops
2018-02-11 11:37:05 +05:30
Kovid Goyal
61157e8763
Remove the passing of swap_interval as a constructor parameter
...
It was unused and makes it more complicated to override via an option,
if needed.
2018-02-11 11:14:48 +05:30
Kovid Goyal
f97d078f81
Fix kitty saving incorrect window heights
...
Typo caused saved window height to be actually the window width
2018-02-10 10:00:54 +05:30
Kovid Goyal
a14cf81422
Store cached window sizes in the cache dir rather than the config dir
...
A side-effect is that on the very next start kitty wont remember window
sizes, apologies for the on convenience.
2018-02-10 10:00:47 +05:30
Kovid Goyal
feeba9b5f5
Add a note about where kitty @ messaging works
2018-02-10 07:35:36 +05:30
Kovid Goyal
b1b76ca250
Redraw windows when the window manager tells us they have been damaged
...
Needed on systems with non-compositing window managers. Fix #317
2018-02-10 06:54:30 +05:30
Kovid Goyal
e119ed0daa
Ignore harmless KeyError while modifying selectors
2018-02-09 20:20:18 +05:30
Kovid Goyal
8c18486836
Module with all the data for unicode entry by character name
2018-02-09 19:56:25 +05:30
Kovid Goyal
b6ed3951bc
Add the kittens dir when building the package
2018-02-09 16:59:15 +05:30
Kovid Goyal
ea178ea689
Forgot to marcj launcher script executable
2018-02-09 16:48:04 +05:30
Kovid Goyal
973bbf3f8a
Fix #316
2018-02-09 16:44:52 +05:30
Kovid Goyal
3068846d8f
Implement using Ctrl+Shift+u to input unicode
...
Fixes #302
2018-02-08 22:47:17 +05:30
Kovid Goyal
194454715f
Basic unicode input works
2018-02-08 22:16:39 +05:30
Kovid Goyal
ac02e053ee
Dont save/restore DECCOLM since it is actually unused in kitty
2018-02-08 22:12:51 +05:30
Kovid Goyal
75db360929
...
2018-02-08 12:57:57 +05:30
Kovid Goyal
f9141120aa
A few fixes for the extended key protocol
2018-02-08 12:57:16 +05:30
Kovid Goyal
d19f9e5b96
Fix error handling in tui.loop
2018-02-08 12:33:27 +05:30
Kovid Goyal
213a223861
Typo in incremental decoder init
2018-02-08 11:56:34 +05:30
Kovid Goyal
ef9a24932f
Start work on unicode input kitten
2018-02-08 11:00:57 +05:30
Kovid Goyal
bf5b0070c1
Add note about terminfo property used for styled underlines
2018-02-08 10:29:37 +05:30
Kovid Goyal
2ab6f57159
Add non-standard terminfo capabilities
...
Advertises support for truecolor and styled underlines.
The truecolor properties are used by at least tmux and neovim.
2018-02-08 10:26:13 +05:30
Kovid Goyal
77d46630d7
Update bundled glfw
2018-02-08 09:15:40 +05:30
Kovid Goyal
b78612aebd
Entry point to run python on cmd line and from scripts
2018-02-08 09:11:13 +05:30
Kovid Goyal
0f63d1bfa7
...
2018-02-07 22:41:03 +05:30
Kovid Goyal
66a897cc80
Add interrupt and eot callbacks
2018-02-07 19:46:53 +05:30
Kovid Goyal
3828511051
forgot to include in last commit
2018-02-07 14:40:23 +05:30
Kovid Goyal
226a89c184
Add JSON definition of key encoding
2018-02-07 14:39:11 +05:30
Kovid Goyal
e3b4919c17
Finish up tui.Loop
2018-02-07 13:30:34 +05:30
Kovid Goyal
168bc58635
The kittens learn about mice
2018-02-07 12:40:04 +05:30
Kovid Goyal
f4f0b8fd5f
Kittens learn about bracketed paste
2018-02-07 10:39:05 +05:30
Kovid Goyal
13c034c613
Add link to ncurses FAQ on bce as well
2018-02-07 08:06:24 +05:30
Kovid Goyal
35f1658f4a
Key and text handler for the kittens
2018-02-06 20:58:46 +05:30
Kovid Goyal
328f22adab
Let update_cell_emtrics() know if it is being called in response to a DPI change
2018-02-06 20:12:57 +05:30
Kovid Goyal
22cf67b407
More work on tui.loop
2018-02-06 20:08:28 +05:30
Kovid Goyal
0c7d51dd9d
Avoid unnecessary draw calls with multiple OS Windows
...
Do not ask the GPU to draw and swap buffers for OS Windows that are not
dirtied. See #313
2018-02-06 19:32:24 +05:30
Kovid Goyal
fa87ce72a8
A terminal input parse helper for the kittens
2018-02-06 17:29:05 +05:30
Kovid Goyal
ff2e5b3966
Avoid unnecessary calls to mark_for_codepoint
2018-02-06 11:23:39 +05:30
Kovid Goyal
96c93fa252
Add support for emoji presentation when choosing fallback fonts
2018-02-06 11:11:22 +05:30
Kovid Goyal
e830b7edf7
Add emoji presentation variation selector support to wcswidth() as well
2018-02-06 10:16:23 +05:30
Kovid Goyal
9c874f6685
Add support for the unicode emoji presentation variation selector
2018-02-06 09:52:55 +05:30
Kovid Goyal
b8ab15bea8
Fix incorrect window border drawing for overlay windows
2018-02-06 09:41:19 +05:30
Kovid Goyal
6c7247f726
Disable display_scrollback for overlay windows
2018-02-06 09:36:36 +05:30
Kovid Goyal
7674aa4e7c
Add FAQ entry about bce in vim
2018-02-06 08:55:42 +05:30
Kovid Goyal
ebe97bf492
Get rid of safe_wcwidth
...
Since wcwidth is now in our control, we dont need to wrap it.
2018-02-05 10:11:30 +05:30
Kovid Goyal
fbe4d036d8
Have wcwidth() return 0 for marks instead of -1
...
Since kitty always treats marks as combinig chars, this allows us to
remove a few unnecessary branches
2018-02-05 10:06:05 +05:30
Kovid Goyal
c572b8bb1a
Refactor screen_draw()
...
Make it a little faster and also clearer, splitting out
the logic for combining chars into a separate function.
2018-02-05 09:55:17 +05:30
Kovid Goyal
59a5e23466
Almost always resize glyphs that are too wide
...
When using FreeType, rescale glyphs that dont fit if they are more than
1px wider than the cell rather than 25% of the cell width. This matches
the behavior of CoreText and is needed for rendering the various Emoji
with default text presentation (i.e. emoji that have wcwidth() == 1)
2018-02-05 09:21:14 +05:30
Kovid Goyal
b9857f9499
Only consider emoji characters with emoji presentation to have width two
...
Fixes #308
2018-02-05 09:21:13 +05:30
Kovid Goyal
b667e3a577
DRYer
2018-02-05 09:19:12 +05:30
Kovid Goyal
240b1475c7
Fix regression that caused a few ligatures to not render correctly in rare circumstances
...
This was caused by cache corruption. is_special_glyph() and
is_empty_glyph() were treading over each other if called in
the right sequence. Fixes #303
2018-02-05 00:04:05 +05:30
Kovid Goyal
3f24e5b571
A few more places to remove wcwidth from
2018-02-04 22:47:02 +05:30
Kovid Goyal
fc7ec1d3f7
Get rid of the option to use the system wcwidth
...
The system wcwidth() is often wrong. Not to mention that if you SSH into
a different machine, then you have a potentially different wcwidth. The
only sane way to deal with this is to use the unicode standard.
2018-02-04 21:02:30 +05:30
Kovid Goyal
452ff02b15
Oops added extra file in previous commit
2018-02-04 20:34:02 +05:30
Kovid Goyal
c2cb43cc07
Framework for kittens
2018-02-04 20:23:52 +05:30
Kovid Goyal
6736fd3835
Get rid of the query escape code for styled underlines
2018-02-04 16:40:48 +05:30
Kovid Goyal
a1bd69a9c2
Fix incorrect handling of CSI s/r/u
2018-02-04 16:16:57 +05:30
Kovid Goyal
561e63ee2d
Use an overlay window for browsing the scrollback buffer in less
2018-02-04 11:28:13 +05:30
Kovid Goyal
647b95631f
Add tests for layout operations with an overlay window
2018-02-04 11:28:13 +05:30
Kovid Goyal
aa518b2520
Add tests for basic layout operations
2018-02-04 11:28:13 +05:30
Kovid Goyal
51c0f01539
Support for overlay windows in the layout manager
2018-02-04 11:28:02 +05:30
Kovid Goyal
cc9a19b303
Move set_active_window into base class
...
It was only used in a single sub-class anyway
2018-02-02 13:56:25 +05:30
Kovid Goyal
2ee9844c2b
Track cursor position explicitly during rewrap
...
Instead of using heuristics to position the cursor after a resize, track
the position during re-wrapping and place the cursor at the re-wrapped
position. Fixes #242 (I hope)
2018-02-02 13:06:18 +05:30
Kovid Goyal
4c53a74fa9
Fix resize debounce implementation
2018-02-02 13:06:18 +05:30
Kovid Goyal
9b0ffdbf5a
A spot of refactoring
2018-02-02 11:19:42 +05:30
Kovid Goyal
2777b89e45
Update bundled glfw
2018-02-01 13:03:26 +05:30
Kovid Goyal
7f90430414
Designating charsets should not switch to them
...
Fixes #301
2018-02-01 12:05:07 +05:30
Kovid Goyal
ee4e56edf9
...
2018-02-01 10:26:17 +05:30
Kovid Goyal
93c83d03c0
More robust private mode restore
2018-02-01 09:45:34 +05:30
Kovid Goyal
855b3de473
Implement support for save/restore of DEC private modes (CSI ? s/r)
2018-02-01 09:19:43 +05:30
Kovid Goyal
a9be05c885
...
2018-01-31 18:13:36 +05:30
Kovid Goyal
9f3dfc27da
version 0.7.1
2018-01-31 10:37:58 +05:30
Kovid Goyal
4b4f6bc928
Update CHANGELOG
2018-01-31 10:34:54 +05:30
Kovid Goyal
273735f9dc
...
2018-01-31 10:14:08 +05:30
Kovid Goyal
b95e0fb80e
Shorten build/run commands
2018-01-30 15:59:31 +05:30
Kovid Goyal
6ad21fc98f
Update bundled glfw
2018-01-29 12:30:05 +05:30
Kovid Goyal
bff9b03935
...
2018-01-28 10:18:02 +05:30
Kovid Goyal
edf9413356
Add a setting to adjust the width of cells, similar to the existing setting to adjust the height of cells
2018-01-28 10:16:59 +05:30
Kovid Goyal
c74f4a8165
Fix extra columns cut-off from the right edge of italic characters that are too wide to fit in a cell
2018-01-28 10:06:39 +05:30
Kovid Goyal
8201cd3288
Add a Makefile target for building kitty-profile
2018-01-26 21:35:48 +05:30
Kovid Goyal
1603310b86
Fix off-by-one when iterating over selections that stretch into the history buf
...
Fixes #295
2018-01-25 20:50:34 +05:30
Kovid Goyal
627b91ffba
version 0.7.0
2018-01-24 15:33:16 +05:30
Kovid Goyal
9ad65f2e1d
Cleanup layouts patch
...
Fix bottom rect in horizontal layout not covering all windows. Fix pep8
issues. Add README and CHANGELOG entries.
2018-01-23 19:35:30 +05:30
Guybrush Threepwood
a6a606ff3d
Added vertical and horizontal layouts
2018-01-23 19:30:41 +05:30
Kovid Goyal
63317f9c78
macOS: Fix alt+arrow keys not working when disabling the macos_option_as_alt config option.
2018-01-21 15:41:56 +05:30
Kovid Goyal
46d9dfb614
...
2018-01-20 17:33:55 +05:30
Kovid Goyal
be3b33af06
Update CHANGELOG
2018-01-19 17:08:21 +05:30
Kovid Goyal
04e1b8b1ae
tab bar blank rects dont extend down enough
2018-01-19 17:05:18 +05:30
Kovid Goyal
213768b6e0
Option to place tab bar at the top edge
...
Fixes #288
2018-01-19 17:04:58 +05:30
Kovid Goyal
aff1abdb26
Fix top line of hollow block cursor 1px too high
2018-01-19 16:23:47 +05:30
Kovid Goyal
44a413df81
Fix blank rects on the sides of the tab bar not being drawn
2018-01-19 16:02:07 +05:30
Kovid Goyal
4f12c91fff
Use the new region function everywhere
...
Centralizes window layout calculation and no longer assumes
tab bar geometry
2018-01-19 15:56:07 +05:30
Kovid Goyal
b6188bf436
Move window region calculations into one place
2018-01-19 11:31:44 +05:30
Kovid Goyal
b9a14e0e4a
A Makefile target for building kitty.app
2018-01-19 10:42:12 +05:30
Kovid Goyal
6882c23f43
Update CHANGELOG
2018-01-18 16:26:33 +05:30
Kovid Goyal
80301d465b
Handle non-BMP combining characters
...
Use a level of indirection to store combining characters. This allows
combining characters to be stored using only two bytes, even if they are
after USHORT_MAX
2018-01-18 16:25:42 +05:30
Kovid Goyal
32632264ee
Mapping that can be used to store unicode mark symbols in only two bytes
2018-01-18 16:06:07 +05:30
Kovid Goyal
409bd37db5
Store combining chars as an array in the Cell
...
Makes it easier to increase the number of combining chars if needed,
rather than storing them as a mask.
2018-01-18 14:10:58 +05:30
Kovid Goyal
5fd4bc965f
Annotate Cell structure
...
Make it clear what parts are needed only on the CPU
2018-01-18 12:47:49 +05:30
Kovid Goyal
e86e5ce1d8
...
2018-01-18 00:15:39 +05:30
Kovid Goyal
5faa649452
Drop the dependency on libunistring
2018-01-18 00:09:40 +05:30
Kovid Goyal
2ddc7e8c80
Have all marks return a wcwidth of -1
...
Mirrors recent change to onsidering all marks combining chars instead of
only the marks with a non-zero combining class
2018-01-17 23:25:59 +05:30
Kovid Goyal
ed700ff830
...
2018-01-17 21:59:10 +05:30
Kovid Goyal
33ed873997
Remove unnecessary extra test for combinig characters
...
There are not combining characters with a non-zero combining class that
are not in the marks category.
2018-01-17 21:56:30 +05:30
Kovid Goyal
9125c00f96
Update CHANGELOG
2018-01-17 21:50:00 +05:30
Kovid Goyal
73fe3293be
Fix copying from selection being restricted to only the visible part of the selection. Fixes #287
2018-01-17 21:39:24 +05:30
Kovid Goyal
804c4fbe19
Recognize characters from the unicode Mark categories as combining characters, even if they do not have a combining class (i.e. are not re-ordered). Fixes #286
2018-01-15 11:24:11 +05:30
Kovid Goyal
d6c82ba21c
oops
2018-01-14 11:18:44 +05:30
Kovid Goyal
67308f2ca1
Add some documentation for the shaping algorithm
2018-01-14 11:18:44 +05:30
Kovid Goyal
4a17a946fb
Ensure groups dont have too many cells
2018-01-14 11:18:44 +05:30
Kovid Goyal
1ae7ae4a1d
Fix consecutive separate ligatures being rendered in the same group
...
Rendering multiple ligatures in the smae group is bad for performance
and also causes incorrect rendering if the last ligature in the group
does not fit into the number of cells in the group.
2018-01-14 11:18:44 +05:30
Kovid Goyal
404ca23de3
Make handling of last glyph a little more intelligent
2018-01-14 11:18:44 +05:30
Kovid Goyal
d385952fef
Add a bounds check
2018-01-14 11:18:44 +05:30
Kovid Goyal
f03cac8a9d
Allow storing more flags in the special glyph cache
2018-01-14 11:18:44 +05:30
Kovid Goyal
4b501fd694
Fix rendering of ligatures with ligature fonts that dont use dummy glyphs
2018-01-14 11:18:43 +05:30
Kovid Goyal
872d39eb2c
Have the ctrl+shift+<key> generate the ASCII C0 control codes for the few shifted control codes there are.
...
See #285
2018-01-14 11:18:30 +05:30
Kovid Goyal
0341cae922
Fix unused function warning
2018-01-13 15:49:44 +05:30
Kovid Goyal
5357a9a1cc
Merge branch 'us/master' of https://github.com/koekeishiya/kitty
2018-01-13 07:33:30 +05:30
koekeishiya
3695538a11
fix mac os_window focus issue
2018-01-12 20:24:11 +01:00
Kovid Goyal
7780d52930
DRYer
2018-01-12 11:27:23 +05:30
Kovid Goyal
6a23b4ee47
Allow kitty @xxx in addition to kitty @ xxx
2018-01-12 11:23:34 +05:30
Kovid Goyal
f48b770036
macOS: Fix focus not being transferred on OSWindow close
...
Fixes #280
2018-01-12 08:05:12 +05:30
Kovid Goyal
81b5d2c4f2
Option to copy to clipboard on mouse select
2018-01-12 07:33:21 +05:30
Kovid Goyal
d43d6ab0a9
Update bundled glfw
2018-01-12 05:34:53 +05:30
Kovid Goyal
5a4e883360
Merge branch 'macos-logo-make' of https://github.com/zchee/kitty
2018-01-11 22:31:18 +05:30
Koichi Shiraishi
eb93cd4048
Add missing 64 size because doesn't create icon_32x32@2x.png
2018-01-12 00:59:19 +09:00
Koichi Shiraishi
d83e3fddb0
Add install 'optipng' description because logo/make.py depends 'optipng'
2018-01-12 00:58:02 +09:00
Kovid Goyal
80ca25e879
...
2018-01-11 16:03:23 +05:30
Kovid Goyal
c86b34aacd
Move to_color into config_utils
2018-01-11 16:02:52 +05:30
Kovid Goyal
8da426039b
Make the config parsing code more re-useable
2018-01-11 12:17:18 +05:30
Kovid Goyal
9184e9a28f
Update CHANGELOG
2018-01-11 10:46:50 +05:30
Kovid Goyal
578d537d5f
kitty icat: Fix some PNG images not being displayed
...
Work around for bug in ImageMagick where it converts images
into rgba data with fewer rows than specified. Fixes #276
2018-01-11 09:56:40 +05:30
Kovid Goyal
236c92b2b4
No longer use a shell script for the wrapper .app
2018-01-11 08:40:35 +05:30
Kovid Goyal
66a46279f4
...
2018-01-11 00:26:29 +05:30
Kovid Goyal
eb35edbe20
kitty icat: Fix typo that broke the SIGWNCH signal handler
2018-01-11 00:24:26 +05:30
Kovid Goyal
7cf2404331
Update CHANGELOG
2018-01-10 15:29:58 +05:30
Kovid Goyal
9ccc6bf835
Fix incorrect handling of zero extra pixel offset
2018-01-10 13:54:51 +05:30
Kovid Goyal
025a46bb35
Fix the in cell offset calculations
2018-01-10 13:50:44 +05:30
Kovid Goyal
677e8a1ae9
Make the signal handler a little simpler
2018-01-10 13:37:43 +05:30
Kovid Goyal
03702772d3
kitty icat: Add a --scale-up option to expand images when used with the --place operator
2018-01-10 13:32:05 +05:30
Kovid Goyal
3cd744b247
Implement @focus-window
2018-01-10 13:23:04 +05:30
Kovid Goyal
88523b2692
Add a note about @ls to the tutorial
2018-01-10 13:00:59 +05:30
Kovid Goyal
dcb39eb210
...
2018-01-10 12:57:15 +05:30
Kovid Goyal
102823809b
Add a tutorial for controlling kitty from scripts
2018-01-10 12:54:21 +05:30
Kovid Goyal
23f2b29069
Add --keep-focus for @new-window
2018-01-10 12:36:15 +05:30
Kovid Goyal
7b33a87725
@send-text allow sending from files and stdin
2018-01-10 10:37:43 +05:30
Kovid Goyal
6dde573ed9
Fix __name__ != __main__ when using runpy in the osx-bundle
2018-01-10 08:31:22 +05:30
Kovid Goyal
566e641be1
Allow easily building a kitty.app wrapper to run kitty from source
2018-01-10 07:44:16 +05:30
Kovid Goyal
08d5448523
Move creation of Info.plist and kitty.icns into osx-bundle
2018-01-10 06:58:57 +05:30
Kovid Goyal
c11a20f1ec
Add --new-tab to @new-window
2018-01-09 23:09:57 +05:30
Kovid Goyal
e5b9bd2e5a
Implement @get-text
2018-01-09 22:48:24 +05:30
Kovid Goyal
6ad49bd7fb
Add an option to override the default shell
2018-01-09 16:28:46 +05:30
Kovid Goyal
5d082d8d5a
Implement @new-window
2018-01-09 16:13:28 +05:30
Kovid Goyal
977575da73
Implement @close-tab
2018-01-09 15:30:46 +05:30
Kovid Goyal
bced6f31b1
Implement @close-window
2018-01-09 15:27:12 +05:30
Kovid Goyal
6bf04e22cc
Fix send_text parsing choking on '''
2018-01-09 13:10:28 +05:30
Kovid Goyal
2f9784809d
Chunk up overly large send text inputs
2018-01-09 02:51:22 +05:30
Kovid Goyal
3e85497c2c
Implement @set-tab-title
2018-01-08 16:13:38 +05:30
Kovid Goyal
3b551a1dee
Implement @set-window-title
2018-01-08 14:04:27 +05:30
Kovid Goyal
d2fdb1c1eb
DRYer
2018-01-08 13:57:43 +05:30
Kovid Goyal
db92af68e9
Fix a couple of typos
2018-01-08 13:54:08 +05:30
Kovid Goyal
815087460c
...
2018-01-08 13:25:25 +05:30
Kovid Goyal
b4cb9d7c4d
...
2018-01-08 13:07:47 +05:30
Kovid Goyal
c6d10c6a23
Use the launch time argv for cmdline on macOS
2018-01-08 13:07:06 +05:30
Kovid Goyal
464c7a80e2
Implement window matching for remote control
2018-01-08 13:01:57 +05:30
Kovid Goyal
4f56cce727
Fix client eating up send-text when seding to same window
2018-01-08 12:48:15 +05:30
Kovid Goyal
7dea6e0ef4
Initial implementation of send-text remote cmd
2018-01-08 12:48:15 +05:30
Kovid Goyal
8c143db381
Add documentation for the ls command
2018-01-08 12:48:15 +05:30
Kovid Goyal
0cea6d5a1b
Implement window listing
2018-01-08 12:48:15 +05:30
Kovid Goyal
eff881f4bb
Allow sending arbitrary sized escpae codes to children
2018-01-08 12:48:14 +05:30
Kovid Goyal
c64fd1760c
More work on remote control
2018-01-08 12:48:14 +05:30
Kovid Goyal
9e361700d2
Handle reading of RC response via stdin
2018-01-08 12:48:14 +05:30
Kovid Goyal
1f976644bf
Refactor read with timeout logic into its own function
2018-01-08 12:48:14 +05:30
Kovid Goyal
f3cb68ee40
Framework for remote control
2018-01-08 12:48:14 +05:30
Kovid Goyal
85a3da057f
Session file: Allow setting the title for windows
2018-01-08 12:47:47 +05:30
Kovid Goyal
c551384369
Session file: Allow specifying multiple cd directives per tab to have different windows launched with different working directories
2018-01-08 12:38:01 +05:30
Kovid Goyal
ce230b071b
Add tests for SGR protocol encoding
2018-01-07 23:48:16 +05:30
Kovid Goyal
13d5f04ad9
A spot of refactoring
2018-01-07 21:26:28 +05:30
Daniels Kursits
3b861de3d2
Fix mouse move events being reported as drag events
...
when using the SGR mouse reporting protocol
Fixes #271
2018-01-07 21:12:50 +05:30
Kovid Goyal
1ef010689d
Add support for clearing the scrollback buffer
...
kitty now supports using \E3J to clear the screen and scrollback buffer.
See #268
2018-01-06 23:55:49 +05:30
Kovid Goyal
3523ab283f
More trailing whitespace
2018-01-06 09:12:23 +05:30
Kovid Goyal
5b2a9b101d
Fix trailing whitespace
2018-01-05 21:27:24 +05:30
Kovid Goyal
fdcfcfa1b9
Make alt+backspace delete the previous word
...
i.e. alt+backspace now sends ^W (werase). THis matches the behavior of
terminal.app and gnome-terminal. Fixes #264
2018-01-05 21:08:42 +05:30
Kovid Goyal
88e9c21a3b
Ensure a kitty executable is on PATH even when running from source
2018-01-05 14:56:01 +05:30
Kovid Goyal
973352a98d
Allow + prefixing of special invocations
2018-01-05 14:36:31 +05:30
Kovid Goyal
f06f871dfc
Handle fork() failures more gracefully
2018-01-05 13:57:49 +05:30
Kovid Goyal
e03c713294
Remove a few more signal unsafe function calls between fork() and exec()
2018-01-05 00:24:15 +05:30
Kovid Goyal
aa107956f9
...
2018-01-04 23:55:03 +05:30
Kovid Goyal
d725578e1b
Silence spurious compiler warning
2018-01-04 23:54:35 +05:30
Kovid Goyal
239eb8202b
Move fork()+exec() of child processes into C
...
By avoiding python in the child process before exec we ensure that
malloc and other unsafe to use after fork functions are not used.
Should also mean that less pages will need to be copied into thec hild
process, leading to marginally faster startups.
2018-01-04 23:19:09 +05:30
Kovid Goyal
58d7439719
Add a note on installing dev packages for X11 on linux
...
Fixes #260
2018-01-04 18:06:11 +05:30
Kovid Goyal
cc145ec3dd
DRYer
2018-01-04 12:38:35 +05:30
Kovid Goyal
847ce37160
Take the mouse wheel multiplier into account when generating keypresses for mouse wheel events. Fixes #262
2018-01-04 12:34:31 +05:30
Kovid Goyal
0305009766
Remove --without-cairo from brew install since it is ignored anyway
2018-01-03 09:22:23 +05:30
Kovid Goyal
fe1b056371
Allow using macOS specific modifier key names in the config file
...
cmd and option can now be used instead of super and alt respectively.
2018-01-03 08:59:36 +05:30
Kovid Goyal
0c4804db79
DRYer
2017-12-31 09:04:22 +05:30
Kovid Goyal
f7e84df332
Add an explicit OpenGL version test
...
Apparently there are some pre 3.3 drivers that include the
texture_storage extension. Fixes #258
2017-12-31 08:36:50 +05:30
Kovid Goyal
bd654d22f4
Read the required wayland protocols version from upstream instead of hardcoding it
2017-12-28 14:12:46 +05:30
Kovid Goyal
115de36599
version 0.6.1
2017-12-28 10:40:42 +05:30
Kovid Goyal
b01c3483de
Add an option to fade text in inactive windows
...
Fixes #256
2017-12-28 10:36:48 +05:30
Kovid Goyal
db7f566a0c
Update Changelog
2017-12-27 10:17:34 +05:30
Kovid Goyal
9f806e76e7
Fix incorrect condition for aborting cursor geometry calculation
2017-12-27 10:07:21 +05:30
Kovid Goyal
12bdd4dddd
Bump min version of wayland-protocols to match upstream
2017-12-27 07:24:38 +05:30
Kovid Goyal
72a1eb237d
Fix regression that broke drawing of hollow cursor when window loses focus
...
Fixes #255
2017-12-27 07:15:48 +05:30
Kovid Goyal
6a89289907
Merge branch 'recmod' of https://github.com/grimpy/kitty
2017-12-27 06:40:53 +05:30
Kovid Goyal
7ed835cf13
Fix a crash when detecting URLs continued onto multiple lines
...
Fixes #244
2017-12-27 06:35:09 +05:30
Kovid Goyal
4621ff41d9
Skip building the wayland backend on systems with missing wayland protocol definitions
...
Fixes #254
2017-12-27 06:22:36 +05:30
Jo De Boeck
60e17d5224
Make it possible to modify rectangle selection modifiers
...
Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com >
2017-12-24 18:40:25 +02:00
Kovid Goyal
1e2f7c705d
...
2017-12-22 12:36:40 +05:30
Kovid Goyal
1ebf0b95c4
Implement reading of cwd of a process on macOS as well
2017-12-21 12:30:34 +05:30
Kovid Goyal
c5acd94456
Add new actions to open tabs/windows with the working directory set to the working directory of the current window
...
Fixes #237
2017-12-21 11:29:21 +05:30
Kovid Goyal
448ffe01c3
Fix new window being created with different DPI not changing global DPI
2017-12-21 09:06:07 +05:30
Kovid Goyal
5c882f3290
Fix Travis flake failure on gen-wcwidth.py because of old python version
2017-12-20 23:38:16 +05:30
Kovid Goyal
70a4720bf9
Fix for window being opened on secondary monitor using primary monitor DPI
2017-12-20 23:01:06 +05:30
Kovid Goyal
c8aee8c881
Automatically adjust cell height when DPI changes
...
DPI changes are detected as a change in the ration of the window size to
the framebuffer size. I dont know how reliable that is. Possiblly Fix #77
2017-12-20 22:55:05 +05:30
Kovid Goyal
c2ad0607b8
Fix trailing whitespace in generated unicde data files
2017-12-20 22:44:20 +05:30
Kovid Goyal
d1282b9f55
Add a script to generate wcwidth as well
...
Generated function is more efficient than the implementation from
wcwidth9 and also makes it easy to update when the unicode standard
changes.
2017-12-20 16:18:05 +05:30
Kovid Goyal
11ee317884
Fix some emoji glyphs not colored on Linux
...
Linux has a plethora of fonts that contain some emoji glyphs. If one of
those fonts is used as a fallback font for a non-emoji character, it
also gets used for emojis -- leading to non-colored emoji. Fix by making
sure the first fallback font is a dedicated emoji font.
2017-12-20 10:40:27 +05:30
Kovid Goyal
e69de2f968
Use the new glfw API for setting WM_CLASS
2017-12-20 09:18:29 +05:30
Kovid Goyal
2f4f3e3331
Update bundled glfw
2017-12-20 09:07:06 +05:30
Kovid Goyal
020f8a2047
Add trailing space test to travis
2017-12-20 08:52:06 +05:30
Kovid Goyal
b8faba2a16
More trailing space removal
2017-12-20 08:50:09 +05:30
Kovid Goyal
0fcce6ec58
Remove trailing whitespace from native code files
2017-12-20 08:44:47 +05:30
Kovid Goyal
15f5ea92b8
Merge branch 'master' of https://github.com/FabioLolix/kitty
2017-12-20 08:24:20 +05:30
FabioLolix
2bbb5d25eb
Updated readme
2017-12-20 00:12:58 +01:00
Kovid Goyal
8d94285a5d
Ensure underlines are rendered even for fonts with very poor metrics
...
Fixes #236
2017-12-19 00:54:04 +05:30
Kovid Goyal
eed11361c5
Fix typo in config directory override env var
2017-12-18 06:59:19 +05:30
Kovid Goyal
b759f96f96
version 0.6.0
2017-12-18 06:39:55 +05:30
Kovid Goyal
df3342d121
Update CHANGELOG
2017-12-18 06:28:57 +05:30
Kovid Goyal
862ed40c44
Update CHANGELOG
2017-12-18 06:26:16 +05:30
Kovid Goyal
8018024cb7
Fix middle and right mouse button swapped
...
Fixes #235
2017-12-18 05:48:51 +05:30
Kovid Goyal
c8d5f232b3
Some documentation for the kitty extensions to DECCARA
2017-12-17 18:13:39 +05:30
Kovid Goyal
d48b76508b
Implement DECCARA
...
Ability to set text attributes/colors in arbitrary screen regions,
instead of working via the cursor. Note that kitty extends the original
DECCARA spec from the VT-510 to allow setting all supported SGR
attributes.
2017-12-17 18:03:39 +05:30
Kovid Goyal
2d62e10a7e
...
2017-12-16 15:40:09 +05:30
Kovid Goyal
0b3a5a7d45
icat: Add --clear to clear all display images
2017-12-16 10:33:16 +05:30
Kovid Goyal
076658a1e8
Possible fix for crash reported in #233
2017-12-16 10:23:12 +05:30
Kovid Goyal
be1a05b322
...
2017-12-16 10:22:03 +05:30
Kovid Goyal
945613555a
icat: Add option to display image at arbitrary location on screen
...
Fixes #228
2017-12-16 09:45:49 +05:30
Kovid Goyal
5f75becc5a
Add note about creating launcher app for running kitty from source
2017-12-16 09:29:19 +05:30
Kovid Goyal
51ac78f74d
X11: Set the WINDOWID environment variable
...
Fixes #232
2017-12-16 08:57:52 +05:30
Kovid Goyal
3cce9b1c38
...
2017-12-16 08:54:55 +05:30
Kovid Goyal
8a9ee6f3f5
...
2017-12-15 16:32:28 +05:30
Kovid Goyal
d3059c09e0
Nicer CLI help output
2017-12-15 14:49:42 +05:30
Kovid Goyal
1f093b4ff2
icat: Add an option to only detect image display support
2017-12-15 14:06:41 +05:30
Kovid Goyal
50470b5747
icat: Add --transfer-mode option
...
Explicitly control the transfer mode instead of auto-detecting
2017-12-15 13:34:39 +05:30
Kovid Goyal
304f21e79d
icat: Fix temp files not being deleted when transmitting using escape codes
2017-12-15 13:18:18 +05:30
Kovid Goyal
cb04deef63
icat: Add a command line argument for horizontal alignment
2017-12-15 13:08:27 +05:30
Kovid Goyal
ddb2e41352
Get rid of argparse from kitty-icat as well
2017-12-15 12:35:30 +05:30
Kovid Goyal
a6700c951a
Also filter 8-bit control sequences when sanitizing
2017-12-15 09:36:45 +05:30
Kovid Goyal
684a2e05f4
Move logical DPI calculation into glfw module
...
Now DPI state is maintained in only one central place.
2017-12-14 18:30:53 +05:30
Kovid Goyal
c7e1a12eb6
Have pt_to_px use global_state instead of get_dpi
...
DRYer and reduces code size
2017-12-14 18:04:10 +05:30
Kovid Goyal
ce7be5a05e
Fix #226
2017-12-14 06:42:52 +05:30
Kovid Goyal
433640de84
Support running on the "low power" GPU on dual GPU macOS machines
...
Fixes #136
2017-12-14 06:14:22 +05:30
Kovid Goyal
7f19424f2d
Fix for kitty sometimes not detecting child death on macOS
2017-12-13 22:20:11 +05:30
Kovid Goyal
b9d0ec0d4c
CoreText: Use the layout engine to calculate cell height
...
Slower, but hopefully more accurate, since it takes into account
whatever kludges Apple is currently using to calculate line height
in its applications.
2017-12-13 14:12:23 +05:30
Kovid Goyal
869abc4d5c
...
2017-12-13 14:05:01 +05:30
Kovid Goyal
872118fcbe
CoreText: Fix incorrect underline position and thickness calculation
2017-12-13 13:59:11 +05:30
Kovid Goyal
da0309545e
Ensure bounds in add_line()
2017-12-13 13:46:28 +05:30
Kovid Goyal
54b802f1e6
Ensure bounds in add_dline()
2017-12-13 13:45:11 +05:30
Kovid Goyal
d097403a12
Implement select-by-rectangle when holding down Ctrl+Alt
...
Fixes #225
2017-12-13 13:26:55 +05:30
Kovid Goyal
c81a8216dc
Limit the max number of lines to extend URLs over
2017-12-13 12:18:35 +05:30
Kovid Goyal
95683c658b
When hovering over a URL, highlight the URL fully even if it continues over multiple lines. Note that URL detection has not changed. A URL will be detected only if the mouse hovers over the line containing the start of the URL.
2017-12-13 11:11:13 +05:30
Kovid Goyal
d25c0d42bc
CoreText: Ensure cell_width and cell_height are never zero
2017-12-13 09:35:50 +05:30
Kovid Goyal
77f0328f4f
Ensure mouse cursor is in default state when focus is switched to the OSWindow
2017-12-13 08:54:11 +05:30
Kovid Goyal
a1b4f7c92d
Fix COreText leak on exit
2017-12-13 08:27:33 +05:30
Kovid Goyal
47704f24c1
CoreText: Get rid of the line height fudge factor
...
It was leading to larger line heights than in iTerm on High Sierra with
Menlo. Also as per Apple documentation, line height should be ascent +
descent + leading.
https://developer.apple.com/library/content/documentation/TextFonts/Conceptual/CocoaTextArchitecture/TypoFeatures/TextSystemFeatures.html
2017-12-13 08:22:26 +05:30
Kovid Goyal
e0ef563885
Use glfw primary monitor content scale for logical DPI on macOS as well
...
It gives the correct DPI value on a MacBook Air monitor, while physical
DPI is too high, leading to overlarge fonts.
2017-12-12 23:47:42 +05:30
Kovid Goyal
2e570e21a0
Ensure kitty is on the PATH when running from kitty.app
2017-12-12 23:29:01 +05:30
Kovid Goyal
a962a28b36
...
2017-12-12 22:23:16 +05:30
Kovid Goyal
898395253b
Add test for ignored color id in SGR colon based color sequence
2017-12-12 18:50:37 +05:30
Kovid Goyal
346a9f68b1
Fix #227
2017-12-12 18:38:52 +05:30
Kovid Goyal
dbf8eb773c
Add a FAQ entry about building kitty.app
2017-12-12 09:49:41 +05:30
Kovid Goyal
47ed1a4dca
Make update-on-ox not depend on remote script
2017-12-11 23:11:34 +05:30
Kovid Goyal
4c566ee37f
Clarify FAQ entry further
2017-12-11 21:38:16 +05:30
Kovid Goyal
a29b424477
CoreText: Implement resizing of glyphs too wide to fit
2017-12-11 20:34:23 +05:30
Kovid Goyal
56a30a014c
Fix compilation order reversed
2017-12-11 20:28:36 +05:30
Kovid Goyal
abdc149f65
Update travis script
2017-12-11 19:10:00 +05:30
Kovid Goyal
005c4bf29e
Finish up CoreText based rendering
2017-12-11 19:04:44 +05:30
Kovid Goyal
c86c166448
More work on positioning glyphs with CoreText
2017-12-11 18:48:14 +05:30
Kovid Goyal
0999ce159e
Fix colors incorrect when rendering directly to buf
2017-12-11 10:43:32 +05:30
Kovid Goyal
98d8ab2953
Fix OT shaper not working on macOS
...
Also dont keep an extra reference to the hb font in fonts.c
2017-12-11 09:48:20 +05:30
Kovid Goyal
5407fa72b4
Start work on rendering with CoreText
2017-12-10 20:28:06 +05:30
Kovid Goyal
e332522a61
Mark backend API in fonts.h header
2017-12-10 09:21:46 +05:30
Kovid Goyal
ee27f23862
Add rgba and lcdfilter fields to the fc-dict
2017-12-09 12:58:23 +05:30
Kovid Goyal
b1853ca966
Dont insist color fonts have bitmaps
2017-12-09 12:01:43 +05:30
Kovid Goyal
ed2e83654f
Draw emoji on macOS using CoreText rather than FreeType
...
Needed because FreeType cannot handle the latest version of the Apple
Color Emoji font, which probably uses SVG-in-OTF instead of SBIX.
Finishes up the color emoji implementation.
2017-12-09 12:01:43 +05:30
Kovid Goyal
ec6dcd53b5
Finish up placement of color emojis
...
Note that for some reason rendering is broken on Apple
2017-12-09 12:01:43 +05:30
Kovid Goyal
0b6fe99611
Report errors rendering glyphs
2017-12-09 12:01:43 +05:30
Kovid Goyal
03847b15f6
Implement downsampling of color emoji bitmaps
...
Still need to fix placement of the downsampled bitmaps in the cell
2017-12-09 12:01:43 +05:30
Kovid Goyal
8d7515bd9b
Basic color emoji rendering working
...
Still need to downscale color bitmaps to fit into cells
2017-12-09 12:01:43 +05:30
Kovid Goyal
e4b839742c
Add option to control using color emoji or not
2017-12-09 12:01:43 +05:30
Kovid Goyal
f3cdf4194a
Prefer color emoji fonts
2017-12-09 12:01:43 +05:30
Kovid Goyal
ef6f4c2fbf
Improve fontconfig fallback font queries for emoji
2017-12-09 12:01:43 +05:30
Kovid Goyal
9cda51b5a8
Store sprites in an RGBA texture
...
Needed to support color emoji
2017-12-09 12:01:42 +05:30
Kovid Goyal
b8093d6b83
...
2017-12-09 11:28:49 +05:30
Kovid Goyal
ffedc5d170
...
2017-12-09 11:01:32 +05:30
Kovid Goyal
f223cd4b56
Set use_system_wcwidth to no by default
...
I am tired of seeing the endless bug reports from people running on
systems with outdated wcwidth() implementations.
2017-12-09 10:53:13 +05:30
Kovid Goyal
111c7fa57c
Ensure config file is always decoded as UTF-8
2017-12-08 01:27:35 +05:30
Kovid Goyal
e630abfe7f
Revert change to use libpng16
...
Does not fix the OP's problem.
2017-12-06 21:10:48 +05:30
Kovid Goyal
11b17c09ce
Call pkg-config with libpng16 instead of libpng
...
Should fix compilation on linux systems that have libpng12 as their
default libpng. libpng16 was released over five years ago! Sigh...
Fixes #216
2017-12-06 20:54:46 +05:30
Kovid Goyal
466d96c167
Remove spurious call to Py_DECREF
2017-12-06 10:13:57 +05:30
Kovid Goyal
c90223e4c8
Report unknown CSI r sequences
2017-12-06 00:31:03 +05:30
Kovid Goyal
01324a7ad2
Reduce the rescale threshold from 133% to 125%
2017-12-05 23:32:40 +05:30
Kovid Goyal
122ad8a1f8
Detect if a freetype font has color tables
2017-12-05 23:31:26 +05:30
Kovid Goyal
138bfcf2a8
Fix key-presses mapped to CSI codes not respecting SC81t mode
2017-12-05 20:21:13 +05:30
Kovid Goyal
c95418a947
Remove unused code
2017-12-05 20:21:13 +05:30
Kovid Goyal
b191727567
Some simple tests for sc81t
2017-12-05 20:21:12 +05:30
Kovid Goyal
c17c6cae4c
Support S8C1T mode
...
That is, eight bit control codes. When in S8C1T mode, kitty will send
only eight bit control codes to the client.
2017-12-05 20:21:12 +05:30
Kovid Goyal
ed9b332da5
Add an option to control the underline style for highlighting URLs on mouse over
2017-12-05 12:28:10 +05:30
Kovid Goyal
e8441ce697
Ensure double underline is gapped even when underline thickness is less than three pixels
2017-12-05 11:42:35 +05:30
Kovid Goyal
f2d00589d8
Update test to match new set of pre-rendered sprites
2017-12-04 12:41:50 +05:30
Kovid Goyal
e81ba3b207
Change undercurl escape code to 4:x
...
See https://github.com/neovim/neovim/issues/7479
for discussion. Also implement double underline.
2017-12-04 12:26:50 +05:30
Kovid Goyal
27cd303a05
Centralize code to convert to SGR
...
Conversion from formatting attributes to SGR now always goes through a
Cursor.
2017-12-04 10:51:06 +05:30
Kovid Goyal
52ecdfe3a9
Fix incorrect termcap query responses
...
Did not realize that the responses had to be processed via tparm() i.e.
they should be the actual bytes not the textual representation of them.
This broke the backspace key in vim.
2017-12-03 21:34:55 +05:30
Kovid Goyal
70f71e8ada
Fix #211
2017-12-03 00:30:11 +05:30
Kovid Goyal
d12063daad
Add configurable shortcuts to go to a tab by number
...
Fixes #208
2017-12-02 16:31:40 +05:30
Kovid Goyal
b9798c74d4
Support for DCS status and capabilities reporting codes
2017-12-02 14:35:06 +05:30
Kovid Goyal
c12bce3d2f
Respond to OSC color query escape codes
2017-12-01 21:02:30 +05:30
Kovid Goyal
73b501c961
Make color parsing a little more robust
...
Add a few tests for it
2017-12-01 20:02:47 +05:30
Kovid Goyal
08079ad889
Update README on layouts
2017-12-01 12:23:57 +05:30
Kovid Goyal
b4509e341a
Update glfw
2017-12-01 12:16:18 +05:30
Kovid Goyal
08ee77d11c
Allow D&D of files into kitty
...
Fixes #206
2017-12-01 12:16:17 +05:30
Kovid Goyal
868c1d634b
Apparently libunistring is already installed by brew
2017-12-01 12:16:17 +05:30
Kovid Goyal
ccc67b66c4
Add more options to customize the tab-bar
...
Fixes #203
2017-12-01 12:16:17 +05:30
Kovid Goyal
a0702f4a97
Add an option to set the window title
...
Fixes #201
2017-12-01 12:16:17 +05:30
Kovid Goyal
cada4a8ca8
Move changelog entries
2017-12-01 12:16:17 +05:30
Kovid Goyal
af69f714b1
Update CHANGELOG
2017-12-01 12:16:17 +05:30
Kovid Goyal
9c135f9f4c
Add a grid window layout
...
Fixes #192
2017-12-01 12:16:17 +05:30
Kovid Goyal
d1df5ad4e2
Enumerate window layout choices in help
2017-12-01 12:16:17 +05:30
Kovid Goyal
6352f585e8
Fix kitty discarding peer messages in rapid succession
2017-12-01 12:16:17 +05:30
Kovid Goyal
fe3bb92b54
...
2017-12-01 12:16:17 +05:30
Kovid Goyal
59243355f6
...
2017-12-01 12:16:16 +05:30
Kovid Goyal
fd49d17591
Paginate --help output
2017-12-01 12:16:16 +05:30
Kovid Goyal
1d9b36996a
Line wrap --help output
2017-12-01 12:16:16 +05:30
Kovid Goyal
0cac74d39a
Get rid of the horrible argparse
...
It's slow, bloated and has no support for decent output formatting
2017-12-01 12:16:16 +05:30
Kovid Goyal
fb41ecb2e5
Update bundled glfw
2017-12-01 12:16:16 +05:30
Kovid Goyal
0296d1f9a2
Fix refactor caused cursor visibility to no longer be respected
2017-12-01 12:16:16 +05:30
Kovid Goyal
b51100195a
Dont use FBO's unless absolutely necessary
...
Negative z-index images dont need FBO based rendering when the
background is opaque. Finishes up support for background_opacity.
Fixes #31
2017-12-01 12:16:16 +05:30
Kovid Goyal
b86e0ef669
Tell the OS we dont use depth and stencil buffers
2017-12-01 12:16:16 +05:30
Kovid Goyal
86e33f739c
Ensure OS windows have both buffers cleared after a resize/on first render
2017-12-01 12:16:16 +05:30
Kovid Goyal
259dcf376c
DRYer
2017-12-01 12:16:16 +05:30
Kovid Goyal
466155fd24
API needed for kitty-bar
2017-12-01 12:16:16 +05:30
Kovid Goyal
452fd71fea
Simplify blit vertex shader
...
Also fixes rendering on macOS which for some reason was not doing the
texture co-ordinate mapping correctly in the old shader.
2017-12-01 12:16:15 +05:30
Kovid Goyal
da8944b551
...
2017-12-01 12:16:15 +05:30
Kovid Goyal
5e2587920a
Call glViewport in the render loop
...
Ensure FBOs have correct viewport
2017-12-01 12:16:15 +05:30
Kovid Goyal
7fb48dc04c
...
2017-12-01 12:16:15 +05:30
Kovid Goyal
b8e477c6eb
Clamp the FBO texture
2017-12-01 12:16:15 +05:30
Kovid Goyal
a3b85883f8
Block cursor should not be affected by background_opacity
2017-12-01 12:16:15 +05:30
Kovid Goyal
e1c553e7b2
Wakeup main loop on peer message received
2017-12-01 12:16:15 +05:30
Kovid Goyal
be6151730d
Fix SPECIAL stage in interleaved rendering
2017-12-01 12:16:15 +05:30
Kovid Goyal
444d9536a7
Graphics programs should generate pre-multipled colors in interleaved mode
...
Also fix a few OpenGL state initialization issues.
2017-12-01 12:16:15 +05:30
Kovid Goyal
ffff343e3d
Work on rendering to FBO
2017-12-01 12:16:15 +05:30
Kovid Goyal
f85c050235
Get background_opacity working, at the cost of breaking negative z-index image rendering.
...
Image rendering will need to use an FBO since OpenGL cannot do proper alpha compositing.
As a first step, the interleaved shaders now generate premultiplied colors as opengl can only alpha blend pre-multipled colors
2017-12-01 12:16:14 +05:30
Kovid Goyal
fe214f43cb
Set _NET_STARTUP_ID before the window is mapped
2017-12-01 12:16:14 +05:30
Kovid Goyal
d9b0b5c08f
oops, forgot one place to enable GL_BLEND
2017-12-01 12:16:14 +05:30
Kovid Goyal
a561697f04
No need for GL_BLEND while drawing background colors
2017-12-01 12:16:14 +05:30
Kovid Goyal
bbc140e020
Only enable GL_BLEND when actually needed
2017-12-01 12:16:14 +05:30
Kovid Goyal
2bcbcfff44
Start work on background opacity
2017-12-01 12:16:14 +05:30
Kovid Goyal
1fb81d2265
Fix incorrect blending of foreground and background colors when negative z-index images are present
...
Also optimize the blending calculation a bit by using the mix() function
and just adding the text and strike alphas.
2017-12-01 12:16:14 +05:30
Kovid Goyal
3b4a242e26
Fix sprites uniform not being initialized when using layered rendering
...
Had no actual bad effects since it is initialized to zero anyway
2017-12-01 12:16:14 +05:30
Kovid Goyal
b8937bc151
Only use wayland if a special env var is present
...
wayland is currently fairly broken. No window decorations and no key
auto-repeat.
2017-12-01 12:16:14 +05:30
Kovid Goyal
b3de442116
pretty colors
2017-12-01 12:16:14 +05:30
Kovid Goyal
fb797d7735
...
2017-12-01 12:16:14 +05:30
Kovid Goyal
982a9320c5
Final fixes needed for wayland building
...
kitty now runs under wayland again
2017-12-01 12:16:13 +05:30
Kovid Goyal
47dec2c2e9
Dynamic detection of wayland
2017-12-01 12:16:13 +05:30
Kovid Goyal
eb8f4e0b3c
isosx -> is_macos
2017-12-01 12:16:13 +05:30
Kovid Goyal
85fcd51ea3
Enable building of glfw-wayland backend
2017-12-01 12:16:13 +05:30
Kovid Goyal
9ec6cf721f
Update compilation database even after failed builds
2017-12-01 12:16:13 +05:30
Kovid Goyal
bcd4c64b8a
Key compilation database by output as well
2017-12-01 12:16:13 +05:30
Kovid Goyal
3b0d8ec500
Nicer error when pkg-config fails
2017-12-01 12:16:13 +05:30
Kovid Goyal
73ce2ccb47
remove unused header
2017-12-01 12:16:13 +05:30
Kovid Goyal
a5078afd1e
Move the bell implementation into glfw
2017-12-01 12:16:13 +05:30
Kovid Goyal
32a6dd2aa1
Add a command line switch to set the name part of WM_CLASS independently
2017-12-01 12:16:13 +05:30
Kovid Goyal
02884c5045
Debounce audio bells
2017-12-01 12:16:12 +05:30
Kovid Goyal
25d7668b70
Add an option to control the audio bell volume on X11
2017-12-01 12:16:12 +05:30
Kovid Goyal
2ff39c1578
DRYer
2017-12-01 12:16:12 +05:30
Kovid Goyal
a11d6466c6
Update vendored glfw
2017-12-01 12:16:12 +05:30
Kovid Goyal
df56080303
Fix building on travis/macOS libunistring detection
2017-12-01 12:16:12 +05:30
Kovid Goyal
4d1eb1f729
Install libxkbcommon on Travis
2017-12-01 12:16:12 +05:30
Kovid Goyal
ec06dd7460
Add a --verbose build flag
2017-12-01 12:16:12 +05:30
Kovid Goyal
163ce2a066
Update CHANGELOG
2017-12-01 12:16:12 +05:30
Kovid Goyal
058c1bec10
Workaround for new windows not getting focus events on macOS
2017-12-01 12:16:12 +05:30
Kovid Goyal
ba40bf5e6f
remove no longer needed code
2017-12-01 12:16:12 +05:30
Kovid Goyal
d457abdee4
Prevent glfw from doing stupid stuff on cocoa
2017-12-01 12:16:11 +05:30
Kovid Goyal
3773aaa8a1
Get it building on macOS
2017-12-01 12:16:11 +05:30
Kovid Goyal
cfc99baac4
Get rid of ctypes based loading of libglfw/libX11
2017-12-01 12:15:36 +05:30
Kovid Goyal
b6be6ee1e7
Explicitly set expandtab
2017-12-01 12:15:36 +05:30
Kovid Goyal
dfd8a69cf2
Build kitty against bundled glfw
2017-12-01 12:15:36 +05:30
Kovid Goyal
9307486254
Initial import of glfw
2017-12-01 12:15:36 +05:30
Kovid Goyal
6a627cca9e
A spot of refactoring
2017-12-01 12:15:36 +05:30
Kovid Goyal
480f4bf44e
Build script should not fail on python without threading
2017-12-01 12:15:36 +05:30
Kovid Goyal
b5b2f11b18
Enable parallel builds
2017-12-01 12:15:36 +05:30
Kovid Goyal
ee232fb08c
API needed for kitty-bar
2017-12-01 12:15:36 +05:30
Kovid Goyal
ef7dcbf365
API to create initially hidden windows
2017-12-01 12:15:36 +05:30
Kovid Goyal
3e511d217b
Pass the window class and size settings when creating a grouped window
2017-12-01 12:15:36 +05:30
Kovid Goyal
b08f4ab593
Use startup notifications in single instance mode
2017-12-01 12:15:35 +05:30
Kovid Goyal
fa1ae39480
Update Changelog
2017-12-01 12:15:35 +05:30
Kovid Goyal
96483a0e92
Finish single_instance implementation
2017-12-01 12:15:35 +05:30
Kovid Goyal
7deb68de61
Get IPC working
2017-12-01 12:15:35 +05:30
Kovid Goyal
bf09c33b99
Move option_parser into its own module
2017-12-01 12:15:35 +05:30
Kovid Goyal
9e5882c9fb
Code to handle messages from peers
2017-12-01 12:15:35 +05:30
Kovid Goyal
c5d17934e4
Function to establish IPC communication
2017-12-01 12:15:35 +05:30
Kovid Goyal
c8c1a3618c
Get the user cache dir path on macOS
2017-12-01 12:15:35 +05:30
Kovid Goyal
593b4c5a46
Use sigaction() rather than signal() to register signal handlers
2017-12-01 12:15:35 +05:30
Kovid Goyal
d7ea28f8e7
Fix sprite texture not initially bound for new OSWindow
2017-12-01 12:15:35 +05:30
Kovid Goyal
c4bcda80e9
Fix removing OSWindow breaking pointer references in glfw
2017-12-01 12:15:34 +05:30
Kovid Goyal
528573ac80
Make sure window context is correct for all remove_vao calls
2017-12-01 12:15:34 +05:30
Kovid Goyal
dba067d875
Ensure correct OpenGL ctx in effect when creating a new window
2017-12-01 12:15:34 +05:30
Kovid Goyal
5a5d27077c
Shortcut to open new OSWindow
...
Note that rendering is still pretty buggy with multiple windows.
2017-12-01 12:15:34 +05:30
Kovid Goyal
c145dfc832
Forgot to destroy glfw window when closing OSWindow
...
Also fix double decref of OSWindow->window_title
2017-12-01 12:15:34 +05:30
Kovid Goyal
407431adc8
Debounce resize requests
2017-12-01 12:15:34 +05:30
Kovid Goyal
8e3b5ddb0b
Also show mouse cursor when window gains focus
2017-12-01 12:15:34 +05:30
Kovid Goyal
e1b77f0a59
Ensure cleanup when closing OSWindow
2017-12-01 12:15:34 +05:30
Kovid Goyal
81a465f7bc
...
2017-12-01 12:15:34 +05:30
Kovid Goyal
0bec6ea15d
Fix mem leak when closing tabs introduced by move to OSWindow
2017-12-01 12:15:34 +05:30
Kovid Goyal
2b988b01c6
Get rid of the needs_render tracking as it was too fragile.
2017-12-01 12:15:34 +05:30
Kovid Goyal
ab604fb149
more bugs
2017-12-01 12:15:33 +05:30
Kovid Goyal
d344c391fd
...
2017-12-01 12:15:33 +05:30
Kovid Goyal
449c1ba5d7
Ensure OSWindow references are not stale
2017-12-01 12:15:33 +05:30
Kovid Goyal
12340e4c60
Ensure window object is fully initialized in callbacks
2017-12-01 12:15:33 +05:30
Kovid Goyal
95aad91a49
...
2017-12-01 12:15:33 +05:30
Kovid Goyal
c3f5b20ca7
more bugs
2017-12-01 12:15:33 +05:30
Kovid Goyal
f8c7a7a690
more bug fixes
2017-12-01 12:15:33 +05:30
Kovid Goyal
c5649df971
Fix various bugs introduced by the refactoring to support OSWindow
2017-12-01 12:15:33 +05:30
Kovid Goyal
9cedefb50c
Port tab_manager and miscellaneous cleanups
2017-12-01 12:15:33 +05:30
Kovid Goyal
96f8f8c79d
Remove unused code
2017-12-01 12:15:33 +05:30
Kovid Goyal
889d5b07a6
Pass os_window_id in activate_tab_at
2017-12-01 12:15:32 +05:30
Kovid Goyal
82d17c8a59
DRYer
2017-12-01 12:15:32 +05:30
Kovid Goyal
7ba3aa0c6f
...
2017-12-01 12:15:32 +05:30
Kovid Goyal
598f08e222
Avoid unneccessary roundtrip through python to create VAOs
2017-12-01 12:15:32 +05:30
Kovid Goyal
625798220a
...
2017-12-01 12:15:32 +05:30
Kovid Goyal
2f06c0f721
Remove last view uses of viewport_size and cell_size in python
...
Also move counters into C
2017-12-01 12:15:32 +05:30
Kovid Goyal
0ec793e8bc
Finish porting of borders and layout
2017-12-01 12:15:32 +05:30
Kovid Goyal
e30f88d382
...
2017-12-01 12:15:32 +05:30
Kovid Goyal
49be779982
Port drawing of borders
2017-12-01 12:15:32 +05:30
Kovid Goyal
2ac8ad39c9
Implement destruction of OS windows
2017-12-01 12:15:32 +05:30
Kovid Goyal
e11a50ae83
Work on migrating the code needed for application startup
2017-12-01 12:15:32 +05:30
Kovid Goyal
eecd0c8d9a
Function to remove OSWindows
2017-12-01 12:15:31 +05:30
Kovid Goyal
974950e7de
Allocate window management structures on the heap
2017-12-01 12:15:31 +05:30
Kovid Goyal
47446975ac
Fix spelling of var name
2017-12-01 12:15:31 +05:30
Kovid Goyal
c69145b6bc
Port state.c and all code that calls into it
2017-12-01 12:15:31 +05:30
Kovid Goyal
141a08ec7c
Migrate child-monitor.c to use OSWindow
2017-12-01 12:15:31 +05:30
Kovid Goyal
f0003f223a
Start work on multi-window support
...
Port the glfw.c module and various bits of code that depend on it.
2017-12-01 12:15:31 +05:30
Kovid Goyal
a4fe97c88c
Apparently libunistring is now already install by brew
2017-12-01 12:08:28 +05:30
Kovid Goyal
cc23515a35
Make the publish script a little smarter
2017-12-01 10:31:50 +05:30
Kovid Goyal
8d2a720fb9
version 0.5.1
2017-12-01 10:15:18 +05:30
Kovid Goyal
9ed980a511
More 32bit fixes
2017-11-30 00:02:44 +05:30
Kovid Goyal
1365eafce5
...
2017-11-29 18:15:12 +05:30
Kovid Goyal
07b70f8c95
Image display: Fix displaying images taller than two screen heights not scrolling properly
...
Fixes #194
2017-11-29 18:12:22 +05:30
Kovid Goyal
f16bf2a136
...
2017-11-29 08:32:00 +05:30
Kovid Goyal
0f2bcfabb3
Sanity check when moving baseline for line height adjustment
2017-11-29 08:30:34 +05:30
Kovid Goyal
d3e8c616b0
Fix text not vertically centered when adjusting line height
...
Fixes #193
2017-11-29 08:27:28 +05:30
Kovid Goyal
99888996a0
Implement special rendering for unicode block characters
...
Fixes #184
2017-11-26 21:29:00 +05:30
Kovid Goyal
4c94e16936
Refactor the box drawing showcase code
...
Make it work with the new font render infrastructure
2017-11-26 19:53:25 +05:30
Kovid Goyal
235f3940f2
DRYer
2017-11-26 18:10:34 +05:30
Kovid Goyal
e86c2f2000
Fix shift+up/down not generating correct escape codes
...
Fixes #186
2017-11-26 17:34:34 +05:30
Kovid Goyal
65b212fa1b
Add a config option to control the line thickness for box drawing characters
...
Fixes #183
2017-11-26 11:24:27 +05:30
Kovid Goyal
4b0ff03868
Increase max ligature length to 9 chars
...
Fixes #182
2017-11-26 10:33:57 +05:30
Kovid Goyal
8961eaaa9d
Fix compilation error on 32bot systems
...
Fixes #185
2017-11-26 08:22:14 +05:30
Kovid Goyal
356722b9a6
Fix build failure on systems with __OPTIMZE__ defined
...
Fixes #181
2017-11-24 22:42:56 +05:30
Kovid Goyal
89e5ae28bb
Dont fail to start if the user's /etc/passwd is missing an entry for the current uid
...
Appears to happen on some nix systems. Fixes #178
2017-11-23 00:40:21 +05:30
Kovid Goyal
b40e1e6492
Decrease minimum fonts size to 4pt
2017-11-21 07:13:17 +05:30
Kovid Goyal
4dc6918b13
Get rid of the send_text_map code
...
Just transform send_text directives in the config file to map
directives.
2017-11-19 08:56:34 +05:30
Kovid Goyal
1d45a831ef
version 0.5.0
2017-11-19 07:59:01 +05:30
Kovid Goyal
32920fee5b
Fix super imposing of glyphs generating fringes
2017-11-19 07:56:35 +05:30
Kovid Goyal
121de41930
Make send_text a normal keybaord shortcut action
...
Uses the new support for arguments to shortcut actions. Fixes #173
2017-11-17 01:27:26 +05:30
Kovid Goyal
a553107da8
Update README
2017-11-16 10:46:42 +05:30
Kovid Goyal
8cad6ae9d6
Fix leak-on-exit from libstartup-notification
2017-11-16 10:29:21 +05:30
Kovid Goyal
ed60e7cf19
Fix #172
2017-11-16 07:47:08 +05:30
Kovid Goyal
a9db9f8874
...
2017-11-14 12:41:09 +05:30
Kovid Goyal
b9b2570369
Reduce brew install harfbuzz time on travis
2017-11-14 12:01:06 +05:30
Kovid Goyal
c4f61de3fe
Add a couple more targets to the makefile
2017-11-14 09:48:59 +05:30
Kovid Goyal
523c9ff0d1
Make incremental building the default
2017-11-14 09:47:08 +05:30
Kovid Goyal
a02fd8411a
Generate a compilation database, useful for llvm tooling
2017-11-14 09:31:23 +05:30
Kovid Goyal
98d8d6b915
Update CHANGELOG
2017-11-13 19:48:06 +05:30
Kovid Goyal
2b87e1f601
Fix #170
2017-11-13 19:47:54 +05:30
Kovid Goyal
084fb23930
Forgot to clear hash table roots after deleting
...
Doesn't matter in normal usage, but causes tests to fail.
2017-11-13 16:12:28 +05:30
Kovid Goyal
244840255b
Remove unused function
2017-11-13 16:03:44 +05:30
Kovid Goyal
94c11af7c8
Refactor the font management code
...
Use a hash table for special glyph status caching
Manage (almost) all global state with a single object
Allocate all fonts on the heap
Fix the use-after-free for fallback fonts
2017-11-13 15:53:34 +05:30
Kovid Goyal
26e6716f67
A test that reliably triggers the current failure
2017-11-13 15:30:30 +05:30
Kovid Goyal
aef8b4ae67
Allow re-use of ensure_space_for macro
2017-11-13 15:29:52 +05:30
Kovid Goyal
a97ba08cbb
Fix asan test failure
2017-11-13 09:31:48 +05:30
Kovid Goyal
ddc327b772
Prevent DoS attacks via requesting too many fallback fonts
2017-11-13 08:40:47 +05:30
Kovid Goyal
a70f6405ac
Allocate fallback fonts on the heap
...
The size of a font is quite large ~ 100KB so it does not make sense to
store their data statically.
2017-11-13 08:39:30 +05:30
Kovid Goyal
bf0ad30d17
DRYer
2017-11-13 07:30:35 +05:30
Kovid Goyal
6fbe52acf4
...
2017-11-13 07:13:42 +05:30
Kovid Goyal
9fccc38382
Better fix for not using the unsafe to break flag
...
Recognize special glyphs by comparing the index to the glyph for the
codepoint in the font. Cannot rely on glyph width as many glyphs have
zero width. For example the glyph for space characters.
2017-11-13 07:03:58 +05:30
Kovid Goyal
339c0d2980
Put back consumed API
2017-11-12 23:43:22 +05:30
Kovid Goyal
336857a106
A more general cp->gid API
2017-11-12 23:43:21 +05:30
Kovid Goyal
d01e5f72fc
Use a cache for dummy glyph lookups
2017-11-12 23:43:21 +05:30
Kovid Goyal
5c6be7f637
Insulate emoji test from system wcwidth
2017-11-12 23:43:21 +05:30
Kovid Goyal
088087df73
Use only cluster numbers and glyph sizes for grouping glyphs into cells
...
See https://github.com/behdad/harfbuzz/issues/615 for discussion
2017-11-12 23:43:21 +05:30
Kovid Goyal
0bd093ec2e
Also fix mouse URXVT_PROTOCOL
...
Fixes #169
2017-11-12 22:11:20 +05:30
Kovid Goyal
4613e161ce
Fix incorrect encoding for mouse events in the UTF8_PROTOCOL
...
Fixes #167
2017-11-12 22:05:01 +05:30
Kovid Goyal
dad9444db0
Dont crash if harfbuzz return null info or positions pointers
2017-11-12 17:18:49 +05:30
Kovid Goyal
dd0080d3ce
Fix #168
2017-11-12 16:14:59 +05:30
Kovid Goyal
6b9303ba7d
Dont store standard cursors on the window object
2017-11-12 12:42:09 +05:30
Kovid Goyal
eb32423fb6
oops
2017-11-12 12:33:44 +05:30
Kovid Goyal
9bb2a05a9b
Update list of major features
2017-11-12 11:49:42 +05:30
Kovid Goyal
653fc0dd7e
Fix #50
2017-11-12 11:42:50 +05:30
Kovid Goyal
cee6ef9941
Center multi-cell glyph runs
2017-11-12 11:04:52 +05:30
Kovid Goyal
67a37f1f41
Adjust the point size of fallback and symbol fonts so that their heights match the current cell height
2017-11-12 10:30:57 +05:30
Kovid Goyal
604e82fd65
oops
2017-11-11 21:15:19 +05:30
Kovid Goyal
5f4e003bed
Add a ligature shaping test
2017-11-11 20:55:53 +05:30
Kovid Goyal
53e9f35c1f
Add test for harfbuzz shaping
2017-11-11 18:47:34 +05:30
Kovid Goyal
c56a2ed055
Ensure that harfbuzz always uses the OpenType shaper
2017-11-11 18:25:25 +05:30
Kovid Goyal
e5d411b80d
Refactor font code
...
DRYer with global state stored in fewer places. And only round-tripping
through python for font selection, not face creation.
2017-11-11 18:14:22 +05:30
Kovid Goyal
98e93cb4bd
Workaround for broken CTFontCreateForString
2017-11-11 10:16:43 +05:30
Kovid Goyal
f5040532c5
Ensure combining chars are zero-width regardless of wcwidth implementation
2017-11-11 09:29:28 +05:30
Kovid Goyal
447a2fe8cf
...
2017-11-11 09:20:34 +05:30
Kovid Goyal
a14defbab7
Change the showcase fonts
2017-11-11 09:13:04 +05:30
Kovid Goyal
3592f82e4f
Implement fallback fonts in CoreText
2017-11-11 08:08:03 +05:30
Kovid Goyal
4edfa9f4fd
Implement loading of bitmap fonts via FreeType
...
Needed for some fallback fonts such as Apple Color Emoji
2017-11-11 08:07:18 +05:30
Kovid Goyal
51fe1e4dab
...
2017-11-11 07:12:50 +05:30
Kovid Goyal
2df9f3500c
Build with --debug in update-on-ox
2017-11-11 07:12:21 +05:30
Kovid Goyal
289cfe7584
Fix bold-italic variant not being auto-selected on macOS
2017-11-10 22:06:11 +05:30
Kovid Goyal
b603d7abb7
Ensure underline_thickness is not zero
2017-11-10 21:46:50 +05:30
Kovid Goyal
3437433ed4
...
2017-11-10 17:43:47 +05:30
Kovid Goyal
cccacfdf7c
Restore Apple's line height fudge factor on macOS
2017-11-10 17:38:36 +05:30
Kovid Goyal
c6fa0503af
Simplify font_units_to_pixels
...
Make use of the precalculated scaling value in the FT Face metrics
object
2017-11-10 17:23:28 +05:30
Kovid Goyal
579933ac27
...
2017-11-10 15:55:59 +05:30
Kovid Goyal
541f389a06
Work on using FreeType to render on macOS as well
2017-11-10 15:39:53 +05:30
Kovid Goyal
d2654db6f0
oops
2017-11-10 14:57:44 +05:30
Kovid Goyal
c2b2833a37
API to load FreeType font from path and psname
2017-11-10 14:50:15 +05:30
Kovid Goyal
b0fffad0c2
API to create FreeType face from in memory data
2017-11-10 14:30:54 +05:30
Kovid Goyal
774956053a
Allow storing arbitrary data on FreeType Face objects
2017-11-10 14:20:20 +05:30
Kovid Goyal
5c582f7639
Start work on harfbuzz rendering on macs
2017-11-10 12:52:54 +05:30
Kovid Goyal
ccc0433fa1
...
2017-11-10 11:26:58 +05:30
Kovid Goyal
43bf056f09
Add a command to list fonts
2017-11-10 11:02:32 +05:30
Kovid Goyal
1d7b650fd0
...
2017-11-10 10:30:34 +05:30
Kovid Goyal
fefe6c9024
Use fc-list instead of fc-match to select fonts
...
This is because there is no way to force fc-match to return a monospace
font. So if the user specifies a non-existent font we end up with some
non-monospaced font, which looks terrible.
Also, this makes the font selection logic or macOS and Linux similar.
2017-11-10 10:15:37 +05:30
Kovid Goyal
b58e900806
Call prerender() in rendering tests setup
2017-11-10 08:30:35 +05:30
Kovid Goyal
ec58777d01
Fix compilation against old versions of fontconfig
2017-11-10 08:28:44 +05:30
Kovid Goyal
7a0b649cbd
Fix resizing of fonts
2017-11-10 07:34:52 +05:30
Kovid Goyal
e15bc71930
Code to list fontconfig fonts
2017-11-09 20:53:10 +05:30
Kovid Goyal
6d02e884d8
oops
2017-11-09 17:30:30 +05:30
Kovid Goyal
6d7546aa8c
pre-rendering must happen after layout
2017-11-09 17:11:37 +05:30
Kovid Goyal
ace91f04af
More appropriate location for function definition
2017-11-09 17:04:31 +05:30
Kovid Goyal
934d21ac30
Wire up a few remaining pieces
2017-11-09 16:55:46 +05:30
Kovid Goyal
79d8c04b00
Hook up render_line
2017-11-09 16:55:45 +05:30
Kovid Goyal
6c838bbc28
Implement dirty line tracking
2017-11-09 16:55:45 +05:30
Kovid Goyal
0277be5856
Track line dirty status in the line buffer
2017-11-09 16:55:45 +05:30
Kovid Goyal
71dcf13edf
Fix compiler warning
2017-11-09 16:55:45 +05:30
Kovid Goyal
bc0a77ee31
Only detect support once when testing rendering
2017-11-09 16:55:45 +05:30
Kovid Goyal
758d315b8e
Better fix for test
2017-11-09 16:55:45 +05:30
Kovid Goyal
3ec64a17f8
Dont call the font change machinery when the actual size has not changed
2017-11-09 16:55:45 +05:30
Kovid Goyal
dc7d705c87
Runa simplified version of the font rendering test on macOS
2017-11-09 16:55:45 +05:30
Kovid Goyal
6c98b676bb
Fix crash on macOS when changing font size
2017-11-09 16:55:45 +05:30
Kovid Goyal
dd6108de5b
DRYer
2017-11-09 16:55:44 +05:30
Kovid Goyal
aa1b94aed0
Ensure descriptor is always set for coretext font objects
2017-11-09 16:55:44 +05:30
Kovid Goyal
75e1b30fc1
DRYer
2017-11-09 16:55:44 +05:30
Kovid Goyal
a8bca1c119
Skip the rendering test on macOS
...
macOS is underpowered junk.
2017-11-09 16:55:44 +05:30
Kovid Goyal
d05ea312ef
Fix crash on macOS when failing to get font_descriptor
2017-11-09 16:55:44 +05:30
Kovid Goyal
e72f153a66
Avoid unneccessary exception when failling to find a fallback font
2017-11-09 16:55:44 +05:30
Kovid Goyal
da8bf5adc7
Add rendering tests
2017-11-09 16:55:44 +05:30
Kovid Goyal
ce0e5a893f
Make the showcase output a little nicer
2017-11-09 16:55:44 +05:30
Kovid Goyal
c8b7b49d56
Ensure underline_position is viable
2017-11-09 16:55:44 +05:30
Kovid Goyal
9842a47f85
Install an up-to-date version of harfbuzz on travis
2017-11-09 16:55:44 +05:30
Kovid Goyal
1db4286a12
Fix rendering of wide chars
2017-11-09 16:55:43 +05:30
Kovid Goyal
4234a9d963
Sigh apparently unsafe break is not enough
2017-11-09 16:55:43 +05:30
Kovid Goyal
6da465d7d7
Correct the x_offset calculation
2017-11-09 16:55:43 +05:30
Kovid Goyal
a1cb01b3b2
Fix grouping of combining char glyphs
2017-11-09 16:55:43 +05:30
Kovid Goyal
6920d37042
Rendering ligatures now works
2017-11-09 16:55:43 +05:30
Kovid Goyal
1dcdf9534b
...
2017-11-09 16:55:43 +05:30
Kovid Goyal
f9c21b1cb3
Sigh, legacy linux distros
2017-11-09 16:55:43 +05:30
Kovid Goyal
58be99a27e
Work on rendering ligatures correctly
2017-11-09 16:55:43 +05:30
Kovid Goyal
ae06879193
Mark unused pending implementation
2017-11-09 16:55:43 +05:30
Kovid Goyal
f121773276
Fix fallback fonts not being free'd on exit
2017-11-09 16:55:42 +05:30
Kovid Goyal
4726bcd210
Implement rendering of glyphs from font files in Freetype
2017-11-09 16:55:42 +05:30
Kovid Goyal
891942494f
Implement laoding of harfbuz buffer
2017-11-09 16:55:42 +05:30
Kovid Goyal
0b8e8bff16
Infra to display rendered strings as images for testing
2017-11-09 16:55:42 +05:30
Kovid Goyal
898e87aa7b
Dont allocate space for dummy fonts
...
Also move sprite_map test into fonts test module
2017-11-09 16:55:42 +05:30
Kovid Goyal
d153794c05
...
2017-11-09 16:55:42 +05:30
Kovid Goyal
742c60f37f
harfbuzz is now needed on macOS as well
2017-11-09 16:55:42 +05:30
Kovid Goyal
81143e0c7e
Test to render all box drawing characters under the sanitizers
2017-11-09 16:55:42 +05:30
Kovid Goyal
7f610f3b4e
...
2017-11-09 16:55:42 +05:30
Kovid Goyal
4ba17df570
Forward declaration of Face_Type needed
2017-11-09 16:55:42 +05:30
Kovid Goyal
00a73e4d12
Fix weird crash with clang asan
2017-11-09 16:55:41 +05:30
Kovid Goyal
6501ee45b6
Forgot to add bi info to sm_faces
2017-11-09 16:55:41 +05:30
Kovid Goyal
b0bee2f1f3
oops
2017-11-09 16:55:41 +05:30
Kovid Goyal
5a044c0320
...
2017-11-09 16:55:41 +05:30
Kovid Goyal
6a2f964123
...
2017-11-09 16:55:41 +05:30
Kovid Goyal
0518cabef6
Infrastructure for rendering cells in the test suite
2017-11-09 16:55:41 +05:30
Kovid Goyal
7d7d82a68d
Start working on actually rendering lines of text
2017-11-09 16:55:38 +05:30
Kovid Goyal
0c4bb6a0d6
...
2017-11-09 16:45:45 +05:30
Kovid Goyal
f25d2ea540
Rip out the old sprite update code
2017-11-09 16:45:45 +05:30
Kovid Goyal
38a5e76c50
More work on line based rendering
...
Should now build on all platforms
2017-11-09 16:45:45 +05:30
Kovid Goyal
d873d11202
Remove unused code
2017-11-09 16:45:45 +05:30
Kovid Goyal
729395c887
Release old hb_font when changing font size
2017-11-09 16:45:44 +05:30
Kovid Goyal
5007a82ea6
Install harfbuzz on travis + brew
2017-11-09 16:45:44 +05:30
Kovid Goyal
83e114d211
Implement new font methods for CoreText
2017-11-09 16:45:44 +05:30
Kovid Goyal
0d92ea72e1
Add harfbuzz includes on macOS as well
2017-11-09 16:45:44 +05:30
Kovid Goyal
646e8dab0a
Fix regression in handling zero cells caused by refactoring
2017-11-09 16:45:44 +05:30
Kovid Goyal
8fc9f97c12
...
2017-11-09 16:45:44 +05:30
Kovid Goyal
3643a78b18
Start work on line based rendering
2017-11-09 16:45:44 +05:30
Kovid Goyal
8431eef970
Get rid of no longer needed GPU function indirection
2017-11-09 16:45:02 +05:30
Kovid Goyal
e8798b5bf2
Fix UBSan not available on OS X clang
2017-11-08 17:50:32 +05:30
Kovid Goyal
9bef53459f
Fix application icon not being placed in apps sub-directory in linux bundle
2017-11-08 17:38:34 +05:30
Kovid Goyal
c2f008672c
Use clang by default on macOS
2017-11-08 17:30:55 +05:30
Kovid Goyal
216a66ec4c
Add some .gitattributes to ignore generated files in difss/lang stats
2017-11-08 17:12:39 +05:30
Kovid Goyal
c1a1b06fe7
Use -Og when building in debug mode
2017-11-08 17:12:35 +05:30
Kovid Goyal
802524a17a
Update CHANGELOG
2017-11-08 16:06:58 +05:30
Kovid Goyal
ea4edaaddd
Remove glew from build script
2017-11-08 16:02:35 +05:30
Kovid Goyal
7941ac1810
Remove no longer needed mac specific OpenGL extensions check
2017-11-08 15:59:55 +05:30
Kovid Goyal
de6967df0d
Dont strip symbols when updating on ox
2017-11-08 15:56:09 +05:30
Kovid Goyal
ceef207812
Fix compilation with clang
2017-11-08 15:43:59 +05:30
Kovid Goyal
7ed272e971
Use the glad provided facility for debugging OpenGL
2017-11-08 15:40:07 +05:30
Kovid Goyal
6362499fc2
Switch to using glad instead of glew
2017-11-08 15:15:25 +05:30
Kovid Goyal
ff528604dd
Add a akeyboard shortcut to toggle full-screen mode
2017-11-08 11:21:54 +05:30
Kovid Goyal
505ae90fd7
macOS: Add an setting to have the option key not behave as alt
2017-11-08 09:14:19 +05:30
Kovid Goyal
1f9acf99b0
Match extended keyboard protocol modifier bitmask with the CSIu protocol from xterm
2017-11-08 08:24:15 +05:30
Kovid Goyal
5392ceea7d
Update CHANGELOG
2017-11-07 23:20:19 +05:30
Kovid Goyal
ba1883c1de
X11: Add support for startup notifications
...
Prevents busy cursor in i3 root window after launching and quitting
kitty immediately.
2017-11-07 23:19:15 +05:30
Kovid Goyal
3a81b186b0
Strip bracketed paste end sequence when pasting
2017-11-07 22:16:35 +05:30
Kovid Goyal
204b6fa3e8
Use nested switch statements for key lookup
...
Replace giant key look up table with nested switch statements.
A little slower, but reduces memory consumption and makes it easier to
add new keyboard modes in the future, if needed. Key lookup was not a
performance bottleneck, in any case.
2017-11-07 20:58:34 +05:30
Kovid Goyal
f3c99546d7
Update CHANGELOG
2017-11-07 17:20:45 +05:30
Kovid Goyal
f137ea7094
Fix handling of alt (option) key on macOS
...
It now works just as in linux. i.e. alt+a sends <esc>a to the client.
No longer needs turning off alt to generate unicode at the OS level.
2017-11-07 16:19:37 +05:30
Kovid Goyal
88df0890ae
Fix crash when displaying more than 64 images in a single session
...
Also DRYer
2017-11-07 13:34:31 +05:30
Kovid Goyal
aaf593d2df
Add a few bounds checks
2017-11-05 10:27:10 +05:30
Kovid Goyal
a614fe615f
Improve error reporting of incomplete SGR codes
2017-11-05 10:17:40 +05:30
Kovid Goyal
3cb74a25ba
Fix handling of empty SGR code
...
Was broken by refactoring to support colons in SGR codes
2017-11-05 10:06:33 +05:30
Kovid Goyal
c0114d5e4e
DRYer
2017-11-05 09:22:15 +05:30
Kovid Goyal
e90aaa8470
Add support for colons in SGR codes
2017-11-05 08:47:21 +05:30
Kovid Goyal
c762f6199b
...
2017-11-05 08:43:02 +05:30
Kovid Goyal
7119c04c81
...
2017-11-03 10:22:36 +05:30
Kovid Goyal
18dde7b26c
...
2017-11-03 10:01:52 +05:30
Kovid Goyal
013fd31493
Output more details about unknown CSI codes
2017-11-02 20:48:30 +05:30
Kovid Goyal
490310a9f1
Drop obsolete dependency on xrdb
2017-11-02 11:07:33 +05:30
Kovid Goyal
d900811a7b
Merge branch 'subpixel' of https://github.com/lxcode/kitty
2017-11-02 08:25:36 +05:30
Kovid Goyal
b06a09c01a
Merge branch 'osxdpi' of https://github.com/lxcode/kitty
2017-11-02 08:24:56 +05:30
lxcode
81f14edb49
Enable subpixel quantization and positioning
2017-11-01 15:37:43 -07:00
lxcode
d39ba72591
Wrong indent level
2017-11-01 15:23:58 -07:00
Kovid Goyal
f04fbde6ca
Free argvw in asan-launcher
2017-11-01 15:00:52 +05:30
Kovid Goyal
d9ff3bce72
Cleanup compiler flags a little
2017-11-01 14:35:57 +05:30
Kovid Goyal
21ed07d7ce
Ensure python type objects are declared in onlya single unit
2017-11-01 13:14:50 +05:30
Kovid Goyal
6cbd1d1727
Move the tabbar destroy logic into the tab bar class
2017-11-01 12:49:00 +05:30
Kovid Goyal
27701351e1
Fix double-free at exit if in alternate screen mode
2017-11-01 12:16:30 +05:30
Kovid Goyal
6370dccb1a
ASAN build fixes
2017-11-01 12:12:15 +05:30
Kovid Goyal
cc77d06ec7
...
2017-11-01 12:05:33 +05:30
Kovid Goyal
04a61d0e21
Convert test-launcher into a generic asan-launcher so that it can be used to run kitty as well
2017-11-01 12:03:59 +05:30
Kovid Goyal
96f85b187e
Handle request to render zerowidth text more gracefully
2017-11-01 11:16:45 +05:30
Kovid Goyal
27a1f27e59
Fix crash caused if a unicode combing character is sent before any text
2017-11-01 11:12:22 +05:30
Kovid Goyal
4098b33bb7
Handle old harfbuzz versions that dont have hb_ft_font_changed
2017-10-30 10:53:52 +05:30
Kovid Goyal
657d0c4e2d
Update harfbuzz font when size of font is changed
2017-10-30 10:20:10 +05:30
Kovid Goyal
b0663c1a3c
...
2017-10-28 13:58:43 +05:30
Kovid Goyal
20ff9ff977
Handle negative x-bearing
2017-10-28 13:54:56 +05:30
Kovid Goyal
ed6049b4be
Micro-optimization
2017-10-28 13:45:52 +05:30
Kovid Goyal
76d6d5f94b
Update Changelog
2017-10-28 10:22:53 +05:30
Kovid Goyal
d8629a2d5b
DRYer
...
Reuse most of the code from the draw_complex_glyph code path for drawing
simple glyphs. Avoids overhead of harfbuzz for simple glyphs.
2017-10-28 10:17:27 +05:30
Kovid Goyal
0652fa1696
Finish up harfbuzz based rendering
2017-10-28 09:33:43 +05:30
Kovid Goyal
a5e6ab2bee
More work on complex glyph rendering
2017-10-27 18:17:39 +05:30
Kovid Goyal
b5d105186c
Use width instead of pitch
2017-10-27 14:25:18 +05:30
Kovid Goyal
e274b809e2
oops
2017-10-27 14:11:46 +05:30
Kovid Goyal
a2fdea1a98
...
2017-10-27 13:06:41 +05:30
Kovid Goyal
855d91d9dd
Fix composition of bitmaps
2017-10-27 12:50:49 +05:30
Kovid Goyal
8a049039ef
More work on rendering complex glyphs
2017-10-27 12:42:12 +05:30
Kovid Goyal
4bea6b7ad9
More work on complex glyph rendering
2017-10-27 11:19:57 +05:30
Kovid Goyal
5b0e2311e9
Store hinting flags on the Face object
2017-10-27 11:19:57 +05:30
Kovid Goyal
25c6735a5f
...
2017-10-27 11:19:57 +05:30
Kovid Goyal
1356bcbb9a
Let harfbuzz compile on Travis
2017-10-27 11:19:57 +05:30
Kovid Goyal
c841106902
Allow querying fontconfig for multiple characters
2017-10-27 11:19:57 +05:30
Kovid Goyal
91963095d0
More work on rendering complex glyphs
2017-10-27 11:19:57 +05:30
Kovid Goyal
692bdd3ad5
Allow testing of rendering combined glyphs
2017-10-27 11:19:57 +05:30
Kovid Goyal
e6f758b986
Simplify line_text_at()
2017-10-27 11:19:57 +05:30
Kovid Goyal
89d5387a52
Link against harfbuzz
2017-10-27 11:19:57 +05:30
Kovid Goyal
2b9034759a
...
2017-10-27 10:29:25 +05:30
Kovid Goyal
b4d824e165
Use the glfw 3.3 content scale API to get DPI on X11/wayland
2017-10-27 10:27:42 +05:30
Kovid Goyal
39bc0cd8c5
Wrap the glfw 3.3 content scale API
2017-10-27 10:17:33 +05:30
Kovid Goyal
a2b2e767c1
Merge branch 'patch-1' of https://github.com/tex/kitty
2017-10-26 16:24:32 +05:30
Milan Svoboda
da2d334b7a
Add NixOs / nixpkgs installationinfo
2017-10-26 12:10:01 +02:00
Kovid Goyal
05363ba501
...
2017-10-25 14:48:28 +05:30
Kovid Goyal
e43a26d64c
Better error message when GLEW initialization fails
2017-10-25 14:32:44 +05:30
Kovid Goyal
c5c8a18c99
Script to easily update kitty on my macOS test machine
2017-10-24 10:08:03 +05:30
Kovid Goyal
2f5b110c41
Implement an option to have focus follow the mouse
...
Fixes #156
2017-10-24 09:29:28 +05:30
Kovid Goyal
2443d76ac3
Apparently pep8 now just does not let you use the name l
...
This is one of the most hilarious bugs in pep8 I have come across
2017-10-23 17:40:53 +05:30
Kovid Goyal
8b54df31ef
Fix new pep8 ambiguous name warning
2017-10-23 17:33:57 +05:30
Kovid Goyal
4e7b957cc7
version 0.4.2
2017-10-23 17:11:04 +05:30
Kovid Goyal
b1424cc4c7
...
2017-10-23 17:09:52 +05:30
Kovid Goyal
be7d0e2016
forgot to remove debugging printf
2017-10-23 16:46:57 +05:30
Kovid Goyal
7e8d509fdd
Fix #153
2017-10-23 16:45:17 +05:30
Kovid Goyal
8672a29503
Use a C based SIGCHLD handler
...
Running python code in signal handlers makes me nervous
2017-10-23 12:42:03 +05:30
Kovid Goyal
32a1886b31
version 0.4.1
2017-10-23 11:19:30 +05:30
Kovid Goyal
70bfe8589f
Better fix for #152
2017-10-23 11:12:31 +05:30
Kovid Goyal
4f3d71d4ee
Fix a regression that broke setting custom key mappings
...
Fixes #152
2017-10-23 11:04:02 +05:30
Kovid Goyal
0df0fd6a0b
Handle EINTR in reap_zombies
2017-10-22 19:29:13 +05:30
Kovid Goyal
2b9198866a
...
2017-10-22 19:25:51 +05:30
Kovid Goyal
6350652009
Reap zombies in a signal handler
...
Avoids relying on jernel behavior, which may not be portable across all
unices
2017-10-22 19:13:13 +05:30
Kovid Goyal
d239db8492
Simply reaping of dead processes
...
Let the kernel do the reaping, since we do not care about the exit code
anyway. This should also fix #151 .
2017-10-22 17:42:49 +05:30
Kovid Goyal
bdb6723564
Remove unused code
2017-10-22 17:13:38 +05:30
Kovid Goyal
d6bf5aa011
Remove unused code
2017-10-22 17:13:11 +05:30
Kovid Goyal
b5c4fbb42b
...
2017-10-22 17:11:58 +05:30
Kovid Goyal
1276bd6f5d
Simply code to query xrdb for Xft.dpi
2017-10-22 17:09:30 +05:30
Kovid Goyal
be6e41c400
version 0.4.0
2017-10-22 09:48:43 +05:30
Kovid Goyal
a9e26952e9
...
2017-10-22 09:29:19 +05:30
Kovid Goyal
348cdf5d5d
Expose wcwidth to the python api
2017-10-22 09:22:32 +05:30
Kovid Goyal
a527cc88f3
...
2017-10-21 14:03:48 +05:30
Kovid Goyal
17cfd98545
...
2017-10-21 13:46:19 +05:30
Kovid Goyal
09c723380c
Refactoring to allow using kitty in other projects
2017-10-21 12:16:46 +05:30
Kovid Goyal
ff35bd61a8
API to easily get primary monitor size from python
2017-10-21 10:10:57 +05:30
Kovid Goyal
eb5fe234f4
API to easily render a Screen object from python
2017-10-21 10:04:56 +05:30
Kovid Goyal
113494b4c6
Re-organize a few blurbs
2017-10-20 18:24:13 +05:30
Kovid Goyal
b7e8bd2faf
Fix error when using @arg for stdin and no match found
2017-10-20 18:02:39 +05:30
Kovid Goyal
aaf94b61ed
...
2017-10-20 18:00:28 +05:30
Kovid Goyal
9a1b85081e
Allow creating shortcuts to run arbitrary programs in new windows/tabs
2017-10-20 17:49:52 +05:30
Kovid Goyal
626847f2f5
Document specifying a different program for pass_selection_to_program
2017-10-20 15:43:09 +05:30
Kovid Goyal
6b8d38e4b9
...
2017-10-20 13:46:50 +05:30
Kovid Goyal
227d21184a
Add a new shortcut to pass the current selection to an external program
2017-10-20 13:30:23 +05:30
Kovid Goyal
f947c2eecb
Redirect std streams to devnull when opening URL
2017-10-20 13:07:48 +05:30
Kovid Goyal
6a42a510bf
...
2017-10-20 12:38:26 +05:30
Kovid Goyal
efc8b898f8
Allow combining multiple independent actions into a single shortcut
...
Fixes #128
2017-10-20 12:31:36 +05:30
Kovid Goyal
e8a1ada5bf
Allow passing arguments to functions mapped to shortcuts
2017-10-20 11:22:43 +05:30
Kovid Goyal
73b6cc433b
...
2017-10-20 11:15:33 +05:30
Kovid Goyal
4f6084c9f2
Use /proc/sef instead of /proc/getpid()
2017-10-20 10:57:06 +05:30
Kovid Goyal
6c9615df0d
...
2017-10-18 14:03:05 +05:30
Kovid Goyal
073c330800
Better wayland detection
2017-10-18 14:02:12 +05:30
Kovid Goyal
e558880e8f
Load glfw primary selection functions dynamically
...
Allows kitty to run on wayland. Also dont try to set the window
icon on wayland.
2017-10-18 12:46:32 +05:30
Kovid Goyal
d4e5bc4141
Fix compilation with glfw 3.2
2017-10-18 09:13:19 +05:30
Kovid Goyal
7f3c808e66
Use glfw 3.3 functions for the primary selection
...
Allows us to drop the dependency on xsel for systems with glfw 3.3
2017-10-17 21:44:56 +05:30
Kovid Goyal
9322b210ff
typo
2017-10-17 21:41:33 +05:30
Kovid Goyal
3d7e8e3e84
typo
2017-10-17 20:43:22 +05:30
Kovid Goyal
40d80c7833
Remove note about macOS versions + graphics
2017-10-17 17:59:45 +05:30
Kovid Goyal
e908484491
Also output error number when glewInit() fails
...
glewGetErrorString() is incomplete/not maintained
2017-10-17 16:47:38 +05:30
Kovid Goyal
25913f77e0
Add a clean action to setup.py
2017-10-17 13:35:54 +05:30
Kovid Goyal
66803e6873
Workaround to get graphics working on Apple's buggy products
...
Apparently some macOS OpenGL drivers cannot handle using a VAO with
attributes that have different divisors/apply to different shaders. So
use a separate VAO for graphics rendering. This is a small performance hit,
but is the price of supporting substandard computers.
2017-10-17 12:15:52 +05:30
Kovid Goyal
40722f42d3
...
2017-10-17 10:18:03 +05:30
Kovid Goyal
192b16e9ff
Add Lenna to the test dir so the gr.py script becomes self-sufficient
2017-10-17 10:15:38 +05:30
Kovid Goyal
02dc637ed0
Use the correct blend function for text
2017-10-17 09:51:21 +05:30
Kovid Goyal
2aa29f1873
typo
2017-10-16 22:05:29 +05:30
Kovid Goyal
199d5b34a4
Add note about needing High Sierra for graphics
2017-10-16 22:04:05 +05:30
Kovid Goyal
48b98c583e
Fix incorrect scrolling of images with specified number of rows
2017-10-16 22:02:55 +05:30
Kovid Goyal
090ee5b846
Disable graphics on older macOS machines
...
I give up, trying to work around Apple's buggy drivers without even
having a machine to test my workarounds on is too hard. Simply disable
graphics on macOS < 10.13
Fixes #141
2017-10-16 21:23:29 +05:30
Kovid Goyal
55db07c79f
Only display Lenna if she exists in the gr script
2017-10-16 18:52:17 +05:30
Kovid Goyal
75e84a4519
Let the gr.pt script run with python2 as well
2017-10-16 18:50:57 +05:30
Kovid Goyal
e679fa9a1c
Possible fix for #141
...
Presumably on older macOS versions the Apple OpenGL drivers cannot handle both
non-sequential and non-zero based binding locations. Sigh.
2017-10-16 18:39:49 +05:30
Kovid Goyal
6f0922d5e3
Merge branch 'master' of https://github.com/eldentyrell/kitty
...
Fix #143
2017-10-16 16:57:51 +05:30
Elden Tyrell
4663133871
correct off-by-one error in initial tabstops so emacs renders properly
2017-10-16 03:50:11 -07:00
Kovid Goyal
3f8b2184a6
Add a sanity check to ensure the attribute location binding worked
2017-10-13 10:06:12 +05:30
Kovid Goyal
2f7e517b5b
Update comment to reflect code
2017-10-12 16:51:35 +05:30
Kovid Goyal
f2e8877032
...
2017-10-12 16:10:19 +05:30
Kovid Goyal
555409ea73
Apple's OpenGL drivers are sad
...
Apparently they cant handle non-sequential binding locations. Sigh.
2017-10-12 15:36:38 +05:30
Kovid Goyal
30baf81858
Fix #140
2017-10-12 12:58:38 +05:30
Kovid Goyal
76a591e7d1
...
2017-10-10 11:34:19 +05:30
Kovid Goyal
57d16a02c0
Update changelog and add some performance comparisons
2017-10-10 09:21:42 +05:30
Kovid Goyal
5c55502946
...
2017-10-09 15:22:38 +05:30
Kovid Goyal
ef7fa507fb
...
2017-10-09 15:21:33 +05:30
Kovid Goyal
1ceefde2d0
Graphics rendering is now merged into master!
...
Fix #33
2017-10-09 15:20:15 +05:30
Kovid Goyal
94eaaae4a6
Handle font size changes, rescaling images
2017-10-09 15:15:13 +05:30
Kovid Goyal
3cce238b2b
Relayout images on screen resizes
...
The strategy is very simple, images are not rescaled or re-positioned in
any way.
2017-10-09 12:43:37 +05:30
Kovid Goyal
f9b52249d1
Remove unused code
2017-10-09 11:58:25 +05:30
Kovid Goyal
f396fe59ca
Implement a quota for image data
2017-10-09 11:31:57 +05:30
Kovid Goyal
b4b6968e07
Clear the alt screen graphics buffer when switching away from it as well as to it
2017-10-08 23:14:56 +05:30
Kovid Goyal
747f7b076d
Implement control code for deleting images
2017-10-08 22:51:00 +05:30
Kovid Goyal
3f9f5ae076
DRYer
2017-10-08 11:48:23 +05:30
Kovid Goyal
2058682d1f
...
2017-10-08 11:46:10 +05:30
Kovid Goyal
201ac973e3
Make clear as also delete images
2017-10-07 16:43:17 +05:30
Kovid Goyal
df87c051bd
Add a note about the optional dep on ImageMagick for icat
2017-10-07 11:55:45 +05:30
Kovid Goyal
f76077a45c
icat: switch to ImageMagick and also add support for local client speedup by using a file to transmit the data
2017-10-07 11:46:00 +05:30
Kovid Goyal
836e9d98b4
Forgot to actually switch grman on buffer switch
2017-10-07 10:12:16 +05:30
Kovid Goyal
d5088a3e5b
Do image clipping using OpenGL rather than on the CPU
2017-10-07 10:08:26 +05:30
Kovid Goyal
3a344d86fe
Add graphics protocol detection to icat.py
2017-10-07 09:01:31 +05:30
Kovid Goyal
6a65f23f98
Add a a=q mode for querying without storing image data
2017-10-06 23:43:42 +05:30
Kovid Goyal
9e284442e8
...
2017-10-06 23:11:14 +05:30
Kovid Goyal
135358423c
Remove use of random data in the tests
2017-10-06 22:52:50 +05:30
Kovid Goyal
31173245f8
Send ACKs to client when displaying images by id
2017-10-06 22:39:17 +05:30
Kovid Goyal
ad5a276ddb
Fix test broken by clipping of images to screen area
2017-10-06 22:34:21 +05:30
Kovid Goyal
4bc852e615
A spot of refacatoring
2017-10-06 21:36:54 +05:30
Kovid Goyal
d4e493727e
Clip all rendered images to screen boundaries
2017-10-06 21:22:52 +05:30
Kovid Goyal
8d3ec7451b
typo
2017-10-06 21:14:39 +05:30
Kovid Goyal
652e1084bc
...
2017-10-06 21:10:45 +05:30
Kovid Goyal
a9d31541c1
Implement clipped scrolling of images when in page area mode
2017-10-06 21:08:10 +05:30
Kovid Goyal
480645877a
Clear graphics when switching to the alternate screen buffer
2017-10-05 23:01:47 +05:30
Kovid Goyal
600bff73d6
Off-by-one for image visibility testing
...
Also delete all images that overlap the screen on reset
2017-10-05 22:54:52 +05:30
Kovid Goyal
1c9612bd55
Turn on LTO for release builds
2017-10-05 21:18:21 +05:30
Kovid Goyal
259e01e879
Add test for deleting images after they scroll off
2017-10-05 21:14:56 +05:30
Kovid Goyal
240c9b5d8b
A spot of refactoring
2017-10-05 20:54:45 +05:30
Kovid Goyal
689227dce4
Scroll images with text
2017-10-05 20:23:32 +05:30
Kovid Goyal
a4e7985fb0
Condition on negative refs as well as in the future we will use interleaved drawing for background opacity as well
2017-10-05 18:21:29 +05:30
Kovid Goyal
9bd231c4f9
Note that integers in the protocol are 32-bit
2017-10-05 18:15:10 +05:30
Kovid Goyal
7bf8b3c3c1
...
2017-10-05 18:10:11 +05:30
Kovid Goyal
57a6d53a45
Document the image display protocol
2017-10-05 18:08:12 +05:30
Kovid Goyal
49aeae4aad
Fix invocation of the image cat script as kitty icat
2017-10-05 17:19:17 +05:30
Kovid Goyal
664975b707
Show off kitty's graphics capabilities
2017-10-05 16:49:34 +05:30
Kovid Goyal
c3ab6ff780
Fix vertically inverted rendering of PNG
2017-10-04 23:38:36 +05:30
Kovid Goyal
6ad7260871
Dont compress PNG files
2017-10-04 23:26:15 +05:30
Kovid Goyal
e8f72c90f3
Add note about needing S key for PNG + compression
2017-10-04 23:25:27 +05:30
Kovid Goyal
75244b1416
...
2017-10-04 23:07:59 +05:30
Kovid Goyal
952f0ad98c
Accommodate the underpowered Apple lineup
...
macOS is missing glDrawArraysInstancedBaseInstance
2017-10-04 22:44:03 +05:30
Kovid Goyal
c726a15ed4
...
2017-10-04 21:08:28 +05:30
Kovid Goyal
5d6af442c1
Correctly query num of cols/rows in icat
2017-10-04 20:06:07 +05:30
Kovid Goyal
596a392e68
micro optimization
2017-10-04 19:46:19 +05:30
Kovid Goyal
46bb482e96
Fix y-axis mapping incorrect for images
2017-10-04 19:34:34 +05:30
Kovid Goyal
e9bc64205e
Code (not working) to draw graphics
2017-10-04 18:29:48 +05:30
Kovid Goyal
8f05f752af
Code to update graphics buffer
2017-10-04 17:41:11 +05:30
Kovid Goyal
124a41643f
Add a comment about the use of layout locations
2017-10-04 17:29:30 +05:30
Kovid Goyal
138a37ccac
Start work on the graphics program
2017-10-04 17:22:00 +05:30
Kovid Goyal
e1650d5df7
Implement interleaved drawing of cells
2017-10-04 16:11:20 +05:30
Kovid Goyal
3f615666df
Call grman_update_layers
2017-10-04 15:39:31 +05:30
Kovid Goyal
96a9d64bcb
A spot of refactoring
2017-10-04 15:34:54 +05:30
Kovid Goyal
bd09e2ebf1
Allow re-using VAO objects between different types of cell program
2017-10-04 15:33:15 +05:30
Kovid Goyal
ad040271b9
Initialize uniforms for all cell program variants
2017-10-04 14:46:36 +05:30
Kovid Goyal
ead73c8209
Prepare for two stage rendering of cells
2017-10-04 14:15:51 +05:30
Kovid Goyal
b032130a20
A spot of refactoring
2017-10-04 10:56:44 +05:30
Kovid Goyal
c5837d4577
More work on the iamge cat utility. Make it useable as a standalone script
2017-10-04 10:22:31 +05:30
Kovid Goyal
1a8d9314fe
Fix transmission of chunked compressed data
2017-10-04 10:19:25 +05:30
Kovid Goyal
9ccf9636ce
Allow running icat script outside of kitty
2017-10-03 21:37:55 +05:30
Kovid Goyal
e56042c41a
Graceful handling of errors from rsvg-convert
2017-10-03 21:31:47 +05:30
Kovid Goyal
72626279c2
Start work on image cat utility
2017-10-03 21:31:42 +05:30
Kovid Goyal
acc43ce9dc
Handle T action with chunked transfer correctly
2017-10-03 20:34:48 +05:30
Kovid Goyal
c87dcdbe3c
Tests for displaying graphics
2017-10-03 16:10:04 +05:30
Kovid Goyal
aec1612de2
API to enable image placement tests
...
Also fix cursor movement handling after graphics command
2017-10-02 10:35:51 +05:30
Kovid Goyal
7c488888a0
more work on displaying graphics
2017-10-01 20:17:48 +05:30
Kovid Goyal
6d960e4130
...
2017-10-01 09:12:14 +05:30
Kovid Goyal
3cbc20005b
Implement sending of image data to GPU
2017-10-01 09:04:46 +05:30
Kovid Goyal
e2a8115328
...
2017-09-30 18:36:25 +05:30
Kovid Goyal
28ae99ed37
More work on displaying images
2017-09-30 14:46:17 +05:30
Kovid Goyal
e5898ad4b0
More work on displaying images
2017-09-30 13:51:52 +05:30
Kovid Goyal
b722bc809c
More work on displaying images
2017-09-30 13:51:52 +05:30
Kovid Goyal
710d00674a
Export the free texture function
2017-09-30 13:51:52 +05:30
Kovid Goyal
9078ca975e
A spot of refactoring
2017-09-30 13:51:52 +05:30
Kovid Goyal
4f98d10caa
Remove the requirement to specify sizes for PNG files
2017-09-30 13:51:52 +05:30
Kovid Goyal
9e5dbb45d4
Move the graphics protocol documentation to a separate file
2017-09-30 13:51:52 +05:30
Kovid Goyal
5e5065715e
...
2017-09-30 13:51:52 +05:30
Kovid Goyal
8be7679a38
grrr
2017-09-30 13:51:52 +05:30
Kovid Goyal
6297c9a719
...
2017-09-30 13:51:52 +05:30
Kovid Goyal
933621b038
Better libpng error handling
2017-09-30 13:51:51 +05:30
Kovid Goyal
c31e608ff9
Tests for loading PNG images
2017-09-30 13:51:51 +05:30
Kovid Goyal
671bcafee5
Dont carry the fd around
2017-09-30 13:51:51 +05:30
Kovid Goyal
c01f009e42
Remove sz requirement and implement proper fix for failure to mmap shm objects on OS X. Apparently they have to be mapped shared.
2017-09-30 13:51:51 +05:30
Kovid Goyal
dbd7ec5b27
Allow specifying the offset and size for reading data from files
...
Also require size to be specified for SHM objects to support platforms
such as macOS that have no way to get the size from the fd.
2017-09-30 13:51:51 +05:30
Kovid Goyal
898136dbdc
Free the mapped file early if possible
2017-09-30 13:51:51 +05:30
Kovid Goyal
ef91f9dc8f
Use fstat to get SHM file size instead of seeking
2017-09-30 13:51:51 +05:30
Kovid Goyal
bfd7675639
...
2017-09-30 13:51:51 +05:30
Kovid Goyal
b644d4620a
OS X does not support write() with shared memory
2017-09-30 13:51:51 +05:30
Kovid Goyal
03dd6e0490
Test for image loading from shared memory
2017-09-30 13:51:50 +05:30
Kovid Goyal
dfca991173
Test for loading image data from file
2017-09-30 13:51:50 +05:30
Kovid Goyal
13c4c605b3
Prevent loading of too large PNG images
2017-09-30 13:51:50 +05:30
Kovid Goyal
8e5c4b6f7a
Require data size to be sent for PNG format
2017-09-30 13:51:50 +05:30
Kovid Goyal
d0d769f26b
Test for zlib de-compression
2017-09-30 13:51:50 +05:30
Kovid Goyal
558b208edd
Fix compressed key not being parsed
2017-09-30 13:51:50 +05:30
Kovid Goyal
35acb1497a
Fix chunked loading of images
2017-09-30 13:51:50 +05:30
Kovid Goyal
8cd1f76d2b
Framework for testing loading of images
2017-09-30 13:51:50 +05:30
Kovid Goyal
f0ee728b94
Fix failing flake
2017-09-30 13:51:50 +05:30
Kovid Goyal
b4a96428f3
DRYer
2017-09-30 13:51:50 +05:30
Kovid Goyal
7d6d8efc26
...
2017-09-30 13:51:49 +05:30
Kovid Goyal
f3ee3784f7
Fix longjmp handling when calling libpng
2017-09-30 13:51:49 +05:30
Kovid Goyal
7da08d37d2
File to host graphics tests
2017-09-30 13:51:49 +05:30
Kovid Goyal
23c2bdb6f0
Dont silently wrap too large ids, instead ignore the graphics command
2017-09-30 13:51:49 +05:30
Kovid Goyal
7736629bc4
Fix graphics id not going upto UINT32_MAX
2017-09-30 13:51:49 +05:30
Kovid Goyal
204bd97198
Nicer error responses on bad graphics data
2017-09-30 13:51:49 +05:30
Kovid Goyal
2786976c63
...
2017-09-30 13:51:49 +05:30
Kovid Goyal
7567f96a34
Python API to get image data from gr. manager for tests
2017-09-30 13:51:49 +05:30
Kovid Goyal
cf33ef8666
...
2017-09-30 13:51:49 +05:30
Kovid Goyal
9860ed544f
Respond to load commands when an id is present
2017-09-30 13:51:49 +05:30
Kovid Goyal
9601ed79f1
Travis build fixes
2017-09-30 13:51:48 +05:30
Kovid Goyal
e5b5fb2773
fmt defaults to RGBA and ignore add commands for images with no width/height
2017-09-30 13:51:48 +05:30
Kovid Goyal
01fb9436dd
Code to read compressed and PNG encoded image data
2017-09-30 13:51:48 +05:30
Kovid Goyal
df1e06ec2c
DRYer
2017-09-30 13:51:48 +05:30
Kovid Goyal
c973a7326e
Dont link against rt on macOS
2017-09-30 13:51:48 +05:30
Kovid Goyal
9facc5f7d3
DRYer
2017-09-30 13:51:48 +05:30
Kovid Goyal
66bce4b8cd
Code to read image data
2017-09-30 13:51:48 +05:30
Kovid Goyal
c567acb4e5
Work on loading images
2017-09-30 13:51:48 +05:30
Kovid Goyal
8418cc04c1
Start work on the graphics manager
2017-09-30 13:51:48 +05:30
Kovid Goyal
e52818d54c
Move the screen datatype decls into screen.h
2017-09-30 13:51:47 +05:30
Kovid Goyal
15e03f74f4
Also report the payload for graphics commands
2017-09-30 13:51:47 +05:30
Kovid Goyal
56c2e0c26a
Report incomplete graphics commands as parser errors
2017-09-30 13:51:47 +05:30
Kovid Goyal
83de392b39
...
2017-09-30 13:51:47 +05:30
Kovid Goyal
3c89f80603
More tests for the graphics control code parser
2017-09-30 13:51:47 +05:30
Kovid Goyal
8e64895c23
Framework for testing graphics command parsing
2017-09-30 13:51:47 +05:30
Kovid Goyal
967e65e150
Use a static b64 decoding table
2017-09-30 13:51:47 +05:30
Kovid Goyal
9f5d731d8d
...
2017-09-30 13:51:47 +05:30
Kovid Goyal
ef312a3d1c
...
2017-09-30 13:51:47 +05:30
Kovid Goyal
705298737a
Fix off by one
2017-09-30 13:51:47 +05:30
Kovid Goyal
a7b95f73be
Cleanup handling of ,; in the GR control code parser
2017-09-30 13:51:46 +05:30
Kovid Goyal
a9ed44eecc
Implement decoding of graphics command payload
2017-09-30 13:51:46 +05:30
Kovid Goyal
b8d9629ee4
Start work on parsing of graphics escape code
2017-09-30 13:51:46 +05:30
Kovid Goyal
5b24d51fcd
Fix failing screen resize test
...
Take into account the index that now happens to ensure that
the cursor is on a new line.
2017-09-30 13:51:35 +05:30
Kovid Goyal
e832524bfc
Ensure cursor is on a blank line after a resize
2017-09-30 13:25:31 +05:30
Kovid Goyal
a783325464
Nicer parsing of dependencies file
2017-09-30 12:25:03 +05:30
Kovid Goyal
af99c172fe
Use dependency mapping when doing incremental builds
2017-09-30 12:18:08 +05:30
Kovid Goyal
b5b9a7ba6d
Fix compilation with clang
2017-09-30 11:56:30 +05:30
Kovid Goyal
2909fddaa2
Split out GL API wrapping code into its own header
2017-09-30 11:48:52 +05:30
Kovid Goyal
7863857b2c
Use a UBO for all cell program uniforms
2017-09-30 11:44:44 +05:30
Kovid Goyal
b28cec3236
Give Face objects a nice __repr__
2017-09-30 08:01:04 +05:30
Kovid Goyal
55498b5a44
Avoid unnecessary calls to glBindTexture
2017-09-30 07:00:46 +05:30
Kovid Goyal
8d03d7216f
Do not crash when failing to render a glyph, instead render the missing glyph and print an error msg to stderr
2017-09-29 11:57:17 +05:30
Kovid Goyal
7ddaa70498
Cleanup freetype library on exit
2017-09-28 11:22:18 +05:30
Kovid Goyal
150ffab72d
finalize the fontconfig library on exit
2017-09-28 11:06:56 +05:30
Kovid Goyal
cda385b37c
Fix #132
2017-09-28 10:01:08 +05:30
Kovid Goyal
28146a4e9c
Proper fix for sending constant uniform to cell program
2017-09-28 09:55:17 +05:30
Kovid Goyal
0ad9149ca8
Avoid one more call to set uniforms
2017-09-26 11:27:04 +05:30
Kovid Goyal
f9972bc33c
...
2017-09-26 09:13:50 +05:30
Kovid Goyal
e6cff1e9b6
Fix #130
2017-09-26 09:10:24 +05:30
Kovid Goyal
c64527c333
Fix #129
2017-09-26 08:22:26 +05:30
Kovid Goyal
9cfc19e010
Dont shadow the glfw global mouse state variable
2017-09-25 22:00:00 +05:30
Kovid Goyal
af971af4ca
Remove unused code
2017-09-25 21:59:52 +05:30
Kovid Goyal
3471887817
...
2017-09-25 18:05:25 +05:30
Kovid Goyal
cd88505ca7
Fix #120
2017-09-25 17:47:30 +05:30
Kovid Goyal
3ca45ab241
Fix cursor moving one line up when resizing
2017-09-20 10:59:31 +05:30
Kovid Goyal
564f19d248
...
2017-09-19 11:17:17 +05:30
Kovid Goyal
5622efb710
Add a CHANGELOG
2017-09-19 10:33:23 +05:30
Kovid Goyal
a857a35348
Unhide mouse cursor on focus in
2017-09-18 20:28:55 +05:30
Kovid Goyal
93ca469d85
Only set the glfw error callback immediately before initializing glfw
...
Avoids spurious glfw not initialized error messages in case fo
exceptions that occur before the call to init
2017-09-18 08:46:25 +05:30
Kovid Goyal
1e01c2a07c
Remove unused code
2017-09-18 08:40:37 +05:30
Kovid Goyal
efaee69486
Fix detection of glfinithintstring
2017-09-18 08:40:02 +05:30
Kovid Goyal
558e4af3c6
Make the curly underline a bit thicker
2017-09-17 21:09:30 +05:30
Kovid Goyal
8490457cab
...
2017-09-17 21:01:50 +05:30
Kovid Goyal
6585c11808
Make the curly underline an actual curl
2017-09-17 20:30:36 +05:30
Kovid Goyal
142cba54b3
DRYer
2017-09-17 19:36:47 +05:30
Kovid Goyal
19b065b6a4
Fix underline not being set to background color when cursor is over it
2017-09-17 19:28:01 +05:30
Kovid Goyal
826a64c8dc
Fix wide cursor not being rendered
2017-09-17 19:23:01 +05:30
Kovid Goyal
14103db2ee
Coalesce another couple of uniforms
2017-09-17 18:10:32 +05:30
Kovid Goyal
51d037fb70
Coalesce a couple of set uniform calls into a single one
2017-09-17 17:48:42 +05:30
Kovid Goyal
b433380e1d
Make the cell shader a little more readable
2017-09-17 17:38:03 +05:30
Kovid Goyal
df4df76d24
Switch to using an opaque block cursor
...
The text is rendered in the background color on top of the opaque
block cursor. We use the background color since applications can change
both cursor and background colors, so it is up to the application to
ensure the colors have good contrast. Fix #126
2017-09-17 13:03:02 +05:30
Kovid Goyal
2d0c6a43c5
Fix broken reverse video
2017-09-16 17:39:07 +05:30
Kovid Goyal
0307497e06
Fix broken scrolling
2017-09-16 17:11:30 +05:30
Kovid Goyal
bc1de92534
Fix the broken tests
2017-09-16 17:05:58 +05:30
Kovid Goyal
37feb65204
Move wakeup calls into child-monitor
2017-09-16 16:46:23 +05:30
Kovid Goyal
9cd146fe3e
Remove the buf_toggled callback
2017-09-16 16:31:29 +05:30
Kovid Goyal
7b1576d960
Remove unneccessary python callbacks
2017-09-16 15:03:18 +05:30
Kovid Goyal
6361da9e0b
...
2017-09-16 14:34:47 +05:30
Kovid Goyal
50a1bf528c
Get rid of the bell callback, just handle it all in C
2017-09-16 14:34:23 +05:30
Kovid Goyal
2ddbac073a
DRYer
2017-09-16 12:56:41 +05:30
Kovid Goyal
33f48e8268
Fix rendering occasionally not occurring after input received
2017-09-16 12:51:30 +05:30
Kovid Goyal
ee581ebdf4
Remove unused code
2017-09-16 12:26:35 +05:30
Kovid Goyal
81879db2db
Fix new_input_at not protected by read lock
2017-09-16 12:24:31 +05:30
Kovid Goyal
3675c27268
Fix the new_window keyboard shortcut being passed through
2017-09-16 11:22:58 +05:30
Kovid Goyal
a92b3c605f
Move the text attributes out of the char type
...
This means that more text attributes can be added in the future (there
are 8 bits available) and there is no need to keep bit twiddling when
accessing the chars themselves. Also means less data needs to be sent to
the GPU. Cell size does not change since there were currently 2 unused
bytes because of alignment.
2017-09-16 11:02:42 +05:30
Kovid Goyal
85ed5c1515
Remove unnecessary conditional operators
2017-09-16 09:43:43 +05:30
Kovid Goyal
b7a5c064c2
Fix some Alt based shortcuts not working
2017-09-16 09:32:17 +05:30
Kovid Goyal
34084e7ab5
Neaten up keys.h
2017-09-16 09:16:30 +05:30
Kovid Goyal
728f33700a
Fine tune the artificial delays in the render loop
...
There are now two numbers, repaint_delay and input_delay
that control how often the screen is repainted and how frequently
input received from the child process is processed.
This halves the CPU usage in intensive cases such as scrolling
a file in less. The CPU usage of kitty + X when scrolling is now
significantly lower than all the other terminals on my system.
MROAWR!
...
2017-09-16 08:20:23 +05:30
Kovid Goyal
43ebddc28f
Fix writing to child causing excessive CPU usage
...
Couple of bugs combined.
2017-09-15 21:56:20 +05:30
Kovid Goyal
c5e989bc94
Move the key handler to C
2017-09-15 21:46:00 +05:30
Kovid Goyal
a4d71bcf5c
Move the text input callback to C
2017-09-15 18:33:45 +05:30
Kovid Goyal
ddbe0703a3
Remove unused code
2017-09-15 18:10:17 +05:30
Kovid Goyal
b2c7272af1
Store key combos that need special handling in a table for fast lookup
2017-09-15 18:06:26 +05:30
Kovid Goyal
0423c55dc1
Move a few externs into appropriate header files
2017-09-15 11:56:08 +05:30
Kovid Goyal
0b656246fd
Fix cursor width incorrect after scrolling
2017-09-15 11:44:16 +05:30
Kovid Goyal
28430a4104
Fix wide chars not being rendered
2017-09-15 11:43:05 +05:30
Kovid Goyal
f0a9f32d0a
Fix cursor not being rendered on empty cells
2017-09-15 11:08:42 +05:30
Kovid Goyal
44c897a61a
Translate key presses to bytes using a lookup table
2017-09-15 10:45:27 +05:30
Kovid Goyal
b5af266b87
A spot of refactoring
2017-09-15 10:45:27 +05:30
Kovid Goyal
9989363ecd
Make the URL highlight color configurable
2017-09-15 10:45:27 +05:30
Kovid Goyal
53ea5c678d
Highlight links with a underline on mouseover
2017-09-15 10:45:27 +05:30
Kovid Goyal
464291bbb1
Port click on URL code to C
2017-09-15 10:45:27 +05:30
Kovid Goyal
ed3427f349
Dont use the python unicodedata module as we use libunistring
...
No sense in loading two hude unicode datasets into memory
2017-09-15 10:45:27 +05:30
Kovid Goyal
21accfe114
Send mouse events to child directly in C
2017-09-15 10:45:26 +05:30
Kovid Goyal
ee0a539e01
Reclaim write buffer space once no longer needed
2017-09-15 10:45:26 +05:30
Kovid Goyal
d236955dfb
...
2017-09-15 10:45:26 +05:30
Kovid Goyal
32a11d9d21
Avoid mallocs when writing small amounts of data to the child
2017-09-15 10:45:26 +05:30
Kovid Goyal
43c4c71abd
Port mouse event encoding code to C
2017-09-15 10:45:26 +05:30
Kovid Goyal
b9ac13c379
Move the scroll event handler to C
2017-09-15 10:45:26 +05:30
Kovid Goyal
11bb21e8a4
Remove unused code
2017-09-15 10:45:26 +05:30
Kovid Goyal
4bfe7e1069
Fix incorrect cell co-ordinates when more than one window visible in the layout
2017-09-15 10:45:26 +05:30
Kovid Goyal
4feaf13556
Implement drag scrolling in C
2017-09-15 10:45:26 +05:30
Kovid Goyal
a27004da35
Port drag select to C
2017-09-15 10:45:26 +05:30
Kovid Goyal
cf6894d74f
Port multi-click handler to C
2017-09-15 10:45:25 +05:30
Kovid Goyal
a921180224
Port middle-click-to-paste to C
2017-09-15 10:45:25 +05:30
Kovid Goyal
7e4948be10
Port switch focus on click code to C
2017-09-15 10:45:25 +05:30
Kovid Goyal
04a45babfb
DRYer
2017-09-15 10:45:25 +05:30
Kovid Goyal
1c1d0a4e91
Port mouse cursor change over hyperlinks to C
2017-09-15 10:45:25 +05:30
Kovid Goyal
271b623f82
More URL detection tests
2017-09-15 10:45:25 +05:30
Kovid Goyal
88d896e745
Move function to detect URLs into C code
2017-09-15 10:45:25 +05:30
Kovid Goyal
745b6222c2
Start work on migrating the mouse handlers to C
2017-09-15 10:45:25 +05:30
Kovid Goyal
42329e5d46
Merge the char_grid and window modules
2017-09-15 10:45:25 +05:30
Kovid Goyal
240c683504
DRYer
2017-09-15 10:45:24 +05:30
Kovid Goyal
c683725434
Get rid of the timers infrastructure
...
It is not needed with a pure state machine.
Note that drag scrolling still has to be ported from using
timers.
2017-09-15 10:45:24 +05:30
Kovid Goyal
f3cd0a4966
...
2017-09-15 10:45:24 +05:30
Kovid Goyal
573dd8c99e
...
2017-09-15 10:45:24 +05:30
Kovid Goyal
6d8b59cb61
Track window and application titles in C
...
Allows removing of the last bit fo python from the render loop
2017-09-15 10:45:24 +05:30
Kovid Goyal
c41ede4d20
Dont use a timer for mouse hiding
2017-09-15 10:45:24 +05:30
Kovid Goyal
13ac050bf8
Move cursor render call to C
2017-09-15 10:45:24 +05:30
Kovid Goyal
6e4b977128
Track application focus state in global state
2017-09-15 10:45:24 +05:30
Kovid Goyal
e6df82b255
Move the char grid render call into C
2017-09-15 10:45:24 +05:30
Kovid Goyal
943a1575ad
Move render call for tab bar to C code
2017-09-15 10:45:24 +05:30
Kovid Goyal
2e0cbb88bb
Call draw_borders() directly from C
2017-09-15 10:45:23 +05:30
Kovid Goyal
8e379df24f
Ensure the visual bell is cleared
...
UI thread must wakeup after visual bell duration
2017-09-15 10:45:23 +05:30
Kovid Goyal
ccf5391b45
Move visual bell tracking into the Screen object
2017-09-15 10:45:23 +05:30
Kovid Goyal
ca5eb4feb5
Start working on central object to track state
2017-09-15 10:45:23 +05:30
Kovid Goyal
c1cb4df9d2
Avoid unnecessary use of timers for resize_pty
2017-09-15 10:45:23 +05:30
Kovid Goyal
367ffb602c
Color table buffer has to be bound before each render
...
Other wise the last created child's buffer is always used
2017-09-15 10:45:23 +05:30
Kovid Goyal
4e8ade53d8
Fix compilation on apple
2017-09-15 10:45:23 +05:30
Kovid Goyal
bc8a8d83fc
Restore a couple fo python bindings needed for the test suite
2017-09-15 10:45:23 +05:30
Kovid Goyal
7f6befe4f9
Remove the python OpenGL wrapper as it is no longer needed
2017-09-15 10:45:23 +05:30
Kovid Goyal
86893db46b
Fix re-alloc of sprite texture
2017-09-15 10:45:22 +05:30
Kovid Goyal
3c3eeb1835
...
2017-09-15 10:45:22 +05:30
Kovid Goyal
3a883ad436
Move the sprites GPU code to shaders.c
2017-09-15 10:45:22 +05:30
Kovid Goyal
cc8271b766
Fix compilation on macOS
2017-09-15 10:45:22 +05:30
Kovid Goyal
1246032b67
Remove unused code
2017-09-15 10:45:22 +05:30
Kovid Goyal
9eea178890
Make --debug-gl have zero runtime cost when absent
2017-09-15 10:45:22 +05:30
Kovid Goyal
44f456089b
Migrate the cell program
2017-09-15 10:45:22 +05:30
Kovid Goyal
2fff6e1cb9
Directly rende r borders instead of going through the active tab
2017-09-15 10:45:22 +05:30
Kovid Goyal
ff6c366b8a
Remove unused code
2017-09-15 10:45:22 +05:30
Kovid Goyal
6701d52e26
Simplify error handling of open gl code
2017-09-15 10:45:22 +05:30
Kovid Goyal
11e147c718
...
2017-09-15 10:45:21 +05:30
Kovid Goyal
634cd53454
Remove unused code
2017-09-15 10:45:21 +05:30
Kovid Goyal
084f31292b
...
2017-09-15 10:45:21 +05:30
Kovid Goyal
1e37041b50
Fix rendering of horizontal borders
2017-09-15 10:45:21 +05:30
Kovid Goyal
2a24199c90
Migrate the borders program
2017-09-15 10:45:21 +05:30
Kovid Goyal
5905216f96
Use instanced rendering for the borders
2017-09-15 10:45:21 +05:30
Kovid Goyal
3ddf963c5c
API to map VAO buffers
2017-09-15 10:45:21 +05:30
Kovid Goyal
778c3c075a
Migrate the cursor program
2017-09-15 10:45:21 +05:30
Kovid Goyal
d2b3052918
Code to get uniform locations
2017-09-15 10:45:21 +05:30
Kovid Goyal
8ce2794a8a
More work on migrating shader code
2017-09-15 10:45:20 +05:30
Kovid Goyal
c1dc4d0575
...
2017-09-15 10:45:20 +05:30
Kovid Goyal
9c184c794a
Migrate function to compile programs
2017-09-15 10:45:20 +05:30
Kovid Goyal
d3f2620caf
Migrate GL setup and error handling code
2017-09-15 10:45:20 +05:30
Kovid Goyal
a1c9c90fc8
Start work on moving shaders.py to C
2017-09-15 10:45:20 +05:30
Kovid Goyal
83f4b6e391
Remove unused code
2017-09-15 10:45:20 +05:30
Kovid Goyal
cc9ed734cf
Get rid of prepare_for_render as it is not needed anymore
2017-09-15 10:45:20 +05:30
Kovid Goyal
98daddc39a
Move selection render tracking into the Screen class
2017-09-15 10:45:20 +05:30
Kovid Goyal
408c719c5f
Move selection tracking into the Screen class
2017-09-15 10:45:20 +05:30
Kovid Goyal
5caea75115
...
2017-09-15 10:45:20 +05:30
Kovid Goyal
19bd068599
Raise an error on negative scroll amounts
2017-09-15 10:45:19 +05:30
Kovid Goyal
2490199e52
Move scroll tracking into the screen object
2017-09-15 10:45:19 +05:30
Kovid Goyal
726a6370ad
...
2017-09-15 10:45:19 +05:30
Kovid Goyal
00b8db26fc
Add libunistring on travis
2017-09-15 10:45:19 +05:30
Kovid Goyal
544c402c9f
Move word selection code into C, avoiding the need for the python regex module
2017-09-15 10:45:19 +05:30
Kovid Goyal
9bea1001f9
Speedup unicode character property lookup
...
Use libunistring instead of building predicates from the unicode
database
2017-09-15 10:45:19 +05:30
Kovid Goyal
63882e1fdc
Make selection smarter
...
It now does not add trailing blank cells on selected lines to the
selection.
2017-09-15 10:45:19 +05:30
Kovid Goyal
5103381c27
DRYer
2017-09-15 10:45:19 +05:30
Kovid Goyal
56e55ddbc3
Fix incorrect handling of auto for bold and italic fonts on macOS
2017-09-15 10:45:19 +05:30
Kovid Goyal
a261e1f57d
Fix erro on python built without threading
2017-09-15 10:45:19 +05:30
Kovid Goyal
5ceec08d32
Use buffer mapping for the tabbar selbuf
2017-09-15 10:45:18 +05:30
Kovid Goyal
92d53daf22
Dont spam resize_pty events, include a small timeout
2017-09-15 10:45:18 +05:30
Kovid Goyal
99acc4adcb
Fix a couple of recursive timer adds
2017-09-15 10:45:18 +05:30
Kovid Goyal
827d086c54
Allow re-adding of timers during timers_call()
2017-09-15 10:45:18 +05:30
Kovid Goyal
fb820faf11
Prevent timers being added in a call
2017-09-15 10:45:18 +05:30
Kovid Goyal
0aecae288f
Avoid extra function call when waking up for cursor blink rendering
2017-09-15 10:45:18 +05:30
Kovid Goyal
3274327fe7
Speedup as_unicode by avoiding an unnecessary malloc/free
2017-09-15 10:45:18 +05:30
Kovid Goyal
f97127f587
...
2017-09-15 10:45:18 +05:30
Kovid Goyal
b8c34c3ee2
Move implementation of screen_line() into C
2017-09-15 10:45:18 +05:30
Kovid Goyal
4ae3abb3cb
Fix selection being cleared when drag scrolling
2017-09-15 10:45:18 +05:30
Kovid Goyal
5c1747b2c8
Use buffer mapping for the selection buffer
2017-09-15 10:45:17 +05:30
Kovid Goyal
2611678855
...
2017-09-15 10:45:17 +05:30
Kovid Goyal
746a20a11d
Cleanup data-types.h
2017-09-15 10:45:17 +05:30
Kovid Goyal
3072eac222
DRYer sprites
2017-09-15 10:45:17 +05:30
Kovid Goyal
a4580f2126
DRYer glfw
2017-09-15 10:45:17 +05:30
Kovid Goyal
4a27793651
DRYer CoreText
2017-09-15 10:45:17 +05:30
Kovid Goyal
5ed4b29e4b
DRYer fontconfig module
2017-09-15 10:45:17 +05:30
Kovid Goyal
b8678871df
Remove some unnecessary declarations from data-types.h
2017-09-15 10:45:17 +05:30
Kovid Goyal
457bf8c289
Move gl binding code into its own module
2017-09-15 10:45:17 +05:30
Kovid Goyal
dd8be35922
...
2017-09-15 10:45:17 +05:30
Kovid Goyal
b4d1cfea50
...
2017-09-15 10:45:16 +05:30
Kovid Goyal
7113d5c293
Use a mapped buffer to send color table to the GPU
2017-09-15 10:45:16 +05:30
Kovid Goyal
bc97cfa024
Use a null to represent a blank rather than a space
...
This has performance benefits when clearing (can use a single
memset). Also allows detecting trailing whitespace on lines correctly.
2017-09-15 10:45:16 +05:30
Kovid Goyal
382daacb73
Remove the support for multiple top-level glfw windows
2017-09-15 10:45:16 +05:30
Kovid Goyal
aa526db772
Another place that was using python threading APIs
2017-09-15 10:45:16 +05:30
Kovid Goyal
1f9510ab9e
Fix incorrect decoration colors
2017-09-15 10:45:16 +05:30
Kovid Goyal
b8acb9b133
Pass cell data to GPU directly
...
Converts update_cell_range() to a simple memcpy(). The GPU has to do
roughly the same amount of work (there is one extra attribute, and one
extra calculation for reverse video).
2017-09-15 10:45:16 +05:30
Kovid Goyal
51231b7eb2
Migrate tabs to also use the new buffer mapping API
2017-09-15 10:45:16 +05:30
Kovid Goyal
029ff84f09
Remove the change tracker related tests
...
The change tracker no longer exists
2017-09-15 10:45:16 +05:30
Kovid Goyal
f5dbe36cf3
Remove the now useless change tracking code
2017-09-15 10:45:16 +05:30
Kovid Goyal
906937149e
Copy cell data to the GPU in a single pass
2017-09-15 10:45:15 +05:30
Kovid Goyal
f324d8ec4f
Fix a couple of bugs in the buffer map API
2017-09-15 10:45:15 +05:30
Kovid Goyal
2089d2bfdf
Fix main_loop() not returning NULL when an error has occurred
2017-09-15 10:45:15 +05:30
Kovid Goyal
281cb50780
API to map OpenGL buffers
2017-09-15 10:45:15 +05:30
Kovid Goyal
012b209a56
Update CELL data structure
2017-09-15 10:45:15 +05:30
Kovid Goyal
c0593d9f1f
Get rid of update_screen
...
No longer needed.
2017-09-15 10:45:15 +05:30
Kovid Goyal
f655112bda
Directly copy the sprite positions into the GPU buffer
2017-09-15 10:45:15 +05:30
Kovid Goyal
c4680aae2c
Track sprite positions in the Cell structure
2017-09-15 10:45:15 +05:30
Kovid Goyal
a8d5ad2c1a
...
2017-09-15 10:45:15 +05:30
Kovid Goyal
333eb3534a
...
2017-09-15 10:45:14 +05:30
Kovid Goyal
1a42356f68
Forgot to close stdin_read_fd in the master process
2017-09-15 10:45:14 +05:30
Kovid Goyal
1197549e5b
Remove the last use of the python threading module
2017-09-15 10:45:14 +05:30
Kovid Goyal
d2749f5ccc
Sigh
2017-09-15 10:45:14 +05:30
Kovid Goyal
6379b3f898
Forgot to modify the fds array in remove children
2017-09-15 10:45:14 +05:30
Kovid Goyal
c97afd7b44
Handle unexpected closing of child fds gracefully
2017-09-15 10:45:14 +05:30
Kovid Goyal
9b9003ded0
Simplify code to set thread names
2017-09-15 10:45:14 +05:30
Kovid Goyal
5550c7a95f
_GNU_SOURCE needed on apple as well?
2017-09-15 10:45:14 +05:30
Kovid Goyal
fe7f3233ba
Fix initial tab bar visibility when starting a session with multiple tabs
2017-09-15 10:45:14 +05:30
Kovid Goyal
a52f0939df
Make using the timer for wakeups more efficient
2017-09-15 10:45:14 +05:30
Kovid Goyal
ff3ddfd369
Simply use of repaint_delay in parse_input()
...
Dont maintain per child parse times. Instead just gate it globally.
This could result in slowdowns with lots of very active children, but
that seems unlikely.
2017-09-15 10:45:13 +05:30
Kovid Goyal
161161f840
Dont include stropts.h on macs
2017-09-15 10:45:13 +05:30
Kovid Goyal
b0e1c74fdd
Note about interaction of cursor_blink_time and repaint_delay
2017-09-15 10:45:13 +05:30
Kovid Goyal
1bd46b0636
Avoid extra wakeup when rendering blinking cursor
2017-09-15 10:45:13 +05:30
Kovid Goyal
5e676090fa
Report failures to write to child
2017-09-15 10:45:13 +05:30
Kovid Goyal
4d31624a69
Better handling of failure to execute child
...
exec() a shell instead so that we are not left with a forked but not
execed process
2017-09-15 10:45:13 +05:30
Kovid Goyal
c9695efd18
...
2017-09-15 10:45:13 +05:30
Kovid Goyal
7dc51d7d9e
Handle ioctl failures when resizing the tty more gracefully
2017-09-15 10:45:13 +05:30
Kovid Goyal
d5d812ccfe
Fix for session with empty enabled_layouts
2017-09-15 10:45:13 +05:30
Kovid Goyal
af02b735e7
Move child process management into child-monitor.c
2017-09-15 10:45:13 +05:30
Kovid Goyal
52ab534e22
Move setting of IUTF8 into child-monitor.c
2017-09-15 10:45:12 +05:30
Kovid Goyal
895eedeb9b
Apparently pthread_mutex_t is a scalar on macs
2017-09-15 10:45:12 +05:30
Kovid Goyal
5972a37550
Work on centralising lifecycle management in the child monitor
2017-09-15 10:45:12 +05:30
Kovid Goyal
079054f798
Fix tab bar rendering
2017-09-15 10:45:12 +05:30
Kovid Goyal
914f7ddbd5
Fix zero division
2017-09-15 10:45:12 +05:30
Kovid Goyal
5357876128
Ensure screen objects are de-allocated immediately on close instead of waiting for garbage collection
2017-09-15 10:45:12 +05:30
Kovid Goyal
b20367b888
Avoid dict lookups when calling python callbacks
2017-09-15 10:45:12 +05:30
Kovid Goyal
6698712b44
Respect repaint_delay when calling render() as well
2017-09-15 10:45:12 +05:30
Kovid Goyal
21b799905d
Move the main loop into the C module
2017-09-15 10:45:12 +05:30
Kovid Goyal
02870d7221
Move the signal received handler into the C module
2017-09-15 10:45:12 +05:30
Kovid Goyal
d4991424f9
Set the python thread switch interval to forever
2017-09-15 10:45:11 +05:30
Kovid Goyal
1684bda1e9
Better thread name
2017-09-15 10:45:11 +05:30
Kovid Goyal
e8b5a72c96
Remove GIL management code since it is no longer needed
2017-09-15 10:45:11 +05:30
Kovid Goyal
7f180ad3d9
Do not use the python threading module
...
Threading in python imposes significant overhead.
Instead create the thread using pthreads directly
2017-09-15 10:45:11 +05:30
Kovid Goyal
94c4c00859
Move signal handling code into the C module
2017-09-15 10:45:11 +05:30
Kovid Goyal
1308bbac2d
Move creation of wakeup fds to c module
2017-09-15 10:45:11 +05:30
Kovid Goyal
76890a2b71
Do not perform any python API calls in the I/O thread
2017-09-15 10:45:11 +05:30
Kovid Goyal
2c8f3b6d98
Remove unnecessary extra lock/unlock of children_mutex
2017-09-15 10:45:11 +05:30
Kovid Goyal
0e46994d0a
Restore repaint_delay
2017-09-15 10:45:11 +05:30
Kovid Goyal
44650c5723
Make reading into the screen read buffer more efficient
2017-09-15 10:45:11 +05:30
Kovid Goyal
234bb07b67
Initial attempt at moving all threading code into a single file
2017-09-15 10:45:10 +05:30
Kovid Goyal
fea79878fa
Make the monotonic() function available everywhere
2017-09-15 10:45:10 +05:30
Kovid Goyal
0365828a5b
Remove all python threading related code
2017-09-15 10:45:10 +05:30
Kovid Goyal
fa30a95b46
...
2017-09-15 10:45:10 +05:30
Kovid Goyal
f44d56b116
Ensure GIL is not released when rendering sprites
2017-09-15 10:45:10 +05:30
Kovid Goyal
6127d2d122
Make the sprite map globally accessible from C code as well as python code
...
The lock was removed as the Python GIL is sufficient to serialize access
to the SpriteMap structure.
2017-09-15 10:45:10 +05:30
Kovid Goyal
4feff2e2da
Fix rendering of strikethrough not working
2017-09-15 10:45:10 +05:30
Kovid Goyal
8624dbac2c
Sigh, stupid OpenGL
...
Apparently glGetUniformIndices has different declarations on different
systems.
2017-09-15 10:45:10 +05:30
Kovid Goyal
4c0cf93562
Fix tab bar not rendering because of selection handling changes
2017-09-15 10:45:10 +05:30
Kovid Goyal
d12573a67d
Dont send the color table to the GPU on every frame
2017-09-15 10:45:09 +05:30
Kovid Goyal
d7b433f6b7
API for Uniform Block Objects
2017-09-15 10:45:09 +05:30
Kovid Goyal
b1168f6c6c
Handle zero timeout correctly
2017-09-15 10:45:09 +05:30
Kovid Goyal
91e263cabb
Fix sub-millisecond and no event waits not working
2017-09-15 10:45:09 +05:30
Kovid Goyal
ed15f2f97e
Get the layout of the Cell structure
2017-09-15 10:45:09 +05:30
Kovid Goyal
6689595277
Dont use Py_UCS4 for char_type
2017-09-15 10:45:09 +05:30
Kovid Goyal
34f946fd98
Move rendering of selection to GPU
2017-09-15 10:45:09 +05:30
Kovid Goyal
a5bec84554
...
2017-09-15 10:45:09 +05:30
Kovid Goyal
0fae3e1b10
...
2017-09-15 10:45:09 +05:30
Kovid Goyal
a56e1296fd
Refactor the tab bar into its own class
...
Also ensure that Screen APIs are only used in the child thread in the
tab bar
2017-09-15 10:45:09 +05:30
Kovid Goyal
acdeaaeda5
Move the border shaders into their own files
2017-09-15 10:45:08 +05:30
Kovid Goyal
a44e3a3a50
Ensure line numbers reported by the GLSL compiler are correct
2017-09-15 10:45:08 +05:30
Kovid Goyal
db40445572
Do color mapping on the GPU
2017-09-15 10:45:08 +05:30
Kovid Goyal
1d888c9194
Centralise color management into ColorProfile
2017-09-15 10:45:08 +05:30
Kovid Goyal
b50eaa9cbb
ColorProfile should belong to Screen
2017-09-15 10:45:08 +05:30
Kovid Goyal
fe764ab6b6
oops
2017-09-15 10:45:08 +05:30
Kovid Goyal
bab4680828
...
2017-09-15 10:45:08 +05:30
Kovid Goyal
564010c7cd
Migrate history.c
2017-09-15 10:45:08 +05:30
Kovid Goyal
052fd46ff9
Migrate sprites.c
2017-09-15 10:45:08 +05:30
Kovid Goyal
4fd8c7cfaa
DRYer
2017-09-15 10:45:08 +05:30
Kovid Goyal
37f0cf86d0
Migrated line.c
2017-09-15 10:45:07 +05:30
Kovid Goyal
0cbd3a2820
Start work on using a struct for the cell
...
Should eventually allow the screen buf to be sent directly to the GPU
without a serialization step.
Migrates line-buf.c
2017-09-15 10:45:07 +05:30
Kovid Goyal
af3c89d79f
oops
2017-09-15 10:45:07 +05:30
Kovid Goyal
a1d75eb00d
Use a function pointer to avoid a branch in loop()
2017-09-15 10:45:07 +05:30
Kovid Goyal
6176607ac4
Initial stab at switching to poll() instead of select()
...
Also avoid python code in the child monitoring inner loop
2017-09-15 10:45:07 +05:30
Kovid Goyal
40254625d9
Fix timers not being replaced
2017-09-15 10:45:07 +05:30
Kovid Goyal
29b16d0856
Fix timers not being re-sorted on replace
2017-09-15 10:45:07 +05:30
Kovid Goyal
ff72b1f96f
Limit sprite co-ordinates to fit in uint16_t
2017-09-15 10:45:07 +05:30
Kovid Goyal
a429bcbb22
Dont use the glfw timer function as it requires glfwInit
2017-09-15 10:45:07 +05:30
Kovid Goyal
3c7305b93c
...
2017-09-15 10:45:07 +05:30
Kovid Goyal
f9b1a71edd
Move the timers implementation to C
...
It is used int he hot loop for monitoring the child process
2017-09-15 10:45:06 +05:30
Kovid Goyal
2de0c82f18
Fix incorrect full keyboard mode escape codes
2017-09-15 10:44:56 +05:30
Kovid Goyal
cdb12f2049
Fix #122
2017-09-13 14:20:20 +05:30
Kovid Goyal
ca310fc2f2
Add a note about border visibility
2017-09-12 06:52:33 +05:30
Kovid Goyal
273210cb97
Ignore resize requests for very small sizes. Fixes #119
2017-08-28 20:31:01 +05:30
Kovid Goyal
b957ef441c
Avoid function name conflict with index from string.h
...
Hopefully Fixes #118
2017-08-27 21:17:18 +05:30
Kovid Goyal
31775c8b50
...
2017-08-26 15:19:33 +05:30
Kovid Goyal
8199802b44
Remove unused code
2017-08-26 15:10:55 +05:30
Kovid Goyal
941c553172
Implement an option to adjust the line height
...
Fixes #116
2017-08-26 14:14:51 +05:30
Kovid Goyal
8ee1c851a1
Optimize the bit twiddling in sprite_position_for
2017-08-26 13:05:18 +05:30
Kovid Goyal
4ce9f550ac
Inline to_color for an easy performance boost
2017-08-26 10:52:24 +05:30
Kovid Goyal
7041616837
More semantic handling of profile arg when compiling
2017-08-26 10:36:04 +05:30
Kovid Goyal
6a3c812470
Forgot to remove python profiling from one place
2017-08-26 10:35:11 +05:30
Kovid Goyal
778b090467
...
2017-08-26 10:25:50 +05:30
Kovid Goyal
a922b4c789
Add instrumentation to analyse kitty performance
2017-08-26 10:24:12 +05:30
Kovid Goyal
e43bf891e4
Print a warning when the specified font family does not exist
2017-08-25 09:55:46 +05:30
Kovid Goyal
fa8203ff31
CoreText: Use a scoring function to find the best matching font
...
Also if the specified family does not exist, fallback to Menlo
2017-08-25 09:53:11 +05:30
Kovid Goyal
212207d667
Test function for family matching
2017-08-24 22:27:28 +05:30
Kovid Goyal
95a3c51a4b
Remove unused code
2017-08-24 22:22:55 +05:30
Kovid Goyal
697a7b78b3
macOS: Fix selecting fonts using full names (including sub-family) not working
...
Fixes #83
2017-08-24 19:16:12 +05:30
Kovid Goyal
58644e2b37
Function to get all fonts on macOS
2017-08-24 15:05:42 +05:30
Kovid Goyal
ddcd4daede
macOS: Fix wide characters having their right edges slightly truncated
2017-08-24 12:46:41 +05:30
Kovid Goyal
678bd97e1f
Merge branch 'patch-1' of https://github.com/leonardt/kitty
2017-08-24 08:01:52 +05:30
Leonard (Lenny) Truong
2eb4bf7a1d
Typo fix in default kitty.conf
2017-08-23 14:28:51 -07:00
Kovid Goyal
e0e517d6ec
Modify VAO API to allow using multiple buffers
2017-08-23 17:32:46 +05:30
Kovid Goyal
b6679ff7b5
version 0.3.0
2017-08-23 07:25:37 +05:30
Kovid Goyal
de80003103
macOS: Show the current window title in the global menu bar
2017-08-22 22:46:46 +05:30
Kovid Goyal
2b0596c7f9
Add a basic global menubar on macOS
...
Fixes #111
2017-08-22 20:59:56 +05:30
Kovid Goyal
3d15a1d786
Fix textures not being rendered in a render call that also uploads textures
...
The active texture should not be unbound in the upload texture functions
2017-08-22 18:34:25 +05:30
Kovid Goyal
1fcb865202
...
2017-08-22 18:19:46 +05:30
Kovid Goyal
1c56de5605
Change default usage mode to GL_STREAM_DRAW
2017-08-22 18:10:28 +05:30
Kovid Goyal
adbce71fb4
Remove unused code
2017-08-22 18:04:40 +05:30
Kovid Goyal
00e3ea8c08
Remove unused code
2017-08-22 17:32:40 +05:30
Kovid Goyal
36432c8616
API to conveniently download data from a vertex buffer
2017-08-22 12:51:30 +05:30
Kovid Goyal
03e0b9de04
Use vertex buffers instead of texture buffers
...
Apparently, integer samplers for textFetch() are broken on some macOS
Intel drivers. Fixes #101
2017-08-22 12:08:35 +05:30
Kovid Goyal
4364163ceb
Use a single buffer for multiple vertex arrays
2017-08-22 07:59:51 +05:30
Kovid Goyal
ffd9ec653d
Allow programs to be used with multiple vertex array objects
2017-08-22 00:24:45 +05:30
Kovid Goyal
ee3c3e4cb4
Binding for DeleteVertexArray
2017-08-22 00:18:03 +05:30
Kovid Goyal
277c46908d
Remove unused code
2017-08-21 23:55:39 +05:30
Kovid Goyal
8e27c80e1f
A spot of refactoring
2017-08-21 23:26:30 +05:30
Kovid Goyal
afa767c3a8
Support vertex attrib divisors
2017-08-21 23:24:05 +05:30
Kovid Goyal
67ec04fba3
Also use the buffer manager for vertex arrays
2017-08-21 23:10:25 +05:30
Kovid Goyal
f35bf7f1ba
Move buffer management into its own class
2017-08-21 22:53:13 +05:30
Kovid Goyal
4fdb55e260
Ensure window with hidden chrome is resizable on macOS
2017-08-21 21:06:34 +05:30
Kovid Goyal
be06669e8f
Ensure we dont exceed GL_MAX_TEXTURE_BUFFER_SIZE
2017-08-21 20:53:02 +05:30
Kovid Goyal
313253cd95
Add glFlush() and glFinish() bindings
2017-08-21 19:55:28 +05:30
Kovid Goyal
8c16be2ccd
Remove unused code
2017-08-21 19:38:52 +05:30
Kovid Goyal
e1b276786b
Fix #112
2017-08-21 19:10:06 +05:30
Kovid Goyal
05f5a05c20
Ensure sprite map size tracking is always correct
2017-08-21 17:39:30 +05:30
Kovid Goyal
7e79aac275
Fix incorrect tracking of previous buffer sizes to avoid re-allocs
2017-08-21 17:12:46 +05:30
Kovid Goyal
0a21819e16
DRYer
2017-08-21 16:53:04 +05:30
Kovid Goyal
fe3e51a00d
Move the GLSL shaders into their own files
2017-08-21 16:39:34 +05:30
Kovid Goyal
21874339f1
Remove un-needed binding of the sprite_map buffer
2017-08-21 15:51:55 +05:30
Kovid Goyal
4f22fcdaac
Code to verify buffer uploads are working
2017-08-21 15:30:50 +05:30
Kovid Goyal
0424d665d5
Function to read data from OpenGL buffers
2017-08-21 15:29:05 +05:30
Kovid Goyal
0bbea6812e
Avoid unnecessary reallocs for cell data
...
Only re-allocate when the buffer size changes
2017-08-21 14:56:29 +05:30
Kovid Goyal
101a50b0ff
Do not use GL_ARB_texture_buffer_object_rgb32
...
This is not available on macOS using Intel graphics cards
2017-08-21 12:46:09 +05:30
Kovid Goyal
a9f3a698d2
Also check for required OpenGL extensions on OS X
2017-08-21 11:21:57 +05:30
Kovid Goyal
5117a2c17a
version 0.2.8
2017-08-05 08:21:20 +05:30
Kovid Goyal
ebce1d7c61
Fix incorrect handling of escape codes to change default foreground and background colors. Fixes #104
2017-08-04 21:57:22 +05:30
Kovid Goyal
e4668c1aff
Replay set_dynamic_color and set_color_table_color
2017-08-04 20:47:59 +05:30
Kovid Goyal
2519c49c02
Fix incorrect escape codes generated when using the obsolete "normal" mouse protocol.
...
Fixes #105
2017-08-04 20:09:18 +05:30
Kovid Goyal
9e512ff58a
Ensure queue_action is only called after the Tab object is fully initialized
...
Fix #103
2017-08-04 07:52:25 +05:30
Kovid Goyal
ed50595aca
Add a --detach option
...
Allows kitty to detach itself from the controlling terminal. Useful
when launching kitty from a GUI environment with broken stdout/stderr or
when launching from a terminal that you want to close later without
affecting the launched kitty instance.
2017-08-03 22:35:47 +05:30
Kovid Goyal
9d62d087e0
Redirect xsel std streams to /dev/null
...
Prevents hanging if the streams are blocked. Fixes #102
2017-08-03 21:55:09 +05:30
Kovid Goyal
6b933e33f5
If the saved initial window size fails, retry creating the window with a standard size. Fixes #98
2017-07-30 08:32:51 +05:30
Kovid Goyal
a86931f401
Use the new glfw API to set WM_CLASS if available
2017-07-27 18:11:23 +05:30
Kovid Goyal
fc4e1595e8
Print a warning about unknown config keys
2017-07-23 22:59:30 +05:30
Kovid Goyal
b36c3f3425
Clean up config merging
2017-07-23 22:45:57 +05:30
Kovid Goyal
e427fd1233
Fix #95
2017-07-23 21:36:43 +05:30
Kovid Goyal
dd3af45043
Implement a send_text action to allow using keyboard shortcuts to send arbitrary text
...
Fixes #94
2017-07-23 14:37:15 +05:30
Kovid Goyal
304d42d4c2
Fix #93
...
Ignore invalid language names returned by the coca framework on macOS
2017-07-16 22:49:05 +05:30
Kovid Goyal
abca9280e7
Fix #92
2017-07-15 08:22:40 +05:30
Kovid Goyal
9a103f3979
version 0.2.7
2017-07-14 10:46:35 +05:30
Kovid Goyal
270dde7020
Use erase in line instead as it is more efficient
2017-07-13 19:32:18 +05:30
Kovid Goyal
11de18e737
Fix #91
2017-07-13 19:24:26 +05:30
Kovid Goyal
62db44c71e
macOS: Ensure the LANG environment variable is set
...
Fixes #90
2017-06-25 20:44:16 +05:30
Kovid Goyal
3d5c65eaea
Fix #89
2017-06-21 10:19:45 +05:30
Kovid Goyal
ea298f95f2
Another place we can use exist_ok
2017-06-09 00:00:02 +05:30
Kovid Goyal
2f21e0e341
Merge branch 'patch-2' of https://github.com/mimi1vx/kitty
2017-06-08 23:59:14 +05:30
Ondřej Súkup
ae62d36a4a
Remove unneeded try except block
...
os.makedirs has from python-3.2 option `exist_ok`
2017-06-08 20:25:34 +02:00
Kovid Goyal
76e3101d9b
Hide all symbols
2017-06-07 11:19:53 +05:30
Kovid Goyal
c3442545a8
Add a note about changing mouse wheel scroll direction
2017-06-06 00:06:43 +05:30
Kovid Goyal
3a9b0faa06
Be more positive ;)
2017-06-06 00:03:43 +05:30
Kovid Goyal
4989b1f8bb
...
2017-06-05 23:58:36 +05:30
Kovid Goyal
348fe4ada4
Option for window padding
...
Fixes #85
2017-06-05 23:57:17 +05:30
Kovid Goyal
bbc6b2d86a
Option to size window margin (blank area outside window borders)
...
Defaults to zero
2017-06-05 22:27:47 +05:30
Kovid Goyal
b4d4ed718f
version 0.2.6
2017-06-03 09:58:38 +05:30
Kovid Goyal
836724709e
Add an option to hide the window title bar on macOS
...
Fixes #84
2017-06-03 09:57:29 +05:30
Kovid Goyal
96d2567815
Fix compilation with gcc >= 7
...
Requires explicit fallthrough comments in switch statements
2017-06-03 08:59:09 +05:30
Kovid Goyal
419f43ceed
Fix deprecation warning on macOS 10.12
2017-06-03 08:58:11 +05:30
Kovid Goyal
47851ebb1b
Fix conversion of type 2 terminal colors not working because of missing break
2017-06-03 08:51:00 +05:30
Kovid Goyal
24a4fbd987
Add a function to hide the title bar on OS X
2017-06-03 08:45:27 +05:30