7595 Commits

Author SHA1 Message Date
Jiří Techet
ca21a8759a Don't use "echo -n" in shell scripts
The standard says:

If the first operand is -n, or if any of the operands contain a
backslash ( '\' ) character, the results are implementation-defined.

On OS X it simply prints the "-n" string and everything which follows,
including the newline.

Use printf instead.
2015-02-08 11:31:42 +01:00
Jiří Techet
47a5b9fc5f Use better default fonts on OS X
Fonts are rendered much smaller on OS X so use bigger sizes
by default. Also, by default they use the Light style which is
extremely thin - use Medium instead. Finally, use better monospace
font than the default Courier (Menlo is derived from Dejavu Sans
Mono and is used by XCode and other editors).
2015-01-20 19:33:06 +01:00
Jiří Techet
daecf69c9c Make keybindings_get_modifiers() part of plugin API 2015-01-20 19:33:06 +01:00
Jiří Techet
508216b7b4 Use the open command to open a directory in Finder on OS X 2015-01-20 19:33:06 +01:00
Jiří Techet
98ae34f1dc Perform execute using the default terminal application on OS X
In order to execute the runner script using the terminal application,
the script has to be executable, otherwise it's not executed.

In addition, when the terminal application starts, it sets $HOME
as the working directory. For this reason the working directory
has to be set in the runner script (to avoid additional ifdefs,
this part is shared with other unix systems where the additional
"cd" shouldn't matter).
2015-01-20 19:33:06 +01:00
Jiří Techet
82b413e506 Fix keybindings on OS X
On OS X the Command key is used for common keybindings instead
of Ctrl. Introduce a new macro, GEANY_PRIMARY_MOD_MASK that
represents the Command key on OS X and Ctrl on other platforms.

For some events, such as mouse key press, GDK_MOD2_MASK is returned
for the Command key by GTK instead of GDK_META_MASK (which is returned
when Command is pressed together with some other key). To hide this
behavior from users, introduce keybindings_get_modifiers() which can be
used instead of gtk_accelerator_get_default_mod_mask() and which
inserts GDK_META_MASK when GDK_MOD2_MASK is found in the mask
on OS X.
2015-01-20 19:33:06 +01:00
Jiří Techet
ac76c84fdc Use Safari as the default browser on OS X
Since Safari isn't on PATH, the open command has to be used
2015-01-20 19:33:06 +01:00
Jiří Techet
558d21f2f2 Fix clang warning regarding mismatching types
The Option initialization didn't match the struct - there was
an extra initialization of -e parameter and missing initialization
of --etags-include a bit later. This means the initializations of
the fields were shifted by one between these two.
2015-01-20 19:33:06 +01:00
Jiří Techet
9767f79e50 Improve ui_get_mime_icon()
It may happen that even though we get GIcon, the actual icon
dosen't exist (typically on Windows and OS X). Check if we
can find the actual icon.

In addition, use "icon name" instead of "stock id" - the latter
doesn't work on OS X / Windows for some reason.
2015-01-20 19:33:06 +01:00
Jiří Techet
3c01fae8d9 Disable scintilla buffer draw on OS X (with Quartz backend)
This delagates font rendering to Quartz so it can be rendered
in 2x resolution on "retina" displays.
2015-01-20 19:33:06 +01:00
Jiří Techet
5356c4549a Fix infinite loop on OS X when using find in files
The GIOCondition is always set to G_IO_IN even when input end
is reached (and no other flags are set) so the read_fif_io()
function never returns FALSE which causes an infinite loop.
It is necessary to check also the return value of
g_io_channel_read_line() and return FALSE on EOF or error.
2015-01-20 19:33:06 +01:00
Colomban Wendling
14f1468f78 Merge pull request #377 from b4n/autotools-mingw-cross
Autotools: Fix MinGW cross-compilation
2015-01-20 16:09:49 +01:00
Colomban Wendling
e6fa2c2ac7 Autotools: Improve the rule to compile Windows resource file 2015-01-20 16:04:55 +01:00
Colomban Wendling
700c05e413 Autotools: Build plugins with Libtool on MinGW too 2015-01-20 16:04:54 +01:00
Colomban Wendling
6584cc5936 verilog: Add code style categorization
Implement code style categorization (comment/string/code) for Verilog.
2015-01-20 15:57:58 +01:00
Colomban Wendling
d80fa8f72a Fix reference to a renamed function in some comments 2015-01-20 15:57:58 +01:00
Colomban Wendling
3996ae9268 Update Scintilla to version 3.5.3
Closes [bugs:#1041].
2015-01-20 15:56:38 +01:00
Colomban Wendling
9c4f1081eb Merge pull request #404 from ntrel/enum-base
Parse D enum base type & refactor
2015-01-14 18:58:24 +01:00
Nick Treleaven
657c7e73be Parse D enum base type & refactor
Merge and extend fishman/ctags enum inheritance parsing for C++, D,
and add simple.d.t/input.d test.
2015-01-14 17:03:26 +00:00
Frank Lanitz
8eccb079ab Update SQL keywords based on a list by the Drupal project 2015-01-13 21:32:31 +01:00
Colomban Wendling
91d5079c8d Merge pull request #378 from b4n/remove-macro-list
Remove "Show macro list" keybinding and feature
2015-01-11 17:33:40 +01:00
Colomban Wendling
740c12c0ca Remove "Show macro list" keybinding and feature
This feature looks like a poorly implemented subset of "Complete word",
but lacks some important features like prefix filtering.  It is also
misnamed as it shows not only macros, but also variables and enums.

It also only shows `editor_prefs.autocompletion_max_entries`, but does
so from *each* file, not as a whole.

So drop it altogether, as this feature doesn't really look useful and
the current implementation seem to suffer of too many shortcomings for
it to realistically be actually used.
2015-01-11 17:30:27 +01:00
Enrico Tröger
627c0aa10e Merge pull request #401 from techee/waf
waf: Don't relink scintilla and geany on every build
2015-01-10 11:07:18 +00:00
Jiří Techet
df03bcace0 waf: Don't relink scintilla and geany on every build
The ant_glob() function doesn't return a list of strings but rather
a list of waflib.Node.Nod3 objects. These print as paths so build
works but apparently confuse waf which thinks the files have
changed every time the waf command is performed.

Relinking scintilla and geany on every waf invocation is especially
problemmatic during "sudo waf install" where scintilla and geany
binaries get owned by the root user. This isn't a big problem on Linux
but on OS X this prevents subsequent waf calls to update the
binaries and the build fails.

To fix the issue, just convert the waflib.Node.Nod3 objects
to relative (string) paths.
2015-01-09 01:35:43 +01:00
landroni
f32b6f3b93 R: Fix keywords and wordchars
Currently the R filetype has a rather random collection of keywords.

This commit fixes the primary keywords (as used in RStudio, an IDE
specialized for R), and also adds the appropriate list of built-in
constants.
See https://github.com/rstudio/rstudio/blob/master/src/gwt/acesupport/acemode/r_highlight_rules.js
for the list of keywords used in RStudio.

Furthermore, the commit adds the `.` (dot) to `wordchars`.  In R the
set of symbols which can be used in object names is `[A-Za-z0-9_.]`
(with code portability and platform compatibility in mind).  For more
gruesome details see:
http://cran.r-project.org/doc/manuals/r-release/R-intro.html#R-commands_003b-case-sensitivity-etc
RStudio also treats the dot as part of the "word".

For some background see:
http://landroni.wordpress.com/2013/07/27/using-geany-for-programming-in-r/

Closes #273.
2015-01-05 17:00:37 +01:00
Colomban Wendling
e06f47d774 Merge pull request #289 from mspacek/build_line_num
Add %l current line number substitution to build commands
2015-01-05 16:26:03 +01:00
Frank Lanitz
fb7d9fa25f Merge pull request #388 from peter-scholtens/master
Update of dutch translation for geany
2015-01-02 19:34:24 +01:00
Jiří Techet
b864733cdb Avoid double-shadow around message window
Message window should be at the same level as the sidebar and editor.
Instead, it is 2 shadows deeper. Fix that.
2015-01-02 10:15:08 -08:00
Peter C. S. Scholtens
b7338da5e6 Updated Dutch translations. 2015-01-02 17:28:09 +01:00
Colomban Wendling
f1a1d8c234 Merge pull request #397 from techee/revert
Remove useless TM micro-optimization from a profile misread.
2014-12-30 22:50:54 +01:00
Jiří Techet
c131466a00 Revert "Microoptimization in merge"
This reverts commit cb9e4bbf7446e45365cad2242087f2a766662f20.
2014-12-30 17:09:18 +01:00
Colomban Wendling
08568b11f5 Merge PR#393 from 'c/keyword-types'
Fix parsing typedefs to size_t (C/C++/D) and wchar_t (C/D).
2014-12-25 19:54:12 +01:00
Colomban Wendling
29cc8b4d28 d: size_t and wchar_t aren't keywords in D 2014-12-25 16:46:55 +01:00
Colomban Wendling
43a8986d2c c: Add a test case for size_t and wchar_t handling 2014-12-25 16:45:35 +01:00
Colomban Wendling
371301a84d c: Don't parse wchar_t as a keyword 2014-12-25 01:36:27 +01:00
Colomban Wendling
e091a56a18 c, c++: Don't parse size_t as a keyword
This fixes handling of typedefs defining this name.
2014-12-25 01:35:28 +01:00
Colomban Wendling
3b8ea98f00 c: Fix C11 keywords (oops)
List keywords from ISO/IEC 9899:201x N1570 (2011-04-12), not N1425
(2009-11-24).
2014-12-25 00:53:03 +01:00
Colomban Wendling
ef6f8a0c65 c++: Remove non-keyword types from keywords list
Closes #391.
2014-12-24 19:09:47 +01:00
Colomban Wendling
20be6c9bb4 c: Add missing size_t type to the C99 tag file
Closes #392.
2014-12-24 19:09:25 +01:00
Colomban Wendling
f4045fb336 c: Add missing C11 keywords 2014-12-24 18:48:45 +01:00
Colomban Wendling
d80ee82072 Select the default scheme in the Color Scheme dialog by default
Always select the default scheme by default in the Color Scheme dialog
not to end up selecting none in case of broken or nonexistent
configuration.  This matches which scheme is actually used, and fixes
use of an uninitialized iter when no scheme would be selected.
2014-12-18 02:42:05 +01:00
Nick Treleaven
d6601cbafa Merge pull request #387 from philippwiesemann/fix-typos-doc
Fix typos in documentation
2014-12-12 13:11:29 +00:00
Philipp Wiesemann
fc73fabe4b Fix typos in documentation 2014-12-11 22:58:57 +01:00
Colomban Wendling
87331093a9 Merge pull request #361 from techee/prj_write
Add project_write_config() to force project file rewrite
2014-12-11 00:07:41 +01:00
Frank Lanitz
89c321883c Merge pull request #386 from b4n/po/fr
Small French translation update
2014-12-08 19:15:36 +01:00
Colomban Wendling
1f9f230045 Use French quotes in the French translation 2014-12-08 16:26:12 +01:00
Colomban Wendling
469a345f18 Small update of the French translation 2014-12-08 16:25:41 +01:00
Jiří Techet
7c22ceacf9 Update the go parser to the latest version from ctags 2014-12-07 22:25:13 +01:00
Colomban Wendling
0184083a7e Fix an assertion failure when trying to scope-complete in a 2-characters C++ file 2014-12-04 14:38:57 +01:00
Colomban Wendling
f08af8046f Merge branch 'js-update'
Import back JavaScript parser changes from fishman/ctags.
2014-12-02 15:03:20 +01:00