kitten-@-create-marker(1)
π kitten-@-create-marker β bestie edition β¨
okay so real quick: this is a page from the kitten manual, and it's all about kitten @ create-marker, the little command that β¨*decorates your text*β¨. buckle up, we're getting into it π
πΈ Name πΈ
kitten-@-create-marker β literally just: create a marker that highlights specified text. that's the whole vibe, no cap π
π¦ Usage π¦
kitten @ create-marker MARKER SPECIFICATION
β¨ Description β¨
okay so here's the tea: you're creating a marker, and that marker can highlight text in the window you specify. iconic behavior honestly π
like, for example:
create_marker text 1 ERROR
and for the full deets β the complete lore, if you will β go see: marks π
π Options π
--match,-mβ the window to match. match specs are shaped likefield:query. thefieldcan be one of:id,title,pid,cwd,cmdline,num,env,var,state,neighbor,sessionandrecent. andqueryis the expression you're matching with. expressions can be a number or a regular expression, and you can smoosh them together with Boolean operators π₯
the special value all matches all the windows. every single one. the whole squad π
for the numeric fields β id, pid, num and recent β the expression gets interpreted as a number, not a regex. negative values for id match from the highest id number going down, and specifically, -1 is the most recently created window β
the field num refers to the window position in the current tab, starting from zero and counting clockwise (this is the same order the windows get reported by the kitten @ ls command, iykyk) π
the window id of the current window is available as the KITTY_WINDOW_ID environment variable π«Ά
the field recent refers to recently active windows in the currently active tab β 0 is the currently active window, 1 is the previously active window, and so on π
the field neighbor refers to a neighbor of the active window in the direction you specify, and that direction can be: left, right, top or bottom π§
the field session matches windows that were created in the specified session. use the expression ^$ to match windows that were not created in a session, and . to match the currently active session, and ~ to match either the currently active session or the last active session when no session is active π
when you're using the env field to match on environment variables, you can specify just the environment variable name, or a name and a value, like for example env:MY_ENV_VAR=2 π
similarly, the var field matches on user variables set on the window. you can specify name, or name and value, same as with the env field π
the field state matches on the state of the window. the supported states are: active, focused, needs_attention, parent_active, parent_focused, focused_os_window, self, overlay_parent. active windows are the windows that are active in their parent tab. there is only one focused window and it's the window that keyboard events get delivered to. if no window is focused, the last focused window is the one that gets matched. the value focused_os_window matches all windows in the currently focused OS window. the value self matches the window in which the remote control command is run. the value overlay_parent matches the window that's under the self window, when the self window is an overlay π
ngl, a little reminder: you can use the kitten @ ls command to get a list of windows π
--self [=no]β apply the marker to the window this command is run in, instead of the active window π--help,-h [=no]β show help for this command. a little help never hurt nobody π«Ά
β Global options β
--toβ an address for the kitty instance to control. it corresponds to the address given to the kitty instance via the--listen-onoption or thelisten_onsetting inkitty.conf. if it's not specified, the environment variableKITTY_LISTEN_ONgets checked. and if that's also not found, messages are sent to the controlling terminal for this process β meaning they'll only work if this process is run within a kitty window πͺ--passwordβ a password to use when contacting kitty. this will cause kitty to ask the user for permission to perform the specified action, unless the password has already been accepted before or is pre-configured inkitty.conf. to use a blank password, specify--use-passwordasalwaysπ--password-file [=rc-pass]β a file to read the password from. trailing whitespace gets ignored. relative paths are resolved from the kitty configuration directory. use-to read from STDIN. usefd:numto read from the file descriptornum. used if no--passwordis supplied. defaults to checking for therc-passfile in the kitty configuration directory π--password-env [=KITTY_RC_PASSWORD]β the name of an environment variable to read the password from. used if no--password-fileis supplied. defaults to checking the environment variableKITTY_RC_PASSWORDπΏ--use-password [=if-available]β if no password is available, kitty will usually just send the remote control command without a password. this option can be used to force it toalwaysorneveruse the supplied password. if set toalwaysand no password is provided, the blank password gets used π«§
choices: if-available, always, never β
lowkey important: those password options are literally kitty's whole "are you sure you're allowed to do this" vibe check. don't skip 'em π
alright bestie, that's the whole page!! this edition was version 0.49.2, dated Oct 01, 2026, and it's part of the kitten Manual π§ mwah, go highlight something gorgeous πβ¨π
π¦ where this page comes from
- arch rolling: kitty 0.49.2-1 Β· GPL-3.0-only
- nixpkgs unstable: kitty-bin 0.49.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms