kitten-edit-in-kitty(1)
π kitten-edit-in-kitty π
okay so bestie, this is the manual page for kitten-edit-in-kitty β the kitty kitten that edits a file in an overlay window. yes, it works over SSH too. it's giving βtiny editor portalβ and we're obsessed. π±β¨
π NAME π
kitten-edit-in-kitty β edit a file in a kitty overlay window.
π οΈ USAGE π οΈ
kitten edit-in-kitty [options] [+lnum] file-to-edit
πΈ DESCRIPTION πΈ
Edit the specified file in a kitty overlay window. Works over SSH as well. slay. π¦
For usage instructions see: https://sw.kovidgoyal.net/kitty/shell-integration/#edit-file
β¨ OPTIONS β¨
--title,--window-titleβ set the title for the new window. by default, the title is controlled by the child process. the special valuecurrentwill copy the title from the--source-window. π--tab-titleβ the title for the new tab if launching in a new tab. by default, the title of the active window in the tab is used as the tab title. the special valuecurrentwill copy the title from the tab containing the--source-window. π--type [=window]β where to launch the child process, bestie. pick your vibe:windowβ a new kitty window in the current tab. classic. iconic.tabβ a new tab in the current OS window. not available when thelaunch <launch>command is used in startup sessions. πos-windowβ a new operating system window. not available when thelaunch <launch>command is used in startup sessions. πoverlayβ an overlay window covering the current active kitty window.overlay-mainβ an overlay window covering the current active kitty window. unlike a plain overlay window, this window is considered as a main window, which means it is used as the active window for getting the current working directory, the input text for kittens, launch commands, etc. useful if this overlay is intended to run for a long time as a primary window. main character energy fr.backgroundβ the process will be run in the background, without a kitty window. note that if--allow-remote-controlis specified, theKITTY_LISTEN_ONenvironment variable will be set to a dedicated socket pair file descriptor that the process can use for remote control. πclipboard,primaryβ these two are meant to work with--stdin-sourceto copy data to the system clipboard or primary selection.os-panelβ similar toos-window, except that it creates the new OS Window as a desktop panel. only works on platforms that support this, such as Wayland compositors that support the layer shell protocol. use the--os-paneloption to configure the panel.- Choices:
window,background,clipboard,os-panel,os-window,overlay,overlay-main,primary,tab
--dont-take-focus,--keep-focus [=no]β keep the focus on the currently active window instead of switching to the newly opened window. no stealing focus, periodt.--cwdβ the working directory for the newly launched child. use the special valuecurrentto use the working directory of the--source-window. the special valuelast_reporteduses the last working directory reported by the shell (needsshell_integrationto work). the special valueoldestworks likecurrentbut uses the working directory of the oldest foreground process associated with the currently active window rather than the newest foreground process. finally, the special valuerootrefers to the process that was originally started when the window was created.
when opening in the same working directory as the current window causes the new window to connect to a remote host, you can use the --hold-after-ssh flag to prevent the new window from closing when the connection is terminated.
--varβ user variables to set in the created window. can be specified multiple times to set different user variables. syntax:name=value. usingname=will set to empty string. π«Ά--hold [=no]β keep the window open even after the command being executed exits, at a shell prompt. the shell will be run after the launched command exits.--location [=default]β where to place the newly created window when it is added to a tab which already has existing windows in it.afterandbeforeplace the new window before or after the active window.neighboris a synonym forafter. also applies to creating a new tab, where the value ofafterwill cause the new tab to be placed next to the current tab instead of at the end. the values ofvsplit,hsplitandsplitare only used by the splits layout and control if the new window is placed in a vertical, horizontal or automatic split with the currently active window. the default is to place the window in a layout dependent manner, typically, after the currently active window. see--next-toto use a window other than the currently active window.
Choices: default, after, before, first, hsplit, last, neighbor, split, vsplit
--next-toβ a match expression to select the window next to which the new window is created. seesearch_syntaxfor the syntax for specifying windows. if not specified defaults to the active window. when used via remote control this option is ignored unless the matched window is in the target tab (default active tab). when using--typeoftab, the tab will be created in the OS Window containing the matched window.--os-window-classβ set theWM_CLASSproperty on X11 and the application id property on Wayland for the newly created OS window when using--type. defaults to whatever is used by the parent kitty process, which in turn defaults to kitty.--os-window-nameβ set theWM_NAMEproperty on X11 for the newly created OS Window when using--type. defaults to--os-window-class.--os-window-titleβ set the title for the newly created OS window. this title will override any titles set by programs running in kitty. the special valuecurrentwill copy the title from the OS Window containing the--source-window.--os-window-state [=normal]β the initial state for the newly created OS Window.
Choices: normal, fullscreen, maximized, minimized
--os-window-positionβ the position, for example10x20, on screen at which to place the newly created OS Window. this may or may not work depending on the policies of the desktop environment/window manager. it never works on Wayland. π--logoβ path to a PNG image to use as the logo for the newly created window. seewindow_logo_path. relative paths are resolved from the kitty configuration directory.--logo-positionβ the position for the window logo. only takes effect if--logois specified. seewindow_logo_position.--logo-alpha [=-1]β the amount the window logo should be faded into the background. only takes effect if--logois specified. seewindow_logo_alpha.--spacingβ set the margin and padding for the newly created window. for example:margin=20orpadding-left=10ormargin-h=30. the shorthand form sets all values, the*-hand*-vvariants set horizontal and vertical values. can be specified multiple times. note that this is ignored for overlay windows as these use the settings from the base window.--hold-after-ssh [=no]β when using--cwd=currentor similar from a window that is running the ssh kitten, the new window will run a local shell after disconnecting from the remote host, when this option is specified.--max-file-size [=8]β the maximum allowed size (in MB) of files to edit. since the file data has to be base64 encoded and transmitted over the tty device, overly large files will not perform well. π--help,-h [=no]β show help for this command. bestie behavior. π«Ά
π okay that's the whole manual, bestie β from the kitten manual, version 0.49.2, dated Oct 01, 2026. mwah! πβ¨
π¦ 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