Commit Graph

31 Commits

Author SHA1 Message Date
Kovid Goyal
b5676a53ee
Use a special role for actions documentation 2022-02-04 18:24:39 +05:30
Kovid Goyal
d70610f5d9
more uses of extlinks 2022-01-21 08:45:03 +05:30
Kovid Goyal
80b5f31256
Cleanup handling of types of kitten input 2021-11-15 15:17:34 +05:30
pagedown
f3dd2a8bfd
Get the first command output on screen and the last scrolled one 2021-11-15 15:17:33 +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
050c31094b
toggle_layout action to zoom/unzoom active window 2021-07-01 17:57:00 +05:30
Kovid Goyal
5eabd69659
... 2021-06-25 08:03:20 +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
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
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
GermainZ
6ea58fac1a Add link to weechat-hints kitten 2020-08-07 17:38:38 +02:00
Kovid Goyal
9a384c5045
Allow passing the current selection to kittens
Fixes #2796
2020-06-25 08:46:05 +05:30
Kovid Goyal
f597481736
Update changelog for last merge 2020-06-06 22:32:52 +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
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
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
149ae2866a
more typing work 2020-03-12 08:10:51 +05:30
Kovid Goyal
a4cc10c41b
More typing work 2020-03-04 06:10:57 +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
4def89ebb5
Add a note on debugging custom kittens 2019-11-08 16:53:26 +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
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
3501a2a1da
... 2018-12-02 13:52:06 +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
f037923b00
Document the basic process for creating custom kittens. Fixes #975 2018-09-19 12:55:50 +05:30