Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
zapwow
Prole
Posts: 48
Joined: Fri Oct 24, 2008 11:37 pm

If anyone is developing in Notepad++ and tired of dragging their folders onto love.exe to run them, you can create a keyboard shortcut with this handy command. Press F5, and enter exactly this:
c:\Progra~1\LOVE\love.exe "$(CURRENT_DIRECTORY)" ... assuming you've installed LOVE to the default directory. Click Save... and assign any keyboard shortcut you want. Now running your program takes a single keystroke! Dr. Magnusson Prole Posts: 22 Joined: Sun Jul 20, 2008 6:10 pm ### Re: Notepad++ shortcut Thank you! This really makes testing a lot easier. Before I used bat files for this, but this makes it even easier than before Carl Prole Posts: 18 Joined: Wed Oct 28, 2009 10:32 pm ### Re: Notepad++ shortcut I know this is an old thread but I would like to get this working, I tried the code above but no luck so anyone got any ideas? Skasi Prole Posts: 27 Joined: Thu Feb 12, 2009 2:25 pm ### Re: Notepad++ shortcut Well maybe you placed love in a different directory than zapwow, in this case you have to adjust the path. I suggest using the ... button to look for the love.exe and if you have found it, add "$(CURRENT_DIRECTORY)" (including the quote signs and with space between the command and the path to love.exe!) to the end of the input field.

Examples:

Code: Select all

C:\Programme\LOVE\love.exe "$(CURRENT_DIRECTORY)" C:\Program Files\LOVE\love.exe "$(CURRENT_DIRECTORY)"
C:\LOVE\love.exe "$(CURRENT_DIRECTORY)" D:\LOVE\love.exe "$(CURRENT_DIRECTORY)"
etc
Also shortcuts using CTRL do not seem to work (well at least ctrl+space does not for me). You also have to remember that this shortcut only works if you are viewing a file that is placed in the mainfolder.

ecliptic
Prole
Posts: 10
Joined: Wed Jul 01, 2009 12:34 pm

This worked well for me, good tip!

osuf oboys
Party member
Posts: 215
Joined: Sun Jan 18, 2009 8:03 pm

Useful, thanks.

Skasi: I think it is rather that shortcuts that are already in use cannot be assigned. For instance, Ctrl+R works fine, for me at least, but not Ctrl+S. You can see the present shortcuts, or change/remove the ones you added, under settings>shortcut mapper.
If I haven't written anything else, you may assume that my work is released under the LPC License - the LÖVE Community. See http://love2d.org/wiki/index.php?title=LPC_License.

zipperipper
Prole
Posts: 45
Joined: Thu Jan 14, 2010 7:59 pm
Location: UK

wow that is like.. a HUGE time saver!

Xcmd
Party member
Posts: 211
Joined: Fri Feb 13, 2009 10:45 pm

Better late that never, eh?

If you're running a 64-bit operating system (like me), and you've installed Love to the Program Files (x86) folder (like I did), then you may need to use the following command:

Code: Select all

C:\Progra~2\LOVE\love.exe "$(CURRENT_DIRECTORY)" Note the use of "Progra~2" in lieu of "Progra~1". We don't borrow, we don't read, we don't rent, we don't lease, we take the minds! TechnoCat Inner party member Posts: 1611 Joined: Thu Jul 30, 2009 12:31 am Location: Denver, CO Contact: ### Re: Notepad++ shortcut Am I the only Windows user that puts the love dir in the PATH env var so I can type love in the command prompt? It also makes my notepad++ run command: "love" "$(CURRENT_DIRECTORY)"
Last edited by TechnoCat on Sun Feb 21, 2010 3:33 pm, edited 1 time in total.

Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact: