7922 Commits

Author SHA1 Message Date
Matthew Brush
3a8ef62794 Fix GLib version number missed in last bump (oops) 2015-06-19 17:12:53 -07:00
Enrico Tröger
3b1f20037b Merge pull request #291 from bittner/master
Autodetect .bashrc, .bash_aliases, and the like
2015-06-18 23:11:32 +02:00
Colomban Wendling
f427a3a6e1 Merge pull request #455 from techee/filebrowser_icons
Show icons corresponding to MIME types in the file browser plugin
2015-06-18 16:49:37 +02:00
Colomban Wendling
f715f8a35c Merge pull request #425 from b4n/remove-some-unused-sciwrappers
Remove a few unused Scintilla wrappers functions
2015-06-18 16:22:25 +02:00
Colomban Wendling
67b464a586 GTK: Fix runtime completion popup warning
GtkScrolledWindow in GTK 3.16 might have a minimum and natural height
of 0 if GTK_OVERLAY_SCROLLING is enabled (which is the default), so we
need to fix our overridden minimal height to never be greater than the
natural height.

Do that by only changing the minimal height if it is greater than what
we want.

I don't know why we didn't use to set 0 here, but it might be that a
height of 0 caused problems on older GTK versions, so keep 1 to be sure.

X-Scintilla-Commit-ID: e9f9c964236a6b740f75d09a8b0ac76e5d6dd09f
2015-06-18 01:37:00 +02:00
Peter Bittner
3ad1627249 Autodetect .bashrc, .bash_aliases, and the like
Autodetect /etc/bash_completion (and the like)

Splitted up autodetection patterns for Bash

This will match:

- `*.bash` (any manufactured Bash scripts)
- `~/.bashrc` (hidden Bash configuration in your home directory)
- `~/.bash_*` (partials included by bashrc, e.g. `.bash_aliases`,  `.bash_history`,  `.bash_logout`)
- `/etc/bash.bashrc` (global Bash configuration)
- `/etc/bash_completion` (and potentially any other `/etc/bash_*` file)
2015-06-18 00:21:40 +02:00
Jiří Techet
358758c9f8 Show icons corresponding to MIME types in the file browser plugin 2015-06-16 15:43:45 +02:00
Colomban Wendling
f86b39c7cb Merge pull request #491 from techee/ft_config
Add filetype configuration menu entries
2015-06-15 21:39:22 +02:00
Jiří Techet
ecc4e0285a Add filetype configuration menu entries
This adds a "Filetype Configuration" under Tools->Configuration Files
with all filetype configuration files (grouped by language type).

This patch mostly reuses the stuff we already have in Geany - the menu
creation code from Document->Set Filetype, file creation in the .config
directory if it doesn't exist (similarly to filetypes.common) and config
file reloading when the file gets updated.
2015-06-15 17:14:00 +02:00
Colomban Wendling
1306bc52d8 Merge pull request #506 from techee/msgwin_resize
Don't resize message window when changing Geany's window height
2015-06-15 15:39:24 +02:00
Colomban Wendling
6f60de3656 Merge pull request #514 from techee/linear_tag_remove
Add linear tag remove path for cases where not many files are open
2015-06-15 14:56:07 +02:00
Colomban Wendling
48ea3e6f85 Merge pull request #515 from b4n/symbol-icons-fixes
Fix unreffing NULL icons when generating tags
2015-06-15 14:29:12 +02:00
Colomban Wendling
733b10efc4 Merge branch 'universal-ctags-fixes'
Import some various parser fixes from Universal CTags.
2015-06-15 00:10:09 +02:00
Colomban Wendling
cdd07e15f5 Fix unreffing NULL icons when generating tags 2015-06-15 00:09:13 +02:00
Colomban Wendling
195d2e3a77 Don't try and query the theme when we don't have a screen
This happens when generating tags.
2015-06-15 00:09:12 +02:00
Colomban Wendling
23eff5cadf Over-engineer symbol tree icon cache a little
This will get useful to fix problems when generating tags.
2015-06-15 00:09:12 +02:00
Colomban Wendling
882687ec37 C#: Don't ignore the character following an '@'
The character following an '@' was dropped if it didn't start a string
literal.

This could lead to unexpected problems if '@' was valid in other
situations.

X-Universal-CTags-Commit-ID: 2e62f475af1db08850447de46f56db14ce99d2eb
2015-06-14 18:27:17 +02:00
Colomban Wendling
dbbc042786 c family: Add support for digraphs
See http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf 6.4.6§3.

Note: This is not exactly the upstream Universal CTags commit because
it depends on another change for adding the `enter` label, which was
then included here.

X-Universal-CTags-Commit-ID: 3b3b60c7664a321a31ec87de336fc6bda90c405e
2015-06-14 18:25:38 +02:00
Colomban Wendling
b737f031ca c family: Fix trigraph handling
X-Universal-CTags-Commit-ID: d6d1a0f2b90a600bdec9cd6ba964ee69382743e4
2015-06-14 18:23:29 +02:00
Colomban Wendling
b975c2652d read: Allow to unget up to 3 characters
Some parsers need to unget more than one characters, so add support for
this.

X-Universal-CTags-Commit-ID: 956af0555d3a8ef33304c5ae6ed873f22b4e4284
2015-06-14 17:57:18 +02:00
Jiří Techet
e26c9ba2ce Add linear tag remove path for cases where not many files are open
When tested with 200000 LOC python file (created by making many copies
of scripts/create_py_tags.py), the tm_tags_remove_file_tags() function
takes about 50% of the CPU time when only this file is open. After adding
the linear path to tm_tags_remove_file_tags() it takes just about 2%. See
the comment in the patch for more details.
2015-06-14 17:52:24 +02:00
Colomban Wendling
944bffb967 json: Fix handling of tags containing a dot
X-Universal-CTags-Commit-ID: 7ae28a3d8a7ad5f8a9d6399a4e357fcf19ad2b2e
2015-06-14 17:29:04 +02:00
Colomban Wendling
f30b72d91e vstring: Add vStringTruncate()
Add API to truncate a vString to a certain length. This doesn't support
growing the string, only shrinking it.

X-Universal-CTags-Commit-ID: 4e3d9edf2e7a8a476ff97bc678e71c3919b960f9
2015-06-14 17:25:33 +02:00
Colomban Wendling
d75598cc48 python: Fix resetting scope on anonymous blocks
The previous fix, coming from [CTags bug #1988026], was incorrect if
the parent was not a root-level element, as it checked the level name
(unqualified) against the parent name (qualified).

However, there is no need to check the level name, all what counts is
the indentation level itself: if it's smaller than an existing level,
it ends it.

This fixes [CTags bug #356].

[CTags bug #1988026]: https://sourceforge.net/p/ctags/bugs/227/
[CTags bug #356]: https://sourceforge.net/p/ctags/bugs/356/

X-Universal-CTags-Commit-ID: ab91e6e1ae84b80870a1e8712fc7f3133e4b5542
2015-06-14 17:13:46 +02:00
Colomban Wendling
935c389f28 Merge pull request #509 from techee/child_icon + followup
Cache symbol tree icons
2015-06-12 19:06:41 +02:00
Colomban Wendling
6792bf0db7 Simplify some code a little 2015-06-12 18:54:34 +02:00
Colomban Wendling
9458d5cfe6 Release symbols icons when quitting 2015-06-12 18:48:29 +02:00
Jiří Techet
7006bdfd8c Sync the fold_changed() implementation with SciTE
SciTE added the SCI_GETALLLINESVISIBLE check in revision
8dc4127cc8d76ecdf988928ac34e79955c09bda4:

"Minimize cost of processing fold level changes to ensure visibility for
the common case where the whole document is already visible."

When nothing is folded, this improves the performance considerably which
is visible e.g. when pasting larger amounts of text.

Closes #507.
2015-06-12 18:18:21 +02:00
Jiří Techet
62e6de9f10 Cache symbol tree icons
When profiling Geany I/O activity, there are lots of I/O operations happening
when just typing in the editor caused by the updates of the symbol tree
and loading the icon files.

In addition, in the case of tag_other the leaves of the tree use
classviewer-var instead of the parent icon (e.g. with enums). In this case
the icon is loaded from the disk every time it's requested which takes
about 70% of the tree creation time when the tree consists only of such
nodes.

To fix these problems load the icons once and return the loaded icons when
requested instead of reloading them from the disk all the time.
2015-06-11 12:42:28 +02:00
Enrico Tröger
ccec1fe29a Merge pull request #414 from eht16/plugin_manager_usability
Plugin manager usability improvements
2015-06-05 18:45:56 +02:00
Jiří Techet
65c34bd37e Improved search for the plugin manager
Search in name, description, author fields and show all results
which contain all the words from the search query.
Search plugins also by filename
2015-06-05 18:44:04 +02:00
Colomban Wendling
e38b803ccd stash: Fix invalid free in sync from object property 2015-06-03 14:45:29 +02:00
Colomban Wendling
94389788da stash: Fix sync to object property 2015-06-03 14:43:39 +02:00
Jiří Techet
8eaaf723b8 Don't resize message window when changing Geany's window height
At the moment the message window is set to resize when the height of the
main window changes. This is a bit annoying when the message window size
is set to fit all the tabs exactly and when shrinking the window, the
tabs don't fit the shrinked message window.

Set the flag not to resize the notebook_info notebook (similar thing is
already done with the sidebar in the horizontal direction so no change
needed there).

Works fine also when the message window is set to be on the right side.
2015-05-28 21:21:54 +02:00
Colomban Wendling
3c9e545974 Merge pull request #501 from b4n/wordchars-default
Respect filetype.common's wordchars if a filetype doesn't have its own
2015-05-28 17:55:46 +02:00
Colomban Wendling
97a431faf2 Update the documentation on wordchars 2015-05-28 17:55:21 +02:00
Colomban Wendling
f1c98e5423 Merge pull request #481 from techee/go
Go ctags parser, Scintilla lexer and Geany support improvements

Closes #238.
2015-05-28 16:50:01 +02:00
Jiří Techet
dde13c7a16 Syntax-highlight go types 2015-05-28 16:27:32 +02:00
Jiří Techet
4665034cb2 Update go keywords
error was missing in secondary keywords (also sorted alphabetically now)

Add true false iota nil into primary keywords which, while not strictly
speaking keywords (they are predeclared identifiers), are nice to have
highlighted.
2015-05-28 16:27:32 +02:00
Jiří Techet
a6e7893c10 Enable backquoted strings for go in cpp lexer
In addition, disable (or make less visible) syntax highlighting not related
to go.
2015-05-28 16:27:32 +02:00
Jiří Techet
95368425f4 Use pascal-like function prototypes for go in symbol tree 2015-05-28 16:27:32 +02:00
Jiří Techet
206379a272 Parse return value of go functions
Unfortunately varType is Geany-only so this patch cannot be ported to ctags.

The removal of the extra { read is not the most elegant thing but making
skipType() aware of the argList collection complicates things too much.
2015-05-28 16:27:23 +02:00
Jiří Techet
e973841cec Show go interfaces, structs and struct members in symbol tree 2015-05-28 16:22:54 +02:00
Jiří Techet
e433490672 Sync go parser with fishman-ctags
New features include:
* struct/interface detection
* struct member parsing
* function prototype parsing
2015-05-28 16:22:54 +02:00
Frank Lanitz
b5702f03dc Update of German translation 2015-05-27 21:59:27 +02:00
Colomban Wendling
e12fa5d270 Merge pull request #456 from techee/osx_vte_improvements
Osx vte improvements
2015-05-26 22:49:58 +02:00
Colomban Wendling
de8470dc56 Merge pull request #499 from techee/vte_prompt
VTE prompt fixes
2015-05-26 22:37:34 +02:00
Colomban Wendling
4b9f816a03 Update NEWS
Note that although the last Scintilla update was a pre-release update,
the final 3.5.6 release has no changes.
2015-05-26 13:26:52 +02:00
Colomban Wendling
9b98d55def Update Scintilla to 3.5.6 pre-release
Fixes broken auto-completion popup on Windows.
2015-05-24 18:44:37 +02:00
Colomban Wendling
19da68e1d0 Fix a small typo in NEWS 2015-05-24 18:32:09 +02:00