4236 Commits

Author SHA1 Message Date
Lex
3c2dc547cd Make the tools->terminal setting more flexible.
Previously was hard coded with options to suit xterm.  As this is
being replaced with different terminal programs some do not accept
the same options.  The new setting stores the whole command with
%c to substitute the script name.  Upgrades old settings if a new
one does not exist.
2013-02-17 11:38:53 +11:00
Colomban Wendling
eab86bc6ad win32: Fix crash with -v if stream redirection setup fails
Properly check for errors when setting up debug console stream
redirections so if it fails it doesn't crash everything.
2013-02-14 00:50:59 +01:00
Baptiste Pierrat
2203d8f085 Abaqus: remove styles not actually used by the lexer 2013-02-12 14:57:12 +01:00
Baptiste Pierrat
d4e61bf093 Add support for Abaqus files
Support for Abaqus (.inp) files, including scintilla lexer and tag
parser.

Signed-off-by: Baptiste Pierrat <baptiste.pierrat@gmail.com>
2013-02-12 14:56:38 +01:00
Colomban Wendling
36581d6638 Move document status color definition to the gtkrc file
This allows for users to change the colors if needed (may be useful
with some themes or color blind persons).

On the sidebar, only the color is applied for now.  This is because
it is not possible to style cell renderers through RC files, all having
to be done in the code;  so currently only the color is applied.
2013-02-11 04:46:40 +01:00
Frank Lanitz
41456c1809 Replace ru_RU with simple ru inside credantials as we only have one Russiian translation 2013-02-05 21:27:05 +01:00
Frank Lanitz
f087542ef8 Added first version of Serbian translation 2013-02-05 21:25:48 +01:00
Frank Lanitz
159d712bd6 Adding first version of Hindi translation 2013-02-05 00:42:26 +01:00
Lex
280e9eeb1c Correct Names of levels
Make the top level the Document, make lower levels translatable
although they do not normally show in Symbols pane.
2013-01-17 15:43:24 +11:00
Lex
8294ea2c2e Add Asciidoc filetype
Add a filetype for Asciidoc with symbol parser, but not styling.
2013-01-17 15:43:24 +11:00
Duncan de Wet
e506a370e9 Added HTML5 self-closing tags
http://www.w3.org/TR/html-markup/syntax.html#syntax-elements
2013-01-13 23:00:59 +01:00
Matthew Brush
adfc0985db Merge branch 'krofna/master' 2013-01-06 19:11:17 -08:00
Colomban Wendling
3783eed0ea Use icons from the theme in the completion popup
Drop the XPM icons and load the PNG ones through the theme mechanisms,
like we do for the symbols tree.
2013-01-01 19:10:48 +01:00
Colomban Wendling
dabae1f94f Replace images embedded in the sources with proper themable icons
Additionally, provide SVG versions of the icons as well as them
rendered at the various icons sizes.
2013-01-01 19:10:48 +01:00
Colomban Wendling
bd02c009a1 Use the Geany icon from the theme everywhere 2013-01-01 19:10:04 +01:00
Colomban Wendling
003435e16d Revert "Make use of theme icon a various pref."
A preference for an icon doesn't make sense;  if someone don't like
her theme's icon she should either switch to another theme, override
that specific icon or don't bother.

This reverts commit 6897cd49c69535c6563e56ae011c6f8382fec485.
2013-01-01 19:04:59 +01:00
Colomban Wendling
b9c1c90938 Revert "Alter default and document icon setting"
This reverts commit 306eaab3916649567c892215ad8390b9d39de82f.
2013-01-01 19:04:47 +01:00
Colomban Wendling
d2a8a11587 Merge branch 'printing-with-scintilla' 2013-01-01 18:54:08 +01:00
Mislav Blažević
15fddad323 Implement terminal background image 2012-12-18 12:19:53 +01:00
Nick Treleaven
6ca889c78b Add Document->Clone keybinding 2012-12-12 14:02:50 +00:00
Colomban Wendling
83e7afc199 Fix return value of search_find_text() when the match is out of bounds
When performing a regular expression search on a range, and there is a
match past the end of the range, search_find_text() used to improperly
return the position of the match, but without filling the
Sci_TextToFind structure.  This lead to the calling code assume there
was a match, and maybe read the uninitialized fields in the
Sci_TextToFind structure, thus leading to undefined behavior.

So, fix search_find_text() so it properly returns -1 when there is a
match but it is outside the bounds.
2012-12-10 22:45:34 +01:00
Colomban Wendling
ed2cf2e5f4 VTE: Grab focus upon middle click
When pasting with the X primary clipboard (middle mouse button), the
user expects the focus to be grabbed by the widget receiving the data.

No idea why the VTE itself don't grab upon middle click, though.
2012-12-04 21:52:05 +01:00
Colomban Wendling
d019741512 Properly register the statusbar context ID
Getting the statusbar context ID using the context registration API
allows for other (namely, plugins) to register their own context
without a risk of overriding Geany's one.
2012-12-02 18:03:14 +01:00
Quentin Glidic
8c4db25396 Fix file saving behavior with "allow_always_save"
This preference should only be used for UI action, not for other file
saving triggering.
2012-12-02 17:22:06 +01:00
Nick Treleaven
c4b2457761 Fix clashing button mnemonic in detect/reload dialog (#3587465) 2012-11-28 13:50:27 +00:00
Evandro Borracini
3205eeaa71 Reduce unnecessary redraws when typing 2012-11-27 17:05:51 +00:00
Nick Treleaven
a1022060d2 Show Find in Files status summary on Windows 2012-11-27 14:16:30 +00:00
Nick Treleaven
0b63957e59 Add 'Move Line(s)' menu items in Edit->Commands (and popup menu)
Although using menu items for these is not very practical, it helps
discoverability, and they're more useful and intuitive than 'Transpose
Current Line'.
2012-11-23 16:30:18 +00:00
Nick Treleaven
535b7a6b6e Copy selected text only (when present) for Document->Clone 2012-11-23 15:39:50 +00:00
Nick Treleaven
5200450b85 Clone line breaking, auto indent, indent type, indent width settings 2012-11-23 15:37:06 +00:00
Nick Treleaven
06661f36a5 Mark cloned documents as modified
This helps avoid accidental data loss.
2012-11-23 15:37:04 +00:00
Nick Treleaven
c0a8a2b806 Disable 'Save As' dialog Rename button unless document exists on disk 2012-11-23 15:37:02 +00:00
Nick Treleaven
85006b6d0b Add 'Document->Clone' menu command
This copies the current document text and properties into a new
document, similar to the old Save As 'Open file in a new tab'
option, but easier to understand and decoupled from saving.

One notable difference is that the new document does not copy the
filename - the old behaviour was confusing and error-prone for the
user (e.g. editing two documents with the same filename).
2012-11-23 15:37:00 +00:00
Nick Treleaven
3949cf7304 Remove 'Open file in a new tab' save as option 2012-11-23 15:36:58 +00:00
Nick Treleaven
43c49ba46d Make sci_get_contents() accept -1 for buffer_len to get all text 2012-11-21 13:34:39 +00:00
Nick Treleaven
fe1da1891a Fix sci_get_contents() buffer length parameter name & doc
sci_get_contents() takes buffer length as a parameter, not the
number of characters to copy. Buffer length includes a null byte.
2012-11-21 13:34:37 +00:00
Nick Treleaven
c9f68df683 Fix cancelling Project Close when showing the unsaved changes dialog 2012-11-21 13:34:35 +00:00
Nick Treleaven
9df961f8c5 Scroll cursor in view after line breaking 2012-11-15 15:40:05 +00:00
Nick Treleaven
b8fa21ff3b Never strip trailing spaces for Diff documents 2012-11-15 13:39:55 +00:00
Colomban Wendling
4423de1a72 Printing: fix improper margins when printing to a physical device
We were improperly adding the printing device margins to the area
where we print, leading to wider margins on physical outputs than
on PDF or preview outputs (which have no hard margins), as well as
wasting space and not respecting user's settings.

Closes #3580269.
2012-11-02 21:48:49 +01:00
Colomban Wendling
9f32fdd1a4 Printing: draw the vertical separator line more accurately
Use the dimensions and offsets used by Scintilla to position our
separator line, since its position depends on where Scintilla drawn.

Closes #3580268.
2012-11-02 21:48:49 +01:00
Colomban Wendling
55b8c7af3f Printing: fix text resolution
Scintilla doesn't respect the context resolution, so we need to scale
its draws ourselves.
2012-11-02 21:48:48 +01:00
Nick Treleaven
3cfd8fa8b1 Clear search markers on Mark All keybinding when already set 2012-10-26 14:37:31 +01:00
Colomban Wendling
4ffd446c43 Update for new PO styles 2012-10-25 17:09:55 +02:00
Nick Treleaven
00c2cc20ea Fix gcc missing field initializer warning 2012-10-24 17:43:26 +01:00
Nick Treleaven
a3664fae9e Fix spawning [synchronous] commands on Windows
Build command spawning failed sometimes when there were several
pages of errors. In these cases the process would block for 30s and
then abort. (Some hangs were also experienced).

This fix does cause a console window to be shown for the duration of
the spawned process. This seems acceptable compared with the old
broken behaviour, and can be useful to abort the build command by
closing the console window.

Note: If 'env' is passed, the old broken spawning is used.
2012-10-24 17:35:19 +01:00
Colomban Wendling
a77785e378 Set style for SCE_C_STRINGRAW (C++11 raw strings)
Part of #3578557.
2012-10-20 14:07:13 +02:00
Colomban Wendling
6e8e0c7bfb Fix display of non-ASCII tags in the symbols tree for non-UTF-8 files
We used to convert the tags from the file encoding to UTF-8, but since
we parse directly from our UTF-8 buffer, all tags are UTF-8, which lead
to an improper conversion.
2012-10-18 16:55:33 +02:00
Lex
306eaab391 Alter default and document icon setting
Previous default value prevented the preceding commit from working
(by default), oops.
2012-10-15 11:56:03 +11:00
Lex
6897cd49c6 Make use of theme icon a various pref.
Some users want the theme icon, some dislike the icon provided by
their theme and want the traditional Geany icon.

This makes that choice a various pref.  Used a standalone global
to avoid impacting the plugin interface and CommandLineOptions
and GeanyStatus didn't make sense.
2012-10-14 13:05:11 +11:00