bashsupport-pro icon indicating copy to clipboard operation
bashsupport-pro copied to clipboard

Better support for zsh

Open jansorg opened this issue 5 years ago • 8 comments

Improve support for zsh support. JetBrains Shell is handling .zsh files, but identically to Bash files.

Things, which BashSupport Pro could do:

  • add support for additional/different syntax elements of zsh
  • Support the zsh shebang lines
  • Support the zsh debugger, https://github.com/rocky/zshdb
  • Support commonly used tools of the zsh world. Is there something similar like shellcheck or shellfmt?
  • Show zsh docs for built-in commands and keywords, instead of bash help content
  • New file templates to create a new zsh script

jansorg avatar Jun 01 '20 18:06 jansorg

ZSH code completion would also be awesome.

jordantrizz avatar Oct 04 '22 18:10 jordantrizz

Yes. Kind of blocked now since I added ${(%):-%x} in my zsh script Bash support pro cannot analyze any vars after :(

freddy33 avatar Feb 15 '23 09:02 freddy33

@freddy33 Could you post a snippet where this happens? The parsing should recover and start to parse commands again after the unsupported zsh statement.

jansorg avatar Feb 15 '23 19:02 jansorg

I'm working on Zsh support now, which will be part of version 4.0. This is going to take some time, because it's a lot of work. I'm planning to release preview versions as soon as Zsh support is somewhat stable.

jansorg avatar Mar 02 '23 13:03 jansorg

Preview build 4.0.0-beta9 is available with zshdb integration for local and remote debugging, completion and a few more features. Changelog and download for testing at https://plugins.jetbrains.com/plugin/13841-bashsupport-pro/eap-bashsupport-pro-4-0 I'd appreciate if you shared your feedback. Thank you!

jansorg avatar Dec 07 '23 15:12 jansorg

4.0 beta11 is now able to parse Zsh‘s parameter completion flags.

jansorg avatar Jan 18 '24 21:01 jansorg

4.o with Zsh support is available now, https://www.bashsupport.com/manual/zsh/ lists features and known limitations

jansorg avatar Apr 02 '24 20:04 jansorg