[Ann] BashSupport 0.4

Another update for the BashSupport plugin has been released.

The changelog:

  • Improved parsing (again :)
  • Structure view
  • Go to definition for functions (Ctrl+B)
  • Show definition for functions (Ctrl+Shift+I)
  • Highlighting option for internal bash commands
  • Highlighting option for external commands
  • Highlighting option for calls calls to resolved functions


The plugin is available at http://plugins.intellij.net/plugin/?id=4230 .

0
8 comments
Avatar
Permanently deleted user

Hi,

Would it be possible to open files under BashSupport without a suffix? I never give my BASH scripts a ".sh" or ".bash" (or any other) suffix, since the whole point is to have them act and appear like any other command.

The "shebang" line ("#! /bin/bash ..." or "#! /bin/sh ...") would be a proper signature for inferring that a file is a shell script. Possibly the fact that the file is an executable text file (and has no explicit shebang line) could be the fallback.


Randall Schulz

0

good code is red


#!/bin/bash

PARAMS=$*

echo $PARAMS

case $1 in
    show)
        PIDS="12 13 14"
        for PID in $PIDS
        do
            if [ -n "$PID" ]
            then
                echo $PID
            fi
        done
    ;;
esac

0
Avatar
Permanently deleted user

Hi,
thank you for the feedback. This bug is fixed now and the fix will be in the next update.

Regards,
Wallaby

good code is red

>
>

#!/bin/bash

>

PARAMS=$*

>

echo $PARAMS

>

case $1 in
show)
PIDS="12 13 14"
for PID in $PIDS
do
if [ -n "$PID" ]
then
echo $PID
fi
done
;;
esac

0
Avatar
Permanently deleted user

Quick Help on commands is really missing (Ctrl+Q).

0
Avatar
Permanently deleted user

You didn't mark anything red. Which portions of your script were flagged with the red squiggly underline?


Randall Schulz

0
Avatar
Permanently deleted user

Ctrl+Q is on my todo.
Maybe I even manage to display man pages for external commands. I'll see what I can do.

Quick Help on commands is really missing (Ctrl+Q).


Wallaby

0

You didn't mark anything red. Which portions of your script were flagged with the red squiggly underline?


I don't see any need for marking.
code is very short - you can always try it yourself.
if you see no problems, then it's my problems not yours

0
Avatar
Permanently deleted user

Hi,

Would it be possible to open files under BashSupport without a suffix? I
never give my BASH scripts a ".sh" or ".bash" (or any other) suffix,
since the whole point is to have them act and appear like any other
command.


I managed to open files without prefix as bash files. But there's no way to open only those files which
have no extension and have a shebang-line.
I hope to add a configuration option for the plugin to let it open files without extensions. Atm only .sh and .bash files
are supported by default.

Wallaby

0

Please sign in to leave a comment.