martinrotter / textosaurus

Cross-platform text editor based on Qt and Scintilla.
GNU General Public License v3.0
284 stars 44 forks source link

Feature Request: Add variable to get the full path to the active file #81

Closed peterfilipek closed 4 years ago

peterfilipek commented 4 years ago

It would be really nice if there was a ability to get the full path to the active file for scripts in external Tools. Entering full script for each external tool is amazing feature but standard input - stdin - is not always very inconvenient way. I suggest something similar to variables in Notepad++ allowing access in run script to get full path to the active file, active file's directory, active file's name, filename without extension and extension.

$(FULL_CURRENT_PATH) : E:\my Web\main\welcome.html $(CURRENT_DIRECTORY) : E:\my Web\main\ $(FILE_NAME) : welcome.html $(NAME_PART) : welcome $(EXT_PART) : html

Via https://npp-user-manual.org/docs/config-files/

martinrotter commented 4 years ago

@peterfilipek

Pls, test https://github.com/martinrotter/textosaurus/commit/de366b403ba181c14479fb7c6e77499ab4342ea5#diff-30cadf717dc31f54fe4b0379e2d875acR54

peterfilipek commented 4 years ago

Thank you, it works fine in Fedora 31.