kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.12k stars 971 forks source link

Cannot launch new kitty tab from neovim #6347

Closed joelpeapen closed 1 year ago

joelpeapen commented 1 year ago

Describe the bug

When opening a new tab with the @launch command, I get Error: open /dev/tty: no such device or address. The same command works fine when run in kitty.

To Reproduce

:!kitty @launch --type=tab --cwd='<dirname>"

Screenshots error

Environment details ``` kitty 0.28.1 (07bcc5ba61) created by Kovid Goyal Linux dell3040 5.19.0-43-generic #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon May 22 13:39:36 UTC 2 x86_64 Ubuntu 22.04.2 LTS dell3040 /dev/tty DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.2 LTS" Running under: X11 Frozen: True Paths: kitty: /home/joel/.local/kitty.app/bin/kitty base dir: /home/joel/.local/kitty.app/lib/kitty extensions dir: /home/joel/.local/kitty.app/lib/kitty-extensions system shell: /usr/bin/zsh Loaded config files: /home/joel/.config/kitty/kitty.conf Config options different from defaults: allow_remote_control yes background_opacity 0.9 bold_font Fira Code Bold bold_italic_font Fira Code Bold Italic cursor_text_color None dynamic_background_opacity True editor nvim enabled_layouts ['splits'] font_family Fira Code Retina font_size 13.5 initial_window_height (30, 'cells') initial_window_width (80, 'cells') italic_font Fira Code Italic modify_font: underline_position 2 underline_thickness 200% open_url_with ['firefox'] remember_window_size False tab_activity_symbol * tab_bar_style powerline window_padding_width FloatEdges(left=1.0, top=1.0, right=1.0, bottom=1.0) Added shortcuts: ctrl+alt+space → goto_tab -1 ctrl+down → neighboring_window down ctrl+f2 → detach_window ctrl+f3 → detach_window ask ctrl+left → neighboring_window left ctrl+right → neighboring_window right ctrl+shift+f3 → set_tab_title ctrl+up → neighboring_window up f10 → paste_from_buffer a f11 → toggle_fullscreen f9 → copy_to_buffer a shift+down → move_window down shift+f5 → launch --location=hsplit --cwd=current shift+f6 → launch --location=vsplit --cwd=current shift+f7 → layout_action rotate shift+left → move_window left shift+right → move_window right shift+up → move_window up Changed shortcuts: kitty_mod+down → layout_action move_to_screen_edge bottom kitty_mod+left → layout_action move_to_screen_edge left kitty_mod+right → layout_action move_to_screen_edge right kitty_mod+up → layout_action move_to_screen_edge top Colors: background #1d2021 color0 #665c54 color1 #ea6962 color10 #a9b665 color11 #d8a657 color12 #7daea3 color13 #d3869b color14 #89b482 color15 #d4be98 color2 #a9b665 color3 #e78a4e color4 #7daea3 color5 #d3869b color6 #89b482 color7 #d4be98 color8 #928374 color9 #ea6962 cursor #a89984 foreground #d4be98 selection_background #d4be98 selection_foreground #1d2021 Important environment variables seen by the kitty process: PATH /home/joel/.local/bin:~/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/bin:/snap/bin: LANG en_IN SHELL /usr/bin/zsh DISPLAY :1 USER joel LC_ALL en_US.UTF-8 XDG_CURRENT_DESKTOP ubuntu:GNOME XDG_MENU_PREFIX gnome- XDG_CONFIG_DIRS /etc/xdg/xdg-ubuntu:/etc/xdg XDG_SESSION_DESKTOP ubuntu LC_CTYPE en_US.UTF-8 XDG_SESSION_TYPE x11 XDG_RUNTIME_DIR /run/user/1002 XDG_DATA_DIRS /usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/ XDG_SESSION_CLASS user ```
kovidgoyal commented 1 year ago

You need to setup and use a socket for remote control or use a nvim API that gives you access to the tty device.