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
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
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
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
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
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
ff52ff7865
version 0.14.1
2019-05-29 19:57:00 +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
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
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
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
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
8b99d0a432
Make the default live resize strategy drawing the current window contents unchanged
2019-05-19 09:45:59 +05:30
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
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
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
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
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
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
BlahGeek
eaba3cff0b
Fix windows_for_payload
2019-05-02 17:39:00 +08:00