Codebergdnkl

foot

master
ply6 git calls26 ms31 KiB5 cachedprotocol v2
176 lines5.1 KiBRaw
1#pragma once
3#include <stdint.h>
5#include <xkbcommon/xkbcommon.h>
6#include <tllist.h>
8#include "config.h"
10enum bind_action_normal {
11 BIND_ACTION_NONE,
12 BIND_ACTION_NOOP,
13 BIND_ACTION_SCROLLBACK_UP_PAGE,
14 BIND_ACTION_SCROLLBACK_UP_HALF_PAGE,
15 BIND_ACTION_SCROLLBACK_UP_LINE,
16 BIND_ACTION_SCROLLBACK_DOWN_PAGE,
17 BIND_ACTION_SCROLLBACK_DOWN_HALF_PAGE,
18 BIND_ACTION_SCROLLBACK_DOWN_LINE,
19 BIND_ACTION_SCROLLBACK_HOME,
20 BIND_ACTION_SCROLLBACK_END,
21 BIND_ACTION_CLIPBOARD_COPY,
22 BIND_ACTION_CLIPBOARD_PASTE,
23 BIND_ACTION_PRIMARY_PASTE,
24 BIND_ACTION_SEARCH_START,
25 BIND_ACTION_FONT_SIZE_UP,
26 BIND_ACTION_FONT_SIZE_DOWN,
27 BIND_ACTION_FONT_SIZE_RESET,
28 BIND_ACTION_SPAWN_TERMINAL,
29 BIND_ACTION_MINIMIZE,
30 BIND_ACTION_MAXIMIZE,
31 BIND_ACTION_FULLSCREEN,
32 BIND_ACTION_PIPE_SCROLLBACK,
33 BIND_ACTION_PIPE_VIEW,
34 BIND_ACTION_PIPE_SELECTED,
35 BIND_ACTION_PIPE_COMMAND_OUTPUT,
36 BIND_ACTION_SHOW_URLS_COPY,
37 BIND_ACTION_SHOW_URLS_LAUNCH,
38 BIND_ACTION_SHOW_URLS_PERSISTENT,
39 BIND_ACTION_TEXT_BINDING,
40 BIND_ACTION_PROMPT_PREV,
41 BIND_ACTION_PROMPT_NEXT,
42 BIND_ACTION_UNICODE_INPUT,
43 BIND_ACTION_QUIT,
44 BIND_ACTION_REGEX_LAUNCH,
45 BIND_ACTION_REGEX_COPY,
46 BIND_ACTION_THEME_SWITCH_DARK,
47 BIND_ACTION_THEME_SWITCH_LIGHT,
48 BIND_ACTION_THEME_TOGGLE,
50 /* Mouse specific actions - i.e. they require a mouse coordinate */
51 BIND_ACTION_SCROLLBACK_UP_MOUSE,
52 BIND_ACTION_SCROLLBACK_DOWN_MOUSE,
53 BIND_ACTION_SELECT_BEGIN,
54 BIND_ACTION_SELECT_BEGIN_BLOCK,
55 BIND_ACTION_SELECT_EXTEND,
56 BIND_ACTION_SELECT_EXTEND_CHAR_WISE,
57 BIND_ACTION_SELECT_WORD,
58 BIND_ACTION_SELECT_WORD_WS,
59 BIND_ACTION_SELECT_QUOTE,
60 BIND_ACTION_SELECT_ROW,
62 BIND_ACTION_KEY_COUNT = BIND_ACTION_THEME_TOGGLE + 1,
63 BIND_ACTION_COUNT = BIND_ACTION_SELECT_ROW + 1,
64};
66enum bind_action_search {
67 BIND_ACTION_SEARCH_NONE,
68 BIND_ACTION_SEARCH_SCROLLBACK_UP_PAGE,
69 BIND_ACTION_SEARCH_SCROLLBACK_UP_HALF_PAGE,
70 BIND_ACTION_SEARCH_SCROLLBACK_UP_LINE,
71 BIND_ACTION_SEARCH_SCROLLBACK_DOWN_PAGE,
72 BIND_ACTION_SEARCH_SCROLLBACK_DOWN_HALF_PAGE,
73 BIND_ACTION_SEARCH_SCROLLBACK_DOWN_LINE,
74 BIND_ACTION_SEARCH_SCROLLBACK_HOME,
75 BIND_ACTION_SEARCH_SCROLLBACK_END,
76 BIND_ACTION_SEARCH_CANCEL,
77 BIND_ACTION_SEARCH_COMMIT,
78 BIND_ACTION_SEARCH_FIND_PREV,
79 BIND_ACTION_SEARCH_FIND_NEXT,
80 BIND_ACTION_SEARCH_EDIT_LEFT,
81 BIND_ACTION_SEARCH_EDIT_LEFT_WORD,
82 BIND_ACTION_SEARCH_EDIT_RIGHT,
83 BIND_ACTION_SEARCH_EDIT_RIGHT_WORD,
84 BIND_ACTION_SEARCH_EDIT_HOME,
85 BIND_ACTION_SEARCH_EDIT_END,
86 BIND_ACTION_SEARCH_DELETE_PREV,
87 BIND_ACTION_SEARCH_DELETE_PREV_WORD,
88 BIND_ACTION_SEARCH_DELETE_NEXT,
89 BIND_ACTION_SEARCH_DELETE_NEXT_WORD,
90 BIND_ACTION_SEARCH_DELETE_TO_START,
91 BIND_ACTION_SEARCH_DELETE_TO_END,
92 BIND_ACTION_SEARCH_EXTEND_CHAR,
93 BIND_ACTION_SEARCH_EXTEND_WORD,
94 BIND_ACTION_SEARCH_EXTEND_WORD_WS,
95 BIND_ACTION_SEARCH_EXTEND_LINE_DOWN,
96 BIND_ACTION_SEARCH_EXTEND_BACKWARD_CHAR,
97 BIND_ACTION_SEARCH_EXTEND_BACKWARD_WORD,
98 BIND_ACTION_SEARCH_EXTEND_BACKWARD_WORD_WS,
99 BIND_ACTION_SEARCH_EXTEND_LINE_UP,
100 BIND_ACTION_SEARCH_CLIPBOARD_PASTE,
101 BIND_ACTION_SEARCH_PRIMARY_PASTE,
102 BIND_ACTION_SEARCH_UNICODE_INPUT,
103 BIND_ACTION_SEARCH_COUNT,
104};
106enum bind_action_url {
107 BIND_ACTION_URL_NONE,
108 BIND_ACTION_URL_CANCEL,
109 BIND_ACTION_URL_TOGGLE_URL_ON_JUMP_LABEL,
110 BIND_ACTION_URL_COUNT,
111};
113typedef tll(xkb_keycode_t) xkb_keycode_list_t;
115struct key_binding {
116 enum key_binding_type type;
118 int action; /* enum bind_action_* */
119 xkb_mod_mask_t mods;
121 union {
122 struct {
123 xkb_keysym_t sym;
124 xkb_keycode_list_t key_codes;
125 } k;
127 struct {
128 uint32_t button;
129 int count;
130 } m;
131 };
133 const struct binding_aux *aux;
134};
135typedef tll(struct key_binding) key_binding_list_t;
137struct terminal;
138struct seat;
139struct wayland;
141struct key_binding_set {
142 key_binding_list_t key;
143 key_binding_list_t search;
144 key_binding_list_t url;
145 key_binding_list_t mouse;
146 xkb_mod_mask_t selection_overrides;
147};
149struct key_binding_manager;
151struct key_binding_manager *key_binding_manager_new(void);
152void key_binding_manager_destroy(struct key_binding_manager *mgr);
154void key_binding_new_for_seat(
155 struct key_binding_manager *mgr, const struct seat *seat);
157void key_binding_new_for_conf(
158 struct key_binding_manager *mgr, const struct wayland *wayl,
159 const struct config *conf);
161/* Returns the set of key bindings associated with this seat/conf pair */
162struct key_binding_set *key_binding_for(
163 struct key_binding_manager *mgr, const struct config *conf,
164 const struct seat *seat);
166/* Remove all key bindings tied to the specified seat */
167void key_binding_remove_seat(
168 struct key_binding_manager *mgr, const struct seat *seat);
170void key_binding_unref(
171 struct key_binding_manager *mgr, const struct config *conf);
173void key_binding_load_keymap(
174 struct key_binding_manager *mgr, const struct seat *seat);
175void key_binding_unload_keymap(
176 struct key_binding_manager *mgr, const struct seat *seat);
Diagnostics6 git calls · 26 ms
CallStatusSizeTime026 ms
discover200178 B3 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=1
git.response.bytes=178
git.server.agent=git/2.56.1-Linux
git.server.object_format=sha1
git.server.caps=agent ls-refs fetch server-option object-format
git.server.fetch=shallow wait-for-done filter
git.protocol.version=2
git.pkt.frames=9
git.pkt.data=7
git.pkt.flush=2
git.pkt.delim=0
git.pkt.bytes=178
git.pkt.payload.max=35
ls-refs20010 KiB · hit2 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=2
git.response.bytes=10322
git.response.cache=HIT
git.response.duration_ms=2
git.protocol.version=2
git.pkt.frames=108
git.pkt.data=107
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=10322
git.pkt.payload.max=106
git.ls_refs.count=107
git.ls_refs.head=refs/heads/master
fetchtree:0 · deepen 102009.3 KiB · hit1 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=2
git.response.bytes=9489
git.response.cache=HIT
git.response.duration_ms=1
git.fetch.filter=tree:0
git.fetch.wants=c0d2c3e95d74cb60526ff28aec9f34ee3df545e0
git.fetch.haves.count=0
git.fetch.deepen=10
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=7
git.pkt.data=5
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=9489
git.pkt.payload.max=9389
git.sideband.band1.bytes=9389
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=10
git.pack.bytes=9389
git.pack.ofs_delta=0
git.pack.ref_delta=0
git.pack.chain.max=0
git.pack.trailer=de930681b6073ba5b599a0f956bfbd114762ad5a
git.pack.full=10
Open pack map
fetchtree:0 · deepen 12001.1 KiB · hit2 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=2
git.response.bytes=1154
git.response.cache=HIT
git.response.duration_ms=2
git.fetch.filter=tree:0
git.fetch.wants=c0d2c3e95d74cb60526ff28aec9f34ee3df545e0
git.fetch.haves.count=0
git.fetch.deepen=1
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=7
git.pkt.data=5
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=1154
git.pkt.payload.max=1054
git.sideband.band1.bytes=1054
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=1
git.pack.bytes=1054
git.pack.trailer=f9afe4130b8e969286b1fa36663bbb8999db09ea
Open pack map
fetchcombine:blob:none+tree:2 · deepen 12008.6 KiB · hit2 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=21
git.response.bytes=8830
git.response.cache=HIT
git.response.duration_ms=2
git.fetch.filter=combine:blob:none+tree:2
git.fetch.wants=c0d2c3e95d74cb60526ff28aec9f34ee3df545e0
git.fetch.haves.count=0
git.fetch.deepen=1
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=7
git.pkt.data=5
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=8830
git.pkt.payload.max=8730
git.sideband.band1.bytes=8730
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=14
git.pack.bytes=8730
git.fetch.wide.objects=14
git.fetch.wide.extra_bytes=9909
git.fetch.wide.blobs=0
fetch2001.3 KiB · hit21 ms
git.upload-pack fetch
http.response.status_code=200
git.response.bytes=1280
git.response.cache=HIT
git.response.duration_ms=21
git.fetch.wants=4d40a6645e1c854bc0499403f29d811eb0480fb9
git.fetch.haves.count=0
git.fetch.deepen=0
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=4
git.pkt.data=3
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=1280
git.pkt.payload.max=1253
git.sideband.band1.bytes=1253
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0

Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.

Remote
https://codeberg.org/dnkl/foot
Ref
refs/heads/master
Commit
c0d2c3e95d74cb60526ff28aec9f34ee3df545e0
cf-ray
a5e1f9dd1e4324ce
Request
6fce04e8…
Protocol
v2 · sha1
Agent
git/2.56.1-Linux
Filter
advertised
Fetch
shallow wait-for-done filter
Capabilities
agent ls-refs fetch server-option object-format