PageRenderTime 47ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/test-external-tool.gedit-tools

https://bitbucket.org/lbesson/gedit-tools
Shell | 101 lines | 29 code | 31 blank | 41 comment | 0 complexity | de53405b1872ef2f163a00756cea8a00 MD5 | raw file
Possible License(s): GPL-3.0
  1. #!/bin/sh
  2. # [Gedit Tool]
  3. # Input=nothing
  4. # Output=output-panel
  5. # Name=Test External Tool
  6. # Name[fr]=Tests pour les Outils Extérieurs
  7. # Applicability=all
  8. # Save-files=nothing
  9. ###############################################################################
  10. #
  11. # __author__='Lilian Besson'
  12. # __email__='lilian DOT besson AT normale DOT fr'
  13. # __date__='mar. 12/03/2013 at 14h:56m:39s '
  14. # __gitrepository__='https://bitbucket.org/lbesson/gedit-tools'
  15. # __webaddress__='https://sites.google.com/site/naereencorp/gedit'
  16. # __license__='GPL v3'
  17. #
  18. # A simple test.
  19. #
  20. # (c) Naereen Corp. 2013
  21. ###############################################################################
  22. #Variables shell utilisable dans un 'external tool' de gEdit.
  23. #____________________________________________________________
  24. echo "****************************************************"
  25. echo "TEST GEDIT EXTERNAL TOOL"
  26. echo "****************************************************"
  27. # Gedit Current Document Name variable
  28. echo "$GEDIT_CURRENT_DOCUMENT_NAME : Gedit Current Document Name variable"
  29. # Gedit Current Document Path variable
  30. echo "$GEDIT_CURRENT_DOCUMENT_PATH : Gedit Current Document Path variable"
  31. # Gedit Current Document Scheme variable
  32. echo "$GEDIT_CURRENT_DOCUMENT_SCHEME : Gedit Current Document Scheme variable"
  33. # Gedit Current Document Type variable
  34. echo "$GEDIT_CURRENT_DOCUMENT_TYPE : Gedit Current Document Type variable"
  35. # Gedit Current Document Uri variable
  36. echo "$GEDIT_CURRENT_DOCUMENT_URI : Gedit Current Document Uri variable"
  37. # Gedit Current Line Number variable
  38. echo "**** $GEDIT_CURRENT_LINE_NUMBER : Gedit Current Line Number variable"
  39. # Gedit Current Character Number variable
  40. echo "*** $GEDIT_CURRENT_CHAR_NUMBER : Gedit Current Char Number variable"
  41. # Gedit Current Character Number variable
  42. echo "** $GEDIT_CURRENT_CHARACTER_NUMBER : Gedit Current Character Number variable"
  43. # Gedit Current Colum Number variable
  44. echo "$GEDIT_CURRENT_COLUMN_NUMBER : Gedit Current Column Number variable **"
  45. # Gedit Current Line variable
  46. echo "$GEDIT_CURRENT_LINE : Gedit Current Line variable"
  47. # Gedit Current Word variable
  48. echo "$GEDIT_CURRENT_WORD : Gedit Current Word variable"
  49. # Gedit Documents Path variable
  50. echo "$GEDIT_DOCUMENTS_PATH : Gedit Documents Path variable"
  51. # Gedit Documents Uri variable
  52. echo "$GEDIT_DOCUMENTS_URI : Gedit Documents Uri variable"
  53. # Gedit Drop Filename variable
  54. echo "$GEDIT_DROP_FILENAME : Gedit Drop Filename variable"
  55. # Gedit Drop Mime Type variable
  56. echo "$GEDIT_DROP_MIME_TYPE : Gedit Drop Mime Type variable"
  57. # Gedit Drop Relative Filename variable
  58. echo "$GEDIT_DROP_REL_FILENAME : Gedit Drop Relative Filename variable"
  59. # Gedit Selected Text variable
  60. echo "$GEDIT_SELECTED_TEXT : Gedit Selected Text variable"
  61. echo "****************************************************"
  62. echo "TEST : done"
  63. echo "****************************************************"
  64. echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
  65. ###############################################################################
  66. echo -e "\nClic on this link to re-open the document \n\
  67. $GEDIT_CURRENT_DOCUMENT_PATH:$GEDIT_CURRENT_LINE_NUMBER:1:" > /dev/stderr
  68. echo -e "\n"
  69. echo -e "* For any bug report, please use : https://bitbucket.org/lbesson/gedit-tools/issues "
  70. echo -e "* For any question, you can contact the developper at : mailto:lilian.besson[AT]normale.fr"