[Github-comments] [geany/geany] Fix 1069 (#1445)

Thomas Martitz notifications at xxxxx
Thu Mar 23 21:25:30 UTC 2017


Fixes #1069 by  implementing the suggestions there.

See commit messages for details. tl;dr: the goto-symbols popup will show more of the paths, but as little as possible. The common prefix is stripped and the longest common sub-path is ellipsized.

Example: Assume the popup would show utils.h twice (/home/kugel/geany.git/src/utils.h and /home/kugel/geany.git/build/dest/include/geany/utils.h.

The popup would show:
src/utils.h
build/dest/include/geany/utils.h

Additionally, as per @elextr suggestion and for a frequent use-case of mine, the ellipsis is introduced for long common substrings, which I often have due to having the same code base checked out multiple times (my workflow at work requires this).

So, /home/kugel/checkout_a/path/to/project/src/main.c and /home/kugel/checkout_b/path/to/project/src/main.c shows as:
checkout_a/.../main.c
checkout_b/.../main.c
You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/1445

-- Commit Summary --

  * utils: add functions to process file name list
  * symbols: provide a bit more path information in the goto-symbol popup.
  * gtkdoc: add support for array annotions
  * api: export new utils_strv_shorten_file_list() function

-- File Changes --

    M doc/Doxyfile.in (2)
    M scripts/gen-api-gtkdoc.py (7)
    M src/plugindata.h (2)
    M src/symbols.c (13)
    M src/utils.c (193)
    M src/utils.h (2)

-- Patch Links --

https://github.com/geany/geany/pull/1445.patch
https://github.com/geany/geany/pull/1445.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1445
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170323/258dd9a5/attachment.html>


More information about the Github-comments mailing list