guake-quick-open.sh 622 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # add to guake prefs:
  3. # guake-quick-open.sh "%(file_path)s" %(line_number)s
  4. FILE=$1
  5. LINE=$2
  6. ORIG_JUCE_BUILD_DIR=./Builds/LinuxMakefile
  7. NEW_JUCE_BUILD_DIR=./Builds/Linux
  8. MY_JUCE_BUILD_DIR=./Builds/Makefile
  9. [ -f "$ORIG_JUCE_BUILD_DIR/$FILE" ] && FILE="$ORIG_JUCE_BUILD_DIR/$FILE"
  10. [ -f "$NEW_JUCE_BUILD_DIR/$FILE" ] && FILE="$NEW_JUCE_BUILD_DIR/$FILE"
  11. [ -f "$MY_JUCE_BUILD_DIR/$FILE" ] && FILE="$MY_JUCE_BUILD_DIR/$FILE"
  12. [ -f "src/$FILE" ] && FILE="src/$FILE"
  13. [ -f "plugins/$FILE" ] && FILE="plugins/$FILE"
  14. [ -f "$FILE" ] && kate "$FILE" --line $LINE