kingToolbox / WindTerm

A professional cross-platform SSH/Sftp/Shell/Telnet/Serial terminal.
https://kingtoolbox.github.io
22.78k stars 1.76k forks source link

As @issakk mentioned, `WindTerm` will only display the autocomplete list when it finds the command prompt. Your `zsh` may use a custom command prompt, so there is no autocompletion. #2485

Open 920171519 opened 1 month ago

920171519 commented 1 month ago
          As @issakk mentioned, `WindTerm` will only display the autocomplete list when it finds the command prompt. Your `zsh` may use a custom command prompt, so there is no autocompletion.

This is not by design, you just need to modify the "prompt.line.linux" in the WindTerm_install_path/terminal/schemes/linux/linux.lexer to recognize your command prompt to restore the auto completion feature.

If possible, you can also provide me with a screenshot of the command prompt so that I can customize the rules for you.

Originally posted by @kingToolbox in https://github.com/kingToolbox/WindTerm/issues/941#issuecomment-1223464267

是否可以出一个教学, 解释一下lexer中各字段的用途, 我想写自己的设备的自定义规则, 以便使用历史命令功能, 但写了很多正则, 都无法生效. 我需要的规则为: 以"<"开始, 以">"结尾的单行字符 以"[~" 开始, 以"abcd]"结尾的单行字符 参考原来的写法: "begin": "(*UTF)(?m)^(?=[^\\n>]*+>)[ \\t]*+\\S(?:[^\\n>]*+(>))(?= )", 没有成功