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 9135387cfa141e9ec27271bc41d5b6c43da90197 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