9166 Commits

Author SHA1 Message Date
Thomas Martitz
724e7886de Changes for review comments
- Notably the utils_strv_{find_common_prefix,find_lcs,shorten_file_list}
  now take -1 for num to mean to compute the array length.

- utils_strv_find_common_prefix implementation simplified.

- if num == 0 is passed to the above functions the passed strv is not
  dereferenced (so could be NULL).
2018-12-03 22:33:59 +01:00
Thomas Martitz
e0a2c6277a Refactoring and review comments
- Fix lots of compiler warnings
- Fix a bug where a long base name would prevent ellipsizing the longest
  common substring
- rewrite utils_strv_shorten_file_list to be more clear (hopefully)
- use g_strlcpy
- optimize case where the longest common substring need not be searched for
2018-12-03 22:33:59 +01:00
Thomas Martitz
fb9673eb61 api: pass gtkdoc annotation parameter as-is
The array annotation has many possible parameters, this avoids having a Doxygen
command for each one.

Luckily you can define Doxygen commands multiple times with different a number
of parameters each.
2018-12-03 22:33:59 +01:00
Thomas Martitz
7fdd360b85 Fix one oops and a couple of mistakes in comments, found by review. 2018-12-03 22:33:59 +01:00
Thomas Martitz
c05837055b api: export new utils_strv_shorten_file_list() function
Since I based the algorithm of the above function on code in one of my python
plugins, I would like to remove the implementation in my plugin and call
Geany's function.
2018-12-03 22:33:59 +01:00
Thomas Martitz
3512f6cc74 gtkdoc: add support for array annotions
We can now use @array and @arraylen{param} annotations for arrays that
will make it to the generated gtkdoc header.

g-ir-scanner cannot properly parse 'gchar **' parameters without this.
2018-12-03 21:51:01 +01:00
Thomas Martitz
b116a66862 symbols: provide a bit more path information in the goto-symbol popup.
From #1069:
> At the moment if symbols of the same name are defined in identically named
> files, it's hard to distinguish which file is which because there's no path
> in the popup.

> The popup should show part of the path until a directory where the paths
> differ so it's possible to distinguish the different files. At the same time
> there should probably be some top limit for the length of the paths as they
> can make the popup too wide.

This addresses the above by showing more of the file's paths but still try
to make it as short as possible. The file list is processed by the new
utils_strv_shorten_file_list(), as a result the popup will list files with
the common prefix stripped and the longest common sub-path ellipsized.

As a result, the file list shows enough of the path to make them unique but
still is still very short and doesn't make the dialog too wide.

Fixes #1069.
2018-12-03 21:51:01 +01:00
Thomas Martitz
4956b05d1e utils: add functions to process file name list
1) utils_strv_find_common_prefix
Locates the common prefix.

2) utils_strv_find_lcs
Finds the longest common substring.

3) utils_strv_shorten_file_list
Transforms the file list by removing the common prefix and ellipsizing
the longest common substring. This is intended to be used for fixing #1069.

Although only 3 will be used immediately, I separated the functionality, so
that the other two function can be used on their own.
2018-12-03 21:51:01 +01:00
Colomban Wendling
2fdf45730a Update NEWS for upcoming release 2018-11-30 17:47:30 +01:00
Colomban Wendling
8e6e3037ba Always show icons in the go to symbol popup
This uses a menu and is thus subject to the menu icons visibility
setting, but here it should reflect the view from the symbols list,
and thus show the icon in all cases.
2018-11-26 15:32:26 +01:00
Enrico Tröger
10252bea6e
Merge pull request #1932 from eht16/issue1912_change_batch_comment_to_rem
Use REM as single comment marker for Batch files
2018-11-25 15:04:57 +01:00
Enrico Tröger
9cec0a8fc4
Merge pull request #1992 from eht16/issue692_windows_dpi_aware
Windows: Enable DPI-aware mode in Windows Assembly Manifest
2018-11-25 14:53:51 +01:00
Enrico Tröger
09d17e8646
Merge pull request #1970 from dmaphy/master
Update std.php.tags to be current with PHP 7.2
2018-11-25 14:48:32 +01:00
elextr
653b06e07a
Fix line breaking with multibyte characters (#1960)
Fixes #1958 

Also replace GDK_space with ASCII space, its searching for that, not the keycode (which just happens to have the same value, lucky).
2018-11-18 19:29:54 +10:00
Frank Lanitz
7956fd5b3a Update of Traditional Chinese translation 2018-11-18 10:15:44 +01:00
Enrico Tröger
2a0e52afa7 Windows: Enable DPI-aware mode in Windows Assembly Manifest
This should solve display issues with HiDPI displays.
Closes #692.
2018-11-14 23:25:50 +01:00
Frank Lanitz
193430f497 Update NEWS for 1.34 with translation changes done since 1.33 2018-11-14 17:23:09 +01:00
Frank Lanitz
e01afc6ce9 Fix typo in Russian translation 2018-11-14 08:03:35 +01:00
Colomban Wendling
fb39f67f90 Merge pull request #1991 from b4n/tm-lookup-includes-cleaup
Process files in the order they appear on the command line when
generating tags file, instead of a more or less random order.

Closes #1989.
2018-11-13 08:38:45 +01:00
Colomban Wendling
8b68c5a2ca Add a test for the processing order when generating a tags file 2018-11-12 11:47:25 +01:00
Colomban Wendling
939dab08e0 Process files in the order they are listed when generating a tags file 2018-11-12 11:33:58 +01:00
Colomban Wendling
fc6a9bb9cb tm: Cleanup include lookup
Don't use the files inode as the hash.  Although it looks like a good
idea for de-duplicating links as well, it has several issues, including
non-uniqueness of inodes across file systems.
The way it was done hashing the inode but comparing the file name
string pointers also made the hash mostly irrelevant, as it just stored
filenames sharing the same inode in the same hash bucket but without
actually doing any de-duplication, making the whole thing a convoluted
way of converting to a list.

Instead, hash and compare the filenames themselves, which, even though
it doesn't handle links de-duplication, is better than the
non-functional previous code.

Also, directly build the list and only use the hash table as a way for
checking for duplicates, which is both faster and gives a stable
output.
2018-11-12 10:22:29 +01:00
Dmytro Semenchenko
97547edb52 Update uk.po (#1976)
Delete Fuzzy flags after https://github.com/geany/geany/pull/1968
2018-10-21 01:20:49 +02:00
pmraps
0f9d00c201 minor typo (#1980) 2018-10-21 01:19:46 +02:00
Dominic Hopf
a00471f50f Update std.php.tags to be current with PHP 7.2 2018-10-07 12:02:58 +02:00
Dmytro Semenchenko
719305c5b1 Update uk.po (#1968) 2018-10-03 18:25:27 +02:00
Frank Lanitz
61756967fb Update of Russian translation 2018-10-02 08:41:36 +02:00
Frank Lanitz
749c409b6f Small update of Russian translation 2018-09-30 21:32:55 +02:00
Frank Lanitz
4a47a7dee9 Update of Chinese Simplified translation 2018-09-29 10:17:54 +02:00
Frank Lanitz
7208f3c12c Small update of German translation 2018-09-24 22:18:38 +02:00
Colomban Wendling
c415d1d19d Merge pull request #1931 from eht16/issue1930_fix_gtk3_bundle_download
Update link to GTK+3 bundle for test builds to self-hosted version
2018-09-21 11:16:26 +02:00
Colomban Wendling
0b75601ac8 Merge pull request #1914 from b4n/scintilla/update-3-10-0
Update Scintilla to version 3.10.0

Fixes #1421.
2018-09-19 22:22:24 +02:00
Enrico Tröger
9ecabc20f0 Use REM as single comment marker for Batch files
REM seems to be the standard comment marker while "::" is rather
deprecated.

Closes #1912.
2018-08-26 12:48:17 +02:00
Enrico Tröger
a098fa847b Update link to GTK+3 bundle for test builds to self-hosted version
The host win32builder.gnome.org seems dead and so host the GTK+3 bundle
we use to test builds for Windows cross-compilation on our own.
2018-08-26 09:52:42 +02:00
Frank Lanitz
a7599c5d06 Update of Danish translation 2018-08-20 19:09:53 +02:00
Enrico Tröger
60621434c9 Windows: Update indirect dependencies for bundle creation
Pango now requires fribidi, so we need to install it.
Update the download URL for UnxUtils.
Remove unnecessary cmake files after installation.
2018-08-19 23:32:02 +02:00
Enrico Tröger
3d280fef46
Merge pull request #1894 from hroncok/patch-1
Update Python identifiers with Python 3.7
2018-08-19 16:21:09 +02:00
Colomban Wendling
3f20ad363a Don't beep if there is no next snippet cursor
Now the keybinding can be overridden (e.g. using Tab for it as well as
normal behavior), beeping when there is no next cursor is more annoying
than useful.

Part of #1554.
2018-08-04 16:23:09 +02:00
Colomban Wendling
ea47c6c713 Update Diff styles for new Scintilla version
The new styles are for "diff of a diff", e.g. lines starting with `++`,
`+-`, `-+` and `--`.  Those are currently mapped conservatively keeping
the previous display behavior, until we have good style matches for
them.
2018-08-01 14:53:30 +02:00
Colomban Wendling
3fa7576e13 Update Scintilla to version 3.10.0
Scintilla 3.7.6/4.0.0 deprecated `SCE_*STYLEBITS*` and moved it to
deprecated features that require a build-time flag to be available.

Thus, drop use of those (as they are now no-ops anyway) and bump the
ABI (so plugins depending on those don't build mistakenly load) and API
(so a developer can guard use of those if wanted) version accordingly.
2018-08-01 14:51:52 +02:00
Colomban Wendling
958deb55fe Add a few extra hints in the Scintilla update script 2018-08-01 14:41:00 +02:00
Salvatore Manfredi
0c658c6a32 Fix incorrect translation (#1905)
These two strings have probably been translated with a generic online tool which lacks of contextual translation
2018-07-25 21:54:24 +02:00
LarsGit223
63eaf257de keybindings: Added missing "Strip Trailing Spaces" (#1806)
Fixes #395.
2018-07-16 07:53:01 +10:00
Miro Hrončok
3182ed5e03
Update Python identifiers with Python 3.7
Fixes https://github.com/geany/geany/issues/1351
2018-07-06 22:16:44 +02:00
Balázs Meskó
935c16ea25 Update Hungarian translation (#1880) 2018-06-18 06:47:26 +02:00
Colomban Wendling
8cdf1d1ee8 Make a local function static 2018-06-15 23:08:54 +02:00
Deimos715
592c68b123 Update some links to HTTPS
See also b10b2a716784d7fa3fd953ebde55982c39878313 (PR #1840)

Closes #1868
2018-06-02 15:02:14 -07:00
Colomban Wendling
b778e4b56f Merge pull request #1843 from b4n/smooth-scroll-bug
Fix horizontal and page scroll on GTK3
2018-05-26 12:17:11 -04:00
Jiří Techet
38a0e4f5b0 Allow plugins to process keypress events before Geany (#1829)
In addition, the signal allows plugins swallow the event so it's not
processed by Geany.
2018-05-22 09:35:44 +10:00
Wuerstchen
07643499cd Update de.po (#1858)
Small typo (grammar)
2018-05-18 00:19:18 +02:00