Branch: refs/heads/master
Author: Nick Treleaven <ntrel002(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: Tue, 11 Apr 2023 16:17:06 UTC
Commit: 5298f51f41bb29e41970456652d2314ce609bcce
https://github.com/geany/geany/commit/5298f51f41bb29e41970456652d2314ce609b…
Log Message:
-----------
[filetype config] Remove outdated comment (#3449)
E.g. %e can be used twice in the same command.
Modified Paths:
--------------
data/filedefs/filetypes.CUDA.conf
data/filedefs/filetypes.Clojure.conf
data/filedefs/filetypes.Scala.conf
data/filedefs/filetypes.TypeScript.conf
data/filedefs/filetypes.abaqus
data/filedefs/filetypes.actionscript
data/filedefs/filetypes.ada
data/filedefs/filetypes.asm
data/filedefs/filetypes.c
data/filedefs/filetypes.caml
data/filedefs/filetypes.cpp
data/filedefs/filetypes.cs
data/filedefs/filetypes.d
data/filedefs/filetypes.erlang
data/filedefs/filetypes.f77
data/filedefs/filetypes.fortran
data/filedefs/filetypes.freebasic
data/filedefs/filetypes.gdscript
data/filedefs/filetypes.glsl
data/filedefs/filetypes.haskell
data/filedefs/filetypes.haxe
data/filedefs/filetypes.html
data/filedefs/filetypes.java
data/filedefs/filetypes.javascript
data/filedefs/filetypes.julia
data/filedefs/filetypes.latex
data/filedefs/filetypes.lisp
data/filedefs/filetypes.lua
data/filedefs/filetypes.matlab
data/filedefs/filetypes.nsis
data/filedefs/filetypes.objectivec
data/filedefs/filetypes.pascal
data/filedefs/filetypes.perl
data/filedefs/filetypes.php
data/filedefs/filetypes.po
data/filedefs/filetypes.powershell
data/filedefs/filetypes.python.in
data/filedefs/filetypes.ruby
data/filedefs/filetypes.sh
data/filedefs/filetypes.tcl
data/filedefs/filetypes.vala
data/filedefs/filetypes.xml
data/filedefs/filetypes.zephir
Modified: data/filedefs/filetypes.CUDA.conf
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -49,7 +49,6 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=nvcc -c "%f"
linker=nvcc -o "%e" "%f"
run_cmd="./%e"
Modified: data/filedefs/filetypes.Clojure.conf
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -40,6 +40,5 @@ type=0
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=
run_cmd=clj "%f"
Modified: data/filedefs/filetypes.Scala.conf
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -36,7 +36,6 @@ comment_use_indent=true
#[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
#compiler=g++ -Wall -c "%f"
#linker=g++ -Wall -o "%e" "%f"
#run_cmd="./%e"
Modified: data/filedefs/filetypes.TypeScript.conf
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -49,7 +49,6 @@ context_action_cmd=
[build-menu]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
#FT_02_LB=_Lint
#FT_02_CM=jshint "%f"
#FT_02_WD=
Modified: data/filedefs/filetypes.abaqus
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -49,7 +49,6 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=
run_cmd=abaqus job="%f" interactive datacheck
Modified: data/filedefs/filetypes.actionscript
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -45,7 +45,6 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=
run_cmd=
Modified: data/filedefs/filetypes.ada
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -56,7 +56,6 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=gcc -Wall -c "%f"
linker=gnatmake "%e"
run_cmd="./%e"
Modified: data/filedefs/filetypes.asm
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -59,6 +59,5 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=nasm "%f"
Modified: data/filedefs/filetypes.c
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -78,7 +78,6 @@ context_action_cmd=
[build-menu]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
FT_00_LB=_Compile
FT_00_CM=gcc -Wall -c "%f"
FT_00_WD=
Modified: data/filedefs/filetypes.caml
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -60,7 +60,6 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=ocamlc -c "%f"
linker=ocamlc -o "%e" "%f"
run_cmd="./%e"
Modified: data/filedefs/filetypes.cpp
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -48,7 +48,6 @@ context_action_cmd=
[build-menu]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
FT_00_LB=_Compile
FT_00_CM=g++ -Wall -c "%f"
FT_00_WD=
Modified: data/filedefs/filetypes.cs
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -49,7 +49,6 @@
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
# be careful following settings are untested
compiler=mcs /t:winexe "%f" /r:System,System.Drawing
run_cmd=mono "%e.exe"
Modified: data/filedefs/filetypes.d
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -70,7 +70,6 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=dmd -w -c "%f"
linker=dmd -w -of"%e" "%f"
# you can also use the gdc compiler, please use the "gdmd" wrapper script(included with gdc)
Modified: data/filedefs/filetypes.erlang
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -77,6 +77,5 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=erlc "%f"
run_cmd=erl "%f"
Modified: data/filedefs/filetypes.f77
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -60,7 +60,6 @@ primary=access action advance allocatable allocate apostrophe assign assignment
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=gfortran -Wall -c "%f"
linker=gfortran -Wall -o "%e" "%f"
run_cmd="./%e"
Modified: data/filedefs/filetypes.fortran
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -44,7 +44,6 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=gfortran -Wall -c "%f"
linker=gfortran -Wall -o "%e" "%f"
run_cmd="./%e"
Modified: data/filedefs/filetypes.freebasic
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -66,7 +66,6 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=fbc -w all "%f"
run_cmd="./%e"
Modified: data/filedefs/filetypes.gdscript
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -56,7 +56,6 @@ type=1
[build-menu]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
FT_00_LB=_Compile
FT_00_CM=
FT_00_WD=
Modified: data/filedefs/filetypes.glsl
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -45,7 +45,6 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
#compiler=
#linker=
#run_cmd=
Modified: data/filedefs/filetypes.haskell
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -76,7 +76,6 @@ context_action_cmd=
[build-menu]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
FT_00_LB=_Compile
FT_00_CM=ghc --make "%f"
FT_00_WD=
Modified: data/filedefs/filetypes.haxe
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -45,7 +45,6 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=haxe -neko "%e.n" -cp . "%f"
run_cmd=neko "%e"
Modified: data/filedefs/filetypes.html
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -133,7 +133,6 @@
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
# use a syntax checker and ignore the formatted output
compiler=tidy %f >/dev/null
Modified: data/filedefs/filetypes.java
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -46,6 +46,5 @@
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=javac "%f"
run_cmd=java "%e"
Modified: data/filedefs/filetypes.javascript
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -46,7 +46,6 @@ context_action_cmd=
[build-menu]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
FT_02_LB=_Lint
FT_02_CM=jshint "%f"
FT_02_WD=
Modified: data/filedefs/filetypes.julia
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -76,6 +76,5 @@ type=0
[build-menu]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=
run_cmd=julia "%f"
Modified: data/filedefs/filetypes.latex
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -57,7 +57,6 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=latex --file-line-error-style "%f"
# it is called linker, but here it is an alternative compiler command
linker=pdflatex --file-line-error-style "%f"
Modified: data/filedefs/filetypes.lisp
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -52,6 +52,5 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=
run_cmd=clisp "%f"
Modified: data/filedefs/filetypes.lua
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -74,7 +74,6 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=
run_cmd=lua "%f"
Modified: data/filedefs/filetypes.matlab
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -51,6 +51,5 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=
run_cmd=octave -q "%f"
Modified: data/filedefs/filetypes.nsis
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -65,6 +65,5 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=makensis "%f"
run_cmd="./%e"
Modified: data/filedefs/filetypes.objectivec
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -47,7 +47,6 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=gcc -Wall -c "%f"
linker=gcc -Wall -o "%e" "%f" -lobjc
run_cmd="./%e"
Modified: data/filedefs/filetypes.pascal
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -62,6 +62,5 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=fpc "%f"
run_cmd="./%e"
Modified: data/filedefs/filetypes.perl
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -93,7 +93,6 @@
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=perl -cw "%f"
Modified: data/filedefs/filetypes.php
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -47,7 +47,6 @@
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=php -l "%f"
run_cmd=php "%f"
Modified: data/filedefs/filetypes.po
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -54,6 +54,5 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=msgfmt --check --check-accelerators=_ "%f"
Modified: data/filedefs/filetypes.powershell
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -56,5 +56,4 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
run_cmd=powershell -file "%f"
Modified: data/filedefs/filetypes.python.in
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -71,7 +71,6 @@ context_action_cmd=
[build-menu]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
FT_00_LB=_Compile
FT_00_CM=@PYTHON_COMMAND@ -m py_compile "%f"
FT_00_WD=
Modified: data/filedefs/filetypes.ruby
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -77,7 +77,6 @@ context_action_cmd=
[build-menu]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
FT_00_LB=_Compile
FT_00_CM=ruby -wc "%f"
FT_00_WD=
Modified: data/filedefs/filetypes.sh
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -56,7 +56,6 @@ context_action_cmd=
[build-menu]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
FT_02_LB=_Lint
FT_02_CM=shellcheck --format=gcc "%f"
FT_02_WD=
Modified: data/filedefs/filetypes.tcl
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -65,7 +65,6 @@ context_action_cmd=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=tclsh "%f"
run_cmd=tclsh "%f"
Modified: data/filedefs/filetypes.vala
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -49,7 +49,6 @@ comment_close=*/
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=valac -c "%f"
linker=valac "%f"
run_cmd=./"%e"
Modified: data/filedefs/filetypes.xml
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -43,7 +43,6 @@ xml_indent_tags=true
[build-menu]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
FT_02_LB=_Lint
FT_02_CM=xmllint --noout "%f"
FT_02_WD=
Modified: data/filedefs/filetypes.zephir
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -20,5 +20,4 @@ extension=zep
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
-# (use only one of it at one time)
compiler=zephir build
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Nick Treleaven <ntrel002(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: Sun, 09 Apr 2023 14:18:03 UTC
Commit: b143e481ef472da1d49c8aabb3842ff20ba7b32c
https://github.com/geany/geany/commit/b143e481ef472da1d49c8aabb3842ff20ba7b…
Log Message:
-----------
docs: Document Open dialog options (#2355)
* docs: Document Open dialog options
* Add Startup links
* Add *Opening files* heading
* More options applies to multiple files
Modified Paths:
--------------
doc/geany.txt
Modified: doc/geany.txt
30 lines changed, 24 insertions(+), 6 deletions(-)
===================================================================
@@ -391,27 +391,45 @@ help screen.
General
-------
-
Startup
^^^^^^^
-
At startup, Geany loads all files from the last time Geany was
launched. You can disable this feature in the preferences dialog
(see `General Startup preferences`_).
You can start several instances of Geany, but only the first will
load files from the last session. In the subsequent instances, you
-can find these files in the file menu under the "Recent files" item.
+can find these files in the file menu under the *Recent files* item.
By default this contains the last 10 recently opened files. You can
-change the number of recently opened files in the preferences dialog.
+change the number of recently opened files in the
+`Files tab <#files-preferences>`_ of the preferences dialog.
To run a second instance of Geany, do not specify any filenames on
the command-line, or disable opening files in a running instance
-using the appropriate command line option.
+using the ``-i`` `command line option <#command-line-options>`_.
+
+
+Opening files
+^^^^^^^^^^^^^
+
+Open dialog
+```````````
+The *File->Open* command will show a dialog to choose one or more text
+files to open. There is a list of file filters on the right with the
+following items:
+
+* All files (default)
+* All source - a combination of all the patterns for each filetype (see
+ `Filetype extensions`_)
+* Individual filetypes
+
+Clicking *More options* will reveal controls to open files with a
+specific filetype and/or encoding (see `Character sets and Unicode
+Byte-Order-Mark (BOM)`_).
Opening files from the command-line in a running instance
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+`````````````````````````````````````````````````````````
Geany detects if there is an instance of itself already running and opens files
from the command-line in that instance. So, Geany can
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Nick Treleaven <ntrel002(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: Sun, 09 Apr 2023 14:17:15 UTC
Commit: 2615967c672107eb6242086a94668078a4264eb6
https://github.com/geany/geany/commit/2615967c672107eb6242086a94668078a4264…
Log Message:
-----------
Tweak templates/snippets docs (#3400)
Modified Paths:
--------------
doc/geany.txt
Modified: doc/geany.txt
45 lines changed, 25 insertions(+), 20 deletions(-)
===================================================================
@@ -2483,6 +2483,7 @@ Context action
Template preferences
^^^^^^^^^^^^^^^^^^^^
+See `Templates`_.
This data is used as meta data for various template text to insert into
a document, such as the file header. You only need to set fields that
@@ -2492,6 +2493,7 @@ you want to use in your template files.
Template data
`````````````
+See `Template meta data`_.
Developer
The name of the developer who will be creating files.
@@ -2512,16 +2514,15 @@ Initial version
The initial version of files you will be creating.
Year
- Specify a format for the {year} wildcard. For a list of available conversion
- specifiers see https://docs.gtk.org/glib/method.DateTime.format.html.
+ Specify a format for the ``{year}`` wildcard.
Date
- Specify a format for the {date} wildcard. For a list of available conversion
- specifiers see https://docs.gtk.org/glib/method.DateTime.format.html.
+ Specify a format for the ``{date}`` wildcard.
Date & Time
- Specify a format for the {datetime} wildcard. For a list of available conversion
- specifiers see https://docs.gtk.org/glib/method.DateTime.format.html.
+ Specify a format for the ``{datetime}`` wildcard.
+
+See `Date & time wildcards`_ for more information.
Keybinding preferences
@@ -2872,7 +2873,7 @@ Project properties
^^^^^^^^^^^^^^^^^^
You can set an optional description for the project. Currently it's
-only used for a template wildcard - see `Template wildcards`_.
+only used for the ``{description}}`` template wildcard - see `Dynamic wildcards`_.
The *Base path* field is used as the directory to run the Build menu commands.
The specified path can be an absolute path or it is considered to be
@@ -3493,16 +3494,16 @@ Complete word Ctrl-Space Shows the autocompleti
Show calltip Ctrl-Shift-Space Shows a calltip for the current function or
method.
-Complete snippet Tab If you type a construct like if or for and press
+Complete snippet Tab If you type a keyword like ``if`` or ``for`` and press
this key, it will be completed with a matching
- template.
+ template - see `User-definable snippets`_.
-Suppress snippet completion If you type a construct like if or for and press
+Suppress snippet completion If you type a construct like ``if`` or ``for`` and press
this key, it will not be completed, and a space or
tab will be inserted, depending on what the
construct completion keybinding is set to. For
example, if you have set the construct completion
- keybinding to space, then setting this to
+ keybinding to a space, then setting this to
Shift+space will prevent construct completion and
insert a space.
@@ -4996,11 +4997,12 @@ Wildcard Description Available in
ob { Opening Brace (used to prevent other file templates, file header, snippets.
wildcards being expanded).
cb } Closing Brace. file templates, file header, snippets.
-pc \% Percent (used to escape e.g. %block% in
- snippets). snippets.
+pc \% Percent (used to escape e.g. ``%block%``
+ in snippets). snippets.
============== ============================================= =======================================
-**Global wildcards**
+Global wildcards
+****************
These are configurable, see `Template preferences`_.
@@ -5028,7 +5030,8 @@ version The initial version of a new file. file templates, fil
bsd, gpl, snippets.
============== ============================================= =======================================
-**Date & time wildcards**
+Date & time wildcards
+*********************
The format for these wildcards can be changed in the preferences
dialog, see `Template preferences`_. For a list of available conversion
@@ -5050,7 +5053,8 @@ datetime The current date and time. Default format: file templates, fil
bsd, gpl, snippets.
============== ============================================= =======================================
-**Dynamic wildcards**
+Dynamic wildcards
+*****************
============== ============================================= =======================================
Wildcard Description Available in
@@ -5083,7 +5087,8 @@ command:path Executes the specified command and replace file templates, fil
for details.
============== ============================================= =======================================
-**Template insertion wildcards**
+Template insertion wildcards
+****************************
============== ============================================= =======================================
Wildcard Description Available in
@@ -5100,7 +5105,7 @@ fileheader The file header template. This wildcard snippets, file temp
Special {command:} wildcard
***************************
-The {command:} wildcard is a special one because it can execute
+The ``{command:}`` wildcard is a special one because it can execute
a specified command and put the command's output (stdout) into
the template.
@@ -5119,7 +5124,7 @@ In the environment of the executed command the variables
``GEANY_FILENAME``, ``GEANY_FILETYPE`` and ``GEANY_FUNCNAME`` are set.
The value of these variables is filled in only if Geany knows about it.
For example, ``GEANY_FUNCNAME`` is only filled within the function
-description template. However, these variables are ``always`` set,
+description template. However, these variables are *always* set,
just maybe with an empty value.
You can easily access them e.g. within an executed shell script using::
@@ -5129,7 +5134,7 @@ You can easily access them e.g. within an executed shell script using::
.. note::
If the specified command could not be found or not executed, the wildcard is substituted
by an empty string. In such cases, you can find the occurred error message on Geany's
- standard error and in the Help->Debug Messages dialog.
+ standard error and in the *Help->Debug Messages* dialog.
Customizing the toolbar
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Nick Treleaven <ntrel002(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: Sun, 09 Apr 2023 14:16:31 UTC
Commit: c092c1fb776d0811a3c0187df23e1440fad40836
https://github.com/geany/geany/commit/c092c1fb776d0811a3c0187df23e1440fad40…
Log Message:
-----------
Update CLI filenames docs (#3405)
Modified Paths:
--------------
doc/geany.txt
Modified: doc/geany.txt
28 lines changed, 15 insertions(+), 13 deletions(-)
===================================================================
@@ -364,24 +364,26 @@ Short option Long option Function
-? --help Show help information and exit.
-*none* [files ...] Open all given files at startup. This option causes
- Geany to ignore loading stored files from the last
- session (if enabled).
- Geany also recognizes line and column information when
+*none* *files ...* Open all given filenames at startup.
+ If a running instance is detected, pass filenames
+ *file:line ...* to it instead.
+
+ *file:line:col ...* Geany also recognizes line and column information when
appended to the filename with colons, e.g.
- "geany foo.bar:10:5" will open the file foo.bar and
+ ``geany foo.bar:10:5`` will open the file ``foo.bar`` and
place the cursor in line 10 at column 5.
- Projects can also be opened but a project file (\*.geany)
- must be the first non-option argument. All additionally
- given files are ignored.
-============ ======================= =================================================
-
-You can also pass line number and column number information, e.g.::
+ If a filename does not exist, create a new document
+ with the desired filename if the
+ *Open new files from the command-line*
+ `file pref <#files-preferences>`_ is set.
- geany some_file.foo:55:4
+ A project can also be opened, but the project filename (\*.geany)
+ must be the first non-option argument. Any other
+ project filenames will be opened as text files.
+============ ======================= =================================================
-Geany supports all generic GTK options, a list is available on the
+Geany also supports all generic GTK options, a list is available on the
help screen.
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Sun, 02 Apr 2023 22:32:21 UTC
Commit: 8cfa9278e62863228731df00c270578bb47f5c05
https://github.com/geany/geany/commit/8cfa9278e62863228731df00c270578bb47f5…
Log Message:
-----------
Prevent possible crash when using tm_workspace API by plugins
The current code uses an unreffed TMSourceFile->short_name as the key
into source_file_map. With Geany itself this is no problem as the
TMSourceFiles are always destroyed after their removal from the hash
table.
However, if a plugin adds 2 different files to the TM using
tm_workspace_add_source_file(file1);
tm_workspace_add_source_file(file2);
that have a different path but the same file name, such as
/A/B/myfile.c
/C/D/myfile.c
and at a later point removes them using something like
tm_workspace_remove_source_file(file1);
tm_source_file_free(file1);
tm_workspace_remove_source_file(file2);
tm_source_file_free(file2);
the
tm_source_file_free(file1);
call deallocates the key in the hash table which is now an invalid
pointer and the subsequent
tm_workspace_remove_source_file(file2);
crashes the plugin.
While it would be possible to solve this crash at the plugin level by
reordering the operations such as
tm_workspace_remove_source_file(file1);
tm_workspace_remove_source_file(file2);
tm_source_file_free(file1);
tm_source_file_free(file2);
this is not obvious from the plugin's perspective which doesn't know
Geany's internals so better to solve it at Geany's level by using a
g_strdupped value as the key.
This problem currently happens with the ProjectOrganizer plugin.
Modified Paths:
--------------
src/tagmanager/tm_workspace.c
Modified: src/tagmanager/tm_workspace.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -79,7 +79,7 @@ static gboolean tm_create_workspace(void)
theWorkspace->source_files = g_ptr_array_new();
theWorkspace->typename_array = g_ptr_array_new();
theWorkspace->global_typename_array = g_ptr_array_new();
- theWorkspace->source_file_map = g_hash_table_new_full(g_str_hash, g_str_equal, NULL,
+ theWorkspace->source_file_map = g_hash_table_new_full(g_str_hash, g_str_equal, g_free,
free_ptr_array);
tm_ctags_init();
@@ -192,7 +192,7 @@ void tm_workspace_add_source_file_noupdate(TMSourceFile *source_file)
if (!file_arr)
{
file_arr = g_ptr_array_new();
- g_hash_table_insert(theWorkspace->source_file_map, source_file->short_name, file_arr);
+ g_hash_table_insert(theWorkspace->source_file_map, g_strdup(source_file->short_name), file_arr);
}
g_ptr_array_add(file_arr, source_file);
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).