[Github-comments] [geany/geany] items redundantly prefixed with the current filename in symbols panel (#2650)

Colomban Wendling notifications at xxxxx
Mon Nov 9 14:29:54 UTC 2020


This also happens with 1.36.  The reason seems that modules are not shown in the symbols tree, and then the hierarchy is displayed directly in the tag name.

Could you try the patch below and see if it's better for you?
```diff
diff --git a/src/symbols.c b/src/symbols.c
index a54b6ef4c..a6192f04b 100644
--- a/src/symbols.c
+++ b/src/symbols.c
@@ -818,9 +818,10 @@ static void add_top_level_items(GeanyDocument *doc)
 			break;
 		}
 		case GEANY_FILETYPES_D:
+		case GEANY_FILETYPES_ERLANG:
 		default:
 		{
-			if (ft_id == GEANY_FILETYPES_D)
+			if (ft_id == GEANY_FILETYPES_D || ft_id == GEANY_FILETYPES_ERLANG)
 				tag_list_add_groups(tag_store,
 					&(tv_iters.tag_namespace), _("Module"), ICON_NONE, NULL);
 			else
diff --git a/src/tagmanager/tm_parser.c b/src/tagmanager/tm_parser.c
index 7d008e5f6..0edf5c92b 100644
--- a/src/tagmanager/tm_parser.c
+++ b/src/tagmanager/tm_parser.c
@@ -194,7 +194,7 @@ static TMParserMapEntry map_DOCBOOK[] = {
 static TMParserMapEntry map_ERLANG[] = {
 	{'d', tm_tag_macro_t},
 	{'f', tm_tag_function_t},
-	{'m', tm_tag_undef_t},
+	{'m', tm_tag_namespace_t},
 	{'r', tm_tag_struct_t},
 	{'t', tm_tag_typedef_t},
 };
```
Gives me (with *transitive.erl* from http://www1.erlang.org/examples/examples-2.0.html):
![Erlang symbols list](https://user-images.githubusercontent.com/793526/98553719-35f08900-22a0-11eb-9fd4-82f12936d995.png)


-- 
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/issues/2650#issuecomment-724048489
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20201109/9fba4633/attachment-0001.htm>


More information about the Github-comments mailing list