1117
1116
Inserting Unicode characters
1118
1117
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1120
With GTK 2.10 and above, you can insert Unicode code points by hitting
1121
Ctrl-Shift-u, then still holding Ctrl-Shift, type some hex digits representing
1122
the code point for the character you want and hit Enter or Return (still
1123
holding Ctrl-Shift). If you release Ctrl-Shift before hitting Enter or Return
1124
(or any other character), the code insertion is completed, but the typed
1125
character is also entered. In the case of Enter/Return, it is a newline, as
1119
You can insert Unicode code points by hitting Ctrl-Shift-u, then still holding
1120
Ctrl-Shift, type some hex digits representing the code point for the character
1121
you want and hit Enter or Return (still holding Ctrl-Shift). If you release
1122
Ctrl-Shift before hitting Enter or Return (or any other character), the code
1123
insertion is completed, but the typed character is also entered. In the case
1124
of Enter/Return, it is a newline, as you might expect.
1129
1127
In some earlier versions of Geany, you might need to first unbind Ctrl-Shift-u
2386
2421
see http://man.cx/strftime.
2427
.. image:: ./images/pref_dialog_various.png
2429
Rarely used preferences, explained in the table below. A few of them require
2430
restart to take effect, and a few other will only affect newly opened or created
2431
documents before restart.
2433
================================ ========================================= ========== ===========
2434
Key Description Default Applies
2435
================================ ========================================= ========== ===========
2437
use_gtk_word_boundaries Whether to look for the end of a word true to new
2438
when using word-boundary related documents
2439
Scintilla commands (see `Scintilla
2440
keyboard commands`_).
2441
brace_match_ltgt Whether to highlight <, > angle brackets. false immediately
2442
complete_snippets_whilst_editing Whether to allow completion of snippets false immediately
2443
when editing an existing line (i.e. there
2444
is some text after the current cursor
2445
position on the line). Only used when the
2446
keybinding `Complete snippet` is set to
2448
show_editor_scrollbars Whether to display scrollbars. If set to true immediately
2449
false, the horizontal and vertical
2450
scrollbars are hidden completely.
2451
indent_hard_tab_width The size of a tab character. Don't change 8 immediately
2452
it unless you really need to; use the
2453
indentation settings instead.
2454
**Interface related**
2455
show_symbol_list_expanders Whether to show or hide the small true to new
2456
expander icons on the symbol list documents
2457
allow_always_save treeview. Whether files can be saved false immediately
2458
always, even if they don't have any
2459
changes. By default, the Save button and
2460
menu item are disabled when a file is
2461
unchanged. When setting this option to
2462
true, the Save button and menu item are
2463
always active and files can be saved.
2464
compiler_tab_autoscroll Whether to automatically scroll to the true immediately
2465
last line of the output in the Compiler
2467
statusbar_template The status bar statistics line format. See below. immediately
2468
(Search in src/ui_utils.c for details).
2469
new_document_after_close Whether to open a new document after all false immediately
2470
documents have been closed.
2471
msgwin_status_visible Whether to show the Status tab in the true immediately
2473
msgwin_compiler_visible Whether to show the Compiler tab in the true immediately
2475
msgwin_messages_visible Whether to show the Messages tab in the true immediately
2477
msgwin_scribble_visible Whether to show the Scribble tab in the true immediately
2479
================================ ========================================= ========== ===========
2481
By default, statusbar_template is empty. This tells Geany to use its
2482
internal default, which is currently:
2484
``line: %l / %L\t col: %c\t sel: %s\t %w %t %mmode: %M encoding: %e filetype: %f scope: %S``
2486
Note that ``\t`` = tab.
2488
================================ =========================================== ======== ===========
2489
Key Description Default Applies
2490
================================ =========================================== ======== ===========
2492
emulation Terminal emulation mode. Only change this xterm immediately
2493
if you have VTE termcap files other than
2494
``vte/termcap/xterm``.
2495
send_selection_unsafe By default, Geany strips any trailing false immediately
2496
newline characters from the current
2497
selection before sending it to the terminal
2498
to not execute arbitrary code. This is
2499
mainly a security feature.
2500
If, for whatever reasons, you really want
2501
it to be executed directly, set this option
2504
use_atomic_file_saving Defines the mode how Geany saves files to false immediately
2505
disk. If disabled, Geany directly writes
2506
the content of the document to disk. This
2507
might cause loss of data when there is
2508
no more free space on disk to save the
2509
file. When set to true, Geany first saves
2510
the contents into a temporary file and if
2511
this succeeded, the temporary file is
2512
moved to the real file to save.
2513
This gives better error checking in case of
2514
no more free disk space. But it also
2515
destroys hard links of the original file
2516
and its permissions (e.g. executable flags
2517
are reset). Use this with care as it can
2518
break things seriously.
2519
The better approach would be to ensure your
2520
disk won't run out of free space.
2521
use_gio_unsafe_file_saving Whether to use GIO as the unsafe file true immediately
2522
saving backend. It is better on most
2523
situations but is known not to work
2524
correctly on some complex setups.
2525
gio_unsafe_save_backup Make a backup when using GIO unsafe file false immediately
2526
saving. Backup is named `filename~`.
2528
find_selection_type See `Find selection`_. 0 immediately
2529
**Build Menu related**
2530
number_ft_menu_items The maximum number of menu items in the 2 on restart
2531
filetype section of the Build menu.
2532
number_non_ft_menu_items The maximum number of menu items in the 3 on restart
2533
independent section of the Build menu.
2534
number_exec_menu_items The maximum number of menu items in the 2 on restart
2535
execute section of the Build menu.
2536
================================ =========================================== ======== ===========
2389
2539
Terminal (VTE) preferences
2390
2540
^^^^^^^^^^^^^^^^^^^^^^^^^^
2734
2887
| Group | Project File | Preferences | System Filetype | Defaults |
2735
2888
+==============+=====================+==========================+===================+===============================+
2736
2889
| Filetype | Loads From: project | Loads From: | Loads From: | None |
2737
| | file | filetype.xxx file in | filetype.xxx in | |
2890
| | file | filetypes.xxx file in | filetypes.xxx in | |
2738
2891
| | | ~/.config/geany/filedefs | Geany install | |
2739
2892
| | Saves To: project | | | |
2740
2893
| | file | Saves to: as above, | Saves to: as user | |
2741
2894
| | | creating if needed. | preferences left. | |
2742
2895
+--------------+---------------------+--------------------------+-------------------+-------------------------------+
2743
2896
| Filetype | Loads From: project | Loads From: | Loads From: | 1: |
2744
| Independent | file | geany.conf file in | filetype.xxx in | Label: _Make |
2897
| Independent | file | geany.conf file in | filetypes.xxx in | Label: _Make |
2745
2898
| | | ~/.config/geany | Geany install | Command: make |
2746
2899
| | Saves To: project | | | |
2747
2900
| | file | Saves to: as above, | Saves to: as user | 2: |
2753
2906
| | | | | Command: make %e.o |
2754
2907
+--------------+---------------------+--------------------------+-------------------+-------------------------------+
2755
2908
| Execute | Loads From: project | Loads From: | Loads From: | Label: _Execute |
2756
| | file or else | geany.conf file in | filetype.xxx in | Command: ./%e |
2909
| | file or else | geany.conf file in | filetypes.xxx in | Command: ./%e |
2757
2910
| | filetype defined in | ~/.config/geany or else | Geany install | |
2758
| | project file | filetype.xxx file in | | |
2911
| | project file | filetypes.xxx file in | | |
2759
2912
| | | ~/.config/geany/filedefs | Saves To: as user | |
2760
2913
| | Saves To: | | preferences left. | |
2761
2914
| | project file | Saves To: | | |
2762
| | | filetype.xxx file in | | |
2915
| | | filetypes.xxx file in | | |
2763
2916
| | | ~/.config/geany/filedefs | | |
2764
2917
+--------------+---------------------+--------------------------+-------------------+-------------------------------+
2766
2919
The following notes on the table reference cells by coordinate as (group,source):
2768
* General - for filetype.xxx substitute the filetype name of the
2769
current document for xxx.
2921
* General - for filetypes.xxx substitute the appropriate extension for
2922
the filetype of the current document for xxx - see `filenames`_.
2771
2924
* System Filetypes - Labels loaded from these sources are locale sensitive
2772
2925
and can contain translations.
3749
3948
This can be overridden by the *whitespace_chars*
3750
3949
filetypes.common setting.
3952
A character or string which is used to comment code. If you want to use
3953
multiline comments only, don't set this but rather comment_open and
3956
Single-line comments are used in priority over multiline comments to
3957
comment a line, e.g. with the `Comment/Uncomment line` command.
3959
*Example:* ``comment_single=//``
3753
A character or string which is used to comment code. If you want to
3754
use multiline comments, also set comment_close, otherwise leave it
3962
A character or string which is used to comment code. You need to also
3963
set comment_close to really use multiline comments. If you want to use
3964
single-line comments, prefer setting comment_single.
3966
Multiline comments are used in priority over single-line comments to
3967
comment a block, e.g. template comments.
3757
3969
*Example:* ``comment_open=/*``
4212
There are some rarely used preferences that are not shown in the Preferences
4213
dialog. These can be set by editing the preferences file, then
4214
restarting Geany. Search for the key name, then edit the value. Example:
4216
``brace_match_ltgt=true``
4219
If you just installed or updated Geany, you should restart it
4220
first so Geany can write/update the config file and you can find
4223
The table below show the key names of hidden preferences in the
4226
================================ =========================================== ==================
4227
Key Description Default
4228
================================ =========================================== ==================
4230
brace_match_ltgt Whether to highlight <, > angle brackets. false
4231
use_gtk_word_boundaries Whether to look for the end of a word when true
4232
using word-boundary related Scintilla
4233
commands (see `Scintilla keyboard
4235
complete_snippets_whilst_editing Whether to allow completion of snippets false
4236
when editing an existing line (i.e. there
4237
is some text after the current cursor
4238
position on the line). Only used when the
4239
keybinding `Complete snippet` is set to
4241
show_editor_scrollbars Whether to display scrollbars. If set to true
4242
false, the horizontal and vertical
4243
scrollbars are hidden completely.
4244
**Interface related**
4245
show_symbol_list_expanders Whether to show or hide the small expander true
4246
icons on the symbol list treeview (only
4247
available with GTK 2.12 or above).
4248
allow_always_save Whether files can be saved always, even if false
4249
they don't have any changes. By default,
4250
the Save buttons and menu items are
4251
disabled when a file is unchanged. When
4252
setting this option to true, the Save
4253
buttons and menu items are always active
4254
and files can be saved.
4255
compiler_tab_autoscroll Whether to automatically scroll to the true
4256
last line of the output in the Compiler
4258
statusbar_template The status bar statistics line format. See below.
4259
(Search in src/ui_utils.c for details).
4260
new_document_after_close Whether to open a new document after all false
4261
documents have been closed.
4262
msgwin_status_visible Whether to show the Status tab in the true
4264
msgwin_compiler_visible Whether to show the Compiler tab in the true
4266
msgwin_messages_visible Whether to show the Messages tab in the true
4268
msgwin_scribble_visible Whether to show the Scribble tab in the true
4270
================================ =========================================== ==================
4272
By default, statusbar_template is empty. This tells Geany to use its
4273
internal default, which is currently:
4275
``line: %l / %L\t col: %c\t sel: %s\t %w %t %mmode: %M encoding: %e filetype: %f scope: %S``
4277
Note that ``\t`` = tab.
4279
================================ =========================================== ==================
4280
Key Description Default
4281
================================ =========================================== ==================
4283
emulation Terminal emulation mode. Only change this xterm
4284
if you have VTE termcap files other than
4285
``vte/termcap/xterm``.
4286
send_selection_unsafe By default, Geany strips any trailing false
4287
newline characters from the current
4288
selection before sending it to the terminal
4289
to not execute arbitrary code. This is
4290
mainly a security feature.
4291
If, for whatever reasons, you really want
4292
it to be executed directly, set this option
4295
use_safe_file_saving Defines the mode how Geany saves files to false
4296
disk. If disabled, Geany directly writes
4297
the content of the document to disk. This
4298
might cause in loss of data when there is
4299
no more free space on disk to save the
4300
file. When set to true, Geany first saves
4301
the contents into a temporary file and if
4302
this succeeded, the temporary file is
4303
moved to the real file to save.
4304
This gives better error checking in case of
4305
no more free disk space. But it also
4306
destroys hard links of the original file
4307
and its permissions (e.g. executable flags
4308
are reset). Use this with care as it can
4309
break things seriously.
4310
The better approach would be to ensure your
4311
disk won't run out of free space.
4312
gio_unsafe_save_backup Make a backup when using GIO unsafe file false
4313
saving. Backup is named `filename~`.
4315
find_selection_type See `Find selection`_. 0
4316
**Build Menu related**
4317
number_ft_menu_items The maximum number of menu items in the 2
4318
filetype section of the Build menu.
4319
number_non_ft_menu_items The maximum number of menu items in the 3
4320
independent section of the Build menu.
4321
number_exec_menu_items The maximum number of menu items in the 2
4322
execute section of the Build menu.
4323
================================ =========================================== ==================
4325
[build-menu] Section
4465
[build-menu] section
4326
4466
^^^^^^^^^^^^^^^^^^^^
4328
4468
The [build-menu] section contains the configuration of the build menu.
4859
4981
============================================= ======================
4860
4982
Action Shortcut key
4861
4983
============================================= ======================
4862
Magnify text size. Ctrl+Keypad+
4863
Reduce text size. Ctrl+Keypad-
4864
Restore text size to normal. Ctrl+Keypad/
4984
Magnify text size. Ctrl-Keypad+
4985
Reduce text size. Ctrl-Keypad-
4986
Restore text size to normal. Ctrl-Keypad/
4865
4987
Indent block. Tab
4866
Dedent block. Shift+Tab
4867
Delete to start of word. Ctrl+BackSpace
4868
Delete to end of word. Ctrl+Delete
4869
Delete to start of line. Ctrl+Shift+BackSpace
4870
Go to start of document. Ctrl+Home
4871
Extend selection to start of document. Ctrl+Shift+Home
4872
Go to start of display line. Alt+Home
4873
Extend selection to start of display line. Alt+Shift+Home
4874
Go to end of document. Ctrl+End
4875
Extend selection to end of document. Ctrl+Shift+End
4876
Extend selection to end of display line. Alt+Shift+End
4877
Previous paragraph. Shift extends selection. Ctrl+Up
4878
Next paragraph. Shift extends selection. Ctrl+Down
4879
Previous word. Shift extends selection. Ctrl+Left
4880
Next word. Shift extends selection. Ctrl+Right
4988
Dedent block. Shift-Tab
4989
Delete to start of word. Ctrl-BackSpace
4990
Delete to end of word. Ctrl-Delete
4991
Delete to start of line. Ctrl-Shift-BackSpace
4992
Go to start of document. Ctrl-Home
4993
Extend selection to start of document. Ctrl-Shift-Home
4994
Go to start of display line. Alt-Home
4995
Extend selection to start of display line. Alt-Shift-Home
4996
Go to end of document. Ctrl-End
4997
Extend selection to end of document. Ctrl-Shift-End
4998
Extend selection to end of display line. Alt-Shift-End
4999
Previous paragraph. Shift extends selection. Ctrl-Up
5000
Next paragraph. Shift extends selection. Ctrl-Down
5001
Previous word. Shift extends selection. Ctrl-Left
5002
Next word. Shift extends selection. Ctrl-Right
4881
5003
============================================= ======================