Commit Graph

7505 Commits

Author SHA1 Message Date
Kovid Goyal
7cd05ad76b ... 2021-08-18 10:06:07 +05:30
Kovid Goyal
fa327d618d Cursor movement at shell prompts on click
Fixes #3825
2021-08-18 10:06:07 +05:30
Kovid Goyal
bc202aec6e Dont discard information on whether a click hit a URL 2021-08-18 10:06:07 +05:30
Kovid Goyal
606ce4e66f Add descriptions to fish completions 2021-08-18 10:06:07 +05:30
Kovid Goyal
a10c19456a Fix completions for fish 2021-08-18 10:06:07 +05:30
Kovid Goyal
20688661aa ... 2021-08-18 10:06:07 +05:30
Kovid Goyal
cbbd9f475e fish completions dont want quoting 2021-08-18 10:06:07 +05:30
Kovid Goyal
f4b3948168 Use a shortened dir path for window title
Also respect named directories
2021-08-18 10:06:07 +05:30
Kovid Goyal
2245d4506f Add title and cursor to fish integration 2021-08-18 10:06:06 +05:30
Kovid Goyal
7f3da135e2 ... 2021-08-18 10:06:06 +05:30
Kovid Goyal
23f94b6e67 Get prompt marking working for th fish shell 2021-08-18 10:06:06 +05:30
Kovid Goyal
0ec10b52e0 Add shebangs 2021-08-18 10:06:06 +05:30
Kovid Goyal
2fcd57410a Dont fail if rc file dir doesnt exist 2021-08-18 10:06:06 +05:30
Kovid Goyal
a993a71857 Add shell integration for bash 2021-08-18 10:06:06 +05:30
Kovid Goyal
01ce0e1d1a Prevent fd leak if copystat fails 2021-08-18 10:06:06 +05:30
Kovid Goyal
040a152f1f Preserve stat attributes when modifying rc files atomically 2021-08-18 10:06:06 +05:30
Kovid Goyal
f4f2013c2b Create shell integration rc file if it doesnt exist 2021-08-18 10:06:06 +05:30
Kovid Goyal
6e172bdc09 Fix cursor in zsh vicmd mode 2021-08-18 10:06:06 +05:30
Kovid Goyal
725ec57bee Automatically setup shell integration for ZSH 2021-08-18 10:06:06 +05:30
Kovid Goyal
8a9234ba4f Move shell integration docs into own file 2021-08-18 10:06:06 +05:30
Kovid Goyal
a00e4ebe3f Improce docstring 2021-08-18 10:06:06 +05:30
Kovid Goyal
2d93a011df Option to control shell integration 2021-08-18 10:06:05 +05:30
Kovid Goyal
bffe7aba8f Add shell integration scripts to kitty package 2021-08-18 10:06:05 +05:30
Kovid Goyal
b581408137 DRYer 2021-08-18 10:06:05 +05:30
Kovid Goyal
2263cd1355 Use a _ksi_ prefix for shell integration
Sadly function in zsh are global so prefix all function and global var
names with _ksi_ as poor mans namespacing.
2021-08-18 10:06:05 +05:30
Kovid Goyal
1bb87c71aa Make all shell integrations disablable 2021-08-18 10:06:05 +05:30
Kovid Goyal
7dec7d615a Use an env var to control shell integration 2021-08-18 10:06:05 +05:30
Kovid Goyal
2e5308ad40 Use an associative array for prompt data 2021-08-18 10:06:05 +05:30
Kovid Goyal
d1015de700 Workaround for base64 on linux inserting line breaks by default 2021-08-18 10:06:05 +05:30
Kovid Goyal
934318adb1 DRYer 2021-08-18 10:06:05 +05:30
Kovid Goyal
179c2b21c0 Make debug_print remove esc and bel
Should really be made more robust, but cant be bothered
2021-08-18 10:06:05 +05:30
Kovid Goyal
85f6d3fed8 Use PS1 to set the prompt start mark
Needed as precmd functions are not called when redrawing the prompt. As
far as I can tell zsh stupidly has no hook that is called when the
prompt is redrawn after a window resize or when a background job
finishes.
2021-08-18 10:06:05 +05:30
Kovid Goyal
a4925eeeb4 ... 2021-08-18 10:06:05 +05:30
Kovid Goyal
196200d03f Dont reflow the current prompt when resizing
This ensures that there is no leftover line when the shell redraws the prompt,
by making the prompt a simple single character prompt before rewrapping.
2021-08-18 10:06:04 +05:30
Kovid Goyal
f2ca0424a0 Use correct src_line for attrs copy when rewrapping 2021-08-18 10:06:04 +05:30
Kovid Goyal
07b971ad5f Add a shortcut to easily browse the output of the last command run in the shell 2021-08-18 10:06:04 +05:30
Kovid Goyal
51fa25e03d Add shortcuts for jumping to prev/next shell prompt 2021-08-18 10:06:04 +05:30
Kovid Goyal
bd5f100f13 Add test for multiline prompt jumping 2021-08-18 10:06:04 +05:30
Kovid Goyal
3b8da7e4c2 implementation of scroll_to_prompt 2021-08-18 10:06:04 +05:30
Kovid Goyal
4a9a021b2c DRYer 2021-08-18 10:06:04 +05:30
Kovid Goyal
d4dd226d8f Preserve prompt markings when copying lines and rewrapping them 2021-08-18 10:06:04 +05:30
Kovid Goyal
0d4237f802 Mark prompt lines 2021-08-18 10:06:04 +05:30
Kovid Goyal
46b9aca16e Start work on shell integration 2021-08-18 10:06:04 +05:30
Kovid Goyal
4931477ef4 typo 2021-08-18 10:06:04 +05:30
Kovid Goyal
dfdd1697c5 Make the signatures of drat tab functions extendable with backwards compat 2021-08-18 10:03:50 +05:30
Kovid Goyal
801f0d51a1 Cleanup docs a bit 2021-08-18 08:31:49 +05:30
Kovid Goyal
bdebb19648 Merge branch 'wayland-hyper' of https://github.com/orki/kitty 2021-08-18 08:29:51 +05:30
Ravi R Kiran
75df0cbcf5 Gate Wayland modifier autodiscovery behind an environment variable 2021-08-17 21:46:09 -05:00
Kovid Goyal
e23b4ce6b4 Document a couple more env vars 2021-08-18 07:49:54 +05:30
Ravi R Kiran
1b88a68b55 Be even more conservative in declaring success
This handles the nonsensical case of Alt_X being mapped to two
different modifiers.
2021-08-17 21:11:55 -05:00