@PeterJones said in Launching Lua:
$(FULL_CURRENT_PATH)
I never remember this kind of stuff, so…
I have a Run menu command – saved as NPP $(XXX) vars echo (file info) – that gives me an example when I need it:
cmd /c echo FULL_CURRENT_PATH=$(FULL_CURRENT_PATH) CURRENT_DIRECTORY=$(CURRENT_DIRECTORY) FILE_NAME=$(FILE_NAME) NAME_PART=$(NAME_PART) EXT_PART=$(EXT_PART) && pause
Sample output:
18606e33-597c-498d-bf1c-e0f62d2c08e9-image.png
After running, I can copy the FULL_CURRENT_PATH – or whatever text – from the cmd window, so not only do I NOT have to remember the names, I never have to type them either.
Later edit:
However, I can’t actually echo the verbatim text $(FULL_CURRENT_PATH) to the cmd window, because Notepad++ will hijack that and replace it. This could be “fixed” (see https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9567) but perhaps doubtful that it ever will be.