7950 Commits

Author SHA1 Message Date
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
Frank Lanitz
3748895e32 Merge pull request #504 from philippwiesemann/update-links
Update some links
2015-05-24 10:58:21 +02:00
Philipp Wiesemann
c1533332a7 Update link in translation file
The old link was an empty page.
2015-05-22 23:14:47 +02:00
Philipp Wiesemann
8ffe0467b7 Update link in development documentation
The old link was a 404 page.
2015-05-22 23:11:25 +02:00
Philipp Wiesemann
62157ebbdf Update link in development documentation
The project moved from Google to GitHub.
2015-05-22 23:06:18 +02:00
Colomban Wendling
3e42c9b05b Initial NEWS update to prepare for 1.25 2015-05-21 22:40:32 +02:00
Enrico Tröger
02ca046991 Add src/spawn.c to translatable files to fix 'make check' 2015-05-19 17:42:34 +02:00
Colomban Wendling
40b9a2ba0d Respect filetype.common's wordchars if a filetype doesn't have its own
Use filetype.common's wordchars instead of GEANY_WORDCHARS as default
for filetypes not having their own.  This allows to change the
wordchars for all filetypes at once.

Part of issue #492.
2015-05-19 14:25:40 +02:00
Frank Lanitz
93950a6a7b Merge pull request #500 from fbobraga/master
Fix header of translation file
2015-05-19 13:44:02 +02:00
Felipe Braga
9be6ce81e4 Fixed heade 2015-05-19 07:57:51 -03:00
Jiří Techet
09ee4965f7 Add TERM_PROGRAM to excluded environment variables for VTE
On OS X /etc/bashrc does some Apple-terminal-specific thing:

# Tell the terminal about the working directory at each prompt.
if [ "$TERM_PROGRAM" == "Apple_Terminal" ] && [ -z "$INSIDE_EMACS" ]; then
    update_terminal_cwd() {
        # Identify the directory using a "file:" scheme URL,
        # including the host name to disambiguate local vs.
        # remote connections. Percent-escape spaces.
        local SEARCH=' '
        local REPLACE='%20'
        local PWD_URL="file://$HOSTNAME${PWD//$SEARCH/$REPLACE}"
        printf '\e]7;%s\a' "$PWD_URL"
    }
    PROMPT_COMMAND="update_terminal_cwd; $PROMPT_COMMAND"
fi


This however doesn't work in VTE when Geany is started from the Terminal
application so we get some strange prefix for the prompt. Unset the
TERM_PROGRAM variable so it isn't set to Apple_Terminal when running
inside VTE.
2015-05-19 11:55:40 +02:00
Frank Lanitz
b5eabc5986 Small Update of German translation 2015-05-18 18:27:03 +02:00
Frank Lanitz
9c2d51f920 Merge pull request #498 from fbobraga/master
Updated pt_BR translation
2015-05-18 09:14:37 +02:00
Felipe Braga
2693a7b648 Updated pt_BR translation 2015-05-17 18:44:32 -03:00
Jiří Techet
bd4956b555 Fix corrupted initial prompt
The initial prompt may get corrupted so it looks something like

any/src $ het-vm ~/projects/gea

instead of

techet@techet-vm ~/projects/geany/src $

This is just the initial display problem - when enter is pressed, the
second line already shows correct prompt.

It appears that VTE isn't fully initialized when starting the shell process
and when the shell start is delayed a bit (performed on idle), the prompt
looks correct.
2015-05-17 18:22:32 +02:00
Colomban Wendling
826f6516d3 Merge pull request #441 from zhekov/spawn
Add a spawn module for Geany

Thanks a lot for Dimitar's hard work, commitment and endless patience!

Closes #274, #441, and https://sourceforge.net/p/geany/bugs/943/
Should also fix https://sourceforge.net/p/geany/bugs/898/
2015-05-15 18:54:23 +02:00
Frank Lanitz
cdb7521b9b Update of German translation 2015-05-14 20:34:48 +02:00
Frank Lanitz
48977780c6 Merge pull request #490 from philippwiesemann/fix-typos-messages
Fix typos in messages
2015-05-11 16:48:04 +02:00
Philipp Wiesemann
d665c23a03 Fix typo in message
It was already fixed in source.
2015-05-10 21:36:39 +02:00
Philipp Wiesemann
999e17a5fb Fix typo in messages 2015-05-10 21:30:06 +02:00
Philipp Wiesemann
32ee98da17 Fix typo in message 2015-05-10 21:20:55 +02:00
Frank Lanitz
ece9fb37c7 Merge pull request #489 from philippwiesemann/fix-wrong-po-de
Fix wrong German translations
2015-05-10 06:56:18 +02:00
Philipp Wiesemann
2d5428b09e Add three exclamation marks in German translation 2015-05-09 23:21:12 +02:00