Difference between revisions of "Geany"

(summarized info.)
 
m (Add section on auto completion tags for Geany)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
  
 
This article covers how to optimize Geany for working with LÖVE.
 
This article covers how to optimize Geany for working with LÖVE.
 +
 +
== Auto completion ==
 +
 +
See [https://love2d.org/forums/viewtopic.php?f=4&t=84657&p=222789#p217559 this post] for instructions on loading auto completion tags into Geany.
  
 
== Run hotkey ==
 
== Run hotkey ==
Line 31: Line 35:
 
* https://love2d.org/forums/viewtopic.php?f=3&t=7009
 
* https://love2d.org/forums/viewtopic.php?f=3&t=7009
  
 +
[[Category:Software]]
 
[[Category: Editor integration]]
 
[[Category: Editor integration]]
 +
{{#set:Name=Geany}}
 +
{{#set:Description=Source Code Editor}}
 +
{{#set:Type=Editor}}

Latest revision as of 06:04, 31 August 2018

Geany is an open source Lua text editor for Linux, Mac OS X and Windows.

This article covers how to optimize Geany for working with LÖVE.

Auto completion

See this post for instructions on loading auto completion tags into Geany.

Run hotkey

  1. Make sure you have a .lua file open.
  2. Open Build/Set Build Commands
  3. Create a new Lua command with the label "run with love"
  4. The command should be:
    • Linux: love %p, assuming you installed LÖVE.
    • Mac OS X: /Applications/love.app/Contents/MacOS/love %p, assuming you installed LÖVE in the applications folder.
    • Windows: C:\Program Files\Love\love.exe %p, assuming that's where you installed LÖVE.

Build script

  1. Make sure you have a .lua file open.
  2. Open Build/Set Build Commands
  3. Create a new Lua command with the label "build .love file" and working directory %p
  4. The command should be:
    • Linux: ts=$(date +%s); zip -r ../${PWD##*/}_${ts}.love *, assuming you have `zip` installed.
    • Mac OS X: ts=$(date +%s); zip -r ../${PWD##*/}_${ts}.love *

Snippets

See Customizing Geany for LOVE thread.

Sources