Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
config:scripts:lua [2013/06/30 10:31] – Added script changelogs thrawnconfig:scripts:lua [2015/01/14 21:22] (current) – Adding "Format document on save" script olsonpm
Line 31: Line 31:
 v0.2: v0.2:
   * Changed to use io.popen to retrieve command output, instead of piping to temporary file.   * Changed to use io.popen to retrieve command output, instead of piping to temporary file.
 +v0.3:
 +  * Show full path of current file, to assist in comparing files with the same name.
  
 ===== Hex edit ===== ===== Hex edit =====
Line 68: Line 70:
 v0.5: v0.5:
   * Consolidate choices into custom preferences dialog.   * Consolidate choices into custom preferences dialog.
 +v0.6:
 +  * Rearranged to show revision list before choosing the revision range type;
 +  * Fixed 'Show more' handling for multiline commit messages.
 +v0.7:
 +  * Allow selection of ending revision;
 +  * Fix revision list width.
  
 ===== Multi-clipboard support ===== ===== Multi-clipboard support =====
Line 129: Line 137:
 {{:config:scripts:navigation:ctrl-left.lua}} {{:config:scripts:navigation:ctrl-left.lua}}
 {{:config:scripts:navigation:ctrl-shift-left.lua}} {{:config:scripts:navigation:ctrl-shift-left.lua}}
 +
 +===== Find project file extensions =====
 +
 +Quickly identify all file extensions used in the current project. Useful for setting the list of recognised file types in a new project.
 +
 +{{:config:scripts:find-project-extensions.lua}}
 +
 +{{tag>configure lua script}}
 +
 +
 +===== Format document on save =====
 +
 +This file is more a framework to write your own cli calls to format the current file upon save.  There are a few hacks to get around the issue
 +of a possible infinite loop (since the workflow is save -> format document -> save), but everything is heavily commented for your ease of use.
 +Please note you will need to save this file under the reserved .../geanylua/events/saved.lua filename.
 +
 +{{:config:scripts:format-on-save.lua}}
  
 {{tag>configure lua script}} {{tag>configure lua script}}
  
  
Print/export