Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gedit - External Tools specify Current file

Tags:

perl

gedit

How do I specify the placeholder for the current in Gedit's manage external tools.

For example if I want this in my external tools what should i use?

perl -d:ptkdb my_current_file.pl

pertidy my_current_file.pl
like image 437
sayth Avatar asked Nov 25 '11 10:11

sayth


1 Answers

The documentation lists a number of environment variables that can be used.

  • GEDIT_CURRENT_DOCUMENT_URI
  • GEDIT_CURRENT_DOCUMENT_NAME
  • GEDIT_CURRENT_DOCUMENT_SCHEME
  • GEDIT_CURRENT_DOCUMENT_PATH
  • GEDIT_CURRENT_DOCUMENT_DIR
  • GEDIT_DOCUMENTS_URI
  • GEDIT_DOCUMENTS_PATH

Sounds like you might want GEDIT_CURRENT_DOCUMENT_NAME.

like image 120
Dave Cross Avatar answered Nov 03 '22 06:11

Dave Cross