6527 Commits

Author SHA1 Message Date
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
Colomban Wendling
8f96498323 Fix a typo in the docs 2012-12-02 16:45:17 +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
48f7efaa68 Ignore D angle brackets e.g. Foo!(x < 2) 2012-11-27 13:35:50 +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
b5b31fb43d Merge branch 'document-clone' 2012-11-23 15:43:21 +00:00
Nick Treleaven
535b7a6b6e Copy selected text only (when present) for Document->Clone 2012-11-23 15:39:50 +00:00
Nick Treleaven
22d5b4795b Update manual for Document->Clone command 2012-11-23 15:37:08 +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
Frank Lanitz
9256dd660c Update of Dutch translation 2012-11-19 22:44:16 +01:00
Frank Lanitz
3f7eec5910 Fix a typo insode geany.glade 2012-11-19 22:38:45 +01:00
Lex
da78a44a1c Add Asciidoc filetype with symbol parser
Add an Asciidoc filetype and a basic symbol parser based on ReST.
See the FIXMEs for ReST to Asciidoc changes still to be done.
2012-11-17 19:19:27 +11: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
Nick Treleaven
e9e41ee47b Move D, Vala unique keyword aliases out of keywordTable
Instead put them in initialize*Parser().
2012-11-15 13:39:53 +00:00
Colomban Wendling
523e0d7c11 Fix reStructuredText comment marker
Closes #3585377.
2012-11-08 15:55:00 +01:00
Nick Treleaven
a742ff3546 Parse scope for D nested template blocks (#3582833) 2012-11-05 16:18:43 +00:00
Nick Treleaven
7d4ffb1e45 Fix parsing D 'static assert' (#3582833) 2012-11-03 16:08:35 +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
Colomban Wendling
75cb789eb5 Fix a c-format typo in the Turkish translation leading to a crash 2012-10-30 23:44:47 +01:00
Colomban Wendling
2109677781 JavaScript parser: fix scope of functions nested inside methods 2012-10-28 18:55:48 +01:00
Colomban Wendling
4dafe0d8d3 JavaScript parser: properly parse regular expression literals
This prevents a regex pattern from fooling the parser if it contains
some recognized constructs, like comment or string literal starts.

Closes #2992393 and #3398636.
2012-10-26 16:59:21 +02:00
Nick Treleaven
3cfd8fa8b1 Clear search markers on Mark All keybinding when already set 2012-10-26 14:37:31 +01:00
Colomban Wendling
318b49ab78 Merge branch 'scintilla-update' 2012-10-25 17:17:25 +02:00
Colomban Wendling
f7f47af085 Update NEWS 2012-10-25 17:09:55 +02:00
Colomban Wendling
4ffd446c43 Update for new PO styles 2012-10-25 17:09:55 +02:00
Colomban Wendling
2874357a97 Add new PO lexer to the build system 2012-10-25 17:09:55 +02:00
Colomban Wendling
7acc68ea00 Refresh our Scintilla patch for the new lexers 2012-10-25 17:09:55 +02:00
Colomban Wendling
4d16754267 Update Scintilla to version 3.2.3
Closes #2909124, #3094431 and #3233160.
2012-10-25 17:09:34 +02:00
Nick Treleaven
d7e285d00e Fix parsing colons in D (#3577788) 2012-10-25 13:54:52 +01: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
8855c146cc Fix a use of non-const variable to hold a string literal 2012-10-22 22:40:19 +02:00
Colomban Wendling
6c7f69578d Parse C++11 classed enums
Part of #3578557.
2012-10-22 22:39:04 +02:00
Colomban Wendling
f2f22d34ab Parse C++11 enums with type specifier
Part of #3578557.
2012-10-22 22:38:12 +02: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
f04df056cd Fix parsing of C++11 final classes
Closes #3577559.
2012-10-19 21:39:38 +02:00
Colomban Wendling
b626cc93e3 ReStructuredText: fix parsing of titles containing UTF-8 characters
If a title contained multi-byte UTF-8 characters, it wasn't properly
recognized due to the title being longer (in bytes) than the underline.
So, fix the title length computation to properly count the characters,
not the bytes.

Note that this fix only handles ASCII, one-byte charsets and UTF-8, it
won't help with other multi-bytes encodings.  However, the whole parser
expects ASCII-compatible encoding anyway, and in most situations it
will be fed the Geany's UTF-8 buffer.

Closes #3578050.
2012-10-18 17:15:17 +02:00