Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH autocomplete not working when using ssh kitten #3760

Closed
alecgerona opened this issue Jun 25, 2021 · 4 comments
Closed

SSH autocomplete not working when using ssh kitten #3760

alecgerona opened this issue Jun 25, 2021 · 4 comments
Labels

Comments

@alecgerona
Copy link

Describe the bug
Using the suggested fix for ssh by using the ssh kitten breaks autocomplete for the ssh command that normally tab suggests to entries in .ssh/known_host or .ssh/config file.

To Reproduce
Steps to reproduce the behavior:

  1. Alias ssh to "kitty +kitten ssh"
  2. Type ssh <tab>

Expected behavior
Pressing tab should start autocomplete behavior

Environment details
OS: Pop OS 20.10

Output of kitty --debug-config
[130 12:04:33.850679] Ignoring unknown config key: scrollback_fill_enlarged_window
[130 12:04:33.850761] Ignoring unknown config key: detect_urls
[130 12:04:33.850812] Ignoring unknown config key: default_pointer_shape
[130 12:04:33.850823] Ignoring unknown config key: pointer_shape_when_dragging
[130 12:04:33.851149] Ignoring unknown config key: tab_powerline_style
[130 12:04:33.851166] Ignoring unknown config key: tab_activity_symbol
[130 12:04:33.851454] Ignoring unknown config key: allow_hyperlinks
Running under: X11

Config options different from defaults:
background        Color(red=40, green=42, blue=54)
color0            Color(red=40, green=42, blue=54)
color1            Color(red=255, green=92, blue=87)
color10           Color(red=90, green=247, blue=142)
color11           Color(red=243, green=249, blue=157)
color12           Color(red=87, green=199, blue=255)
color13           Color(red=255, green=106, blue=193)
color14           Color(red=154, green=237, blue=254)
color15           Color(red=239, green=240, blue=235)
color2            Color(red=90, green=247, blue=142)
color3            Color(red=243, green=249, blue=157)
color4            Color(red=87, green=199, blue=255)
color5            Color(red=255, green=106, blue=193)
color6            Color(red=154, green=237, blue=254)
color7            Color(red=241, green=241, blue=240)
color8            Color(red=104, green=104, blue=104)
color9            Color(red=255, green=92, blue=87)
cursor            Color(red=151, green=151, blue=155)
cursor_text_color Color(red=40, green=42, blue=54)
enabled_layouts   ['splits']
font_family       Fira Mono for Powerline
foreground        Color(red=239, green=240, blue=235)
scrollback_lines  10000
url_prefixes      ('http', 'https', 'file', 'ftp', 'gemini', 'irc', 'gopher', 'mailto', 'news', 'git')
Added shortcuts:
	shift+control+plus KeyAction(func='change_font_size', args=(True, '+', 2.0))
	shift+control+p > y KeyAction(func='kitten', args=['hints', '--type hyperlink'])
	shift+control+kp_subtract KeyAction(func='change_font_size', args=(True, '-', 2.0))
	shift+control+kp_add KeyAction(func='change_font_size', args=(True, '+', 2.0))
	control+alt+h KeyAction(func='neighboring_window', args=['left'])
	control+alt+j KeyAction(func='neighboring_window', args=['bottom'])
	control+alt+k KeyAction(func='neighboring_window', args=['top'])
	control+alt+l KeyAction(func='neighboring_window', args=['right'])
	control+alt+s KeyAction(func='launch', args=['--location=hsplit'])
	control+alt+v KeyAction(func='launch', args=['--location=vsplit'])

Additional context
Try to reproduce the problem with kitty --config NONE if you cannot then post a minimal kitty.conf that reproduces the problem. If the problem involves interaction with some other terminal program post a minimal config for that program to reproduce the problem as well.

Any general suggestion on how to bring back autocomplete?

@alecgerona alecgerona added the bug label Jun 25, 2021
@kovidgoyal
Copy link
Owner

@alecgerona
Copy link
Author

@kovidgoyal unfortunately this doesn't enable autocompleting from the .ssh/config file.

@kovidgoyal
Copy link
Owner

You are welcome to write code to implement that and submit a PR.
Relevant function is complete_kitten in complete.py, should be easy to
impleent based on complete_icat_args as an example.

@alecgerona
Copy link
Author

Thanks! I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants