/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
- #!/bin/sh
- # [Gedit Tool]
- # Input=nothing
- # Output=output-panel
- # Name=Test External Tool
- # Name[fr]=Tests pour les Outils Extérieurs
- # Applicability=all
- # Save-files=nothing
- ###############################################################################
- #
- # __author__='Lilian Besson'
- # __email__='lilian DOT besson AT normale DOT fr'
- # __date__='mar. 12/03/2013 at 14h:56m:39s '
- # __gitrepository__='https://bitbucket.org/lbesson/gedit-tools'
- # __webaddress__='https://sites.google.com/site/naereencorp/gedit'
- # __license__='GPL v3'
- #
- # A simple test.
- #
- # (c) Naereen Corp. 2013
- ###############################################################################
- #Variables shell utilisable dans un 'external tool' de gEdit.
- #____________________________________________________________
- echo "****************************************************"
- echo "TEST GEDIT EXTERNAL TOOL"
- echo "****************************************************"
- # Gedit Current Document Name variable
- echo "$GEDIT_CURRENT_DOCUMENT_NAME : Gedit Current Document Name variable"
- # Gedit Current Document Path variable
- echo "$GEDIT_CURRENT_DOCUMENT_PATH : Gedit Current Document Path variable"
- # Gedit Current Document Scheme variable
- echo "$GEDIT_CURRENT_DOCUMENT_SCHEME : Gedit Current Document Scheme variable"
-
- # Gedit Current Document Type variable
- echo "$GEDIT_CURRENT_DOCUMENT_TYPE : Gedit Current Document Type variable"
-
- # Gedit Current Document Uri variable
- echo "$GEDIT_CURRENT_DOCUMENT_URI : Gedit Current Document Uri variable"
- # Gedit Current Line Number variable
- echo "**** $GEDIT_CURRENT_LINE_NUMBER : Gedit Current Line Number variable"
- # Gedit Current Character Number variable
- echo "*** $GEDIT_CURRENT_CHAR_NUMBER : Gedit Current Char Number variable"
- # Gedit Current Character Number variable
- echo "** $GEDIT_CURRENT_CHARACTER_NUMBER : Gedit Current Character Number variable"
- # Gedit Current Colum Number variable
- echo "$GEDIT_CURRENT_COLUMN_NUMBER : Gedit Current Column Number variable **"
- # Gedit Current Line variable
- echo "$GEDIT_CURRENT_LINE : Gedit Current Line variable"
- # Gedit Current Word variable
- echo "$GEDIT_CURRENT_WORD : Gedit Current Word variable"
- # Gedit Documents Path variable
- echo "$GEDIT_DOCUMENTS_PATH : Gedit Documents Path variable"
- # Gedit Documents Uri variable
- echo "$GEDIT_DOCUMENTS_URI : Gedit Documents Uri variable"
- # Gedit Drop Filename variable
- echo "$GEDIT_DROP_FILENAME : Gedit Drop Filename variable"
- # Gedit Drop Mime Type variable
- echo "$GEDIT_DROP_MIME_TYPE : Gedit Drop Mime Type variable"
- # Gedit Drop Relative Filename variable
- echo "$GEDIT_DROP_REL_FILENAME : Gedit Drop Relative Filename variable"
- # Gedit Selected Text variable
- echo "$GEDIT_SELECTED_TEXT : Gedit Selected Text variable"
- echo "****************************************************"
- echo "TEST : done"
- echo "****************************************************"
- echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
- ###############################################################################
- echo -e "\nClic on this link to re-open the document \n\
- $GEDIT_CURRENT_DOCUMENT_PATH:$GEDIT_CURRENT_LINE_NUMBER:1:" > /dev/stderr
- echo -e "\n"
- echo -e "* For any bug report, please use : https://bitbucket.org/lbesson/gedit-tools/issues "
- echo -e "* For any question, you can contact the developper at : mailto:lilian.besson[AT]normale.fr"