Ok, I think you are just missing an item for your custom filetypes in ~/.config/geany/filetype_extensions.conf like:
txt=*.txt;
in the [Extensions] section. Geany uses this mapping to associate tags files based on their extension to the configured filetypes.
Regards, Enrico
On 19.10.21 22:45, Rue Sixteen wrote:
Sorry for the late reply. Debug info below.
I am trying to use the tags in txt.txt.tags to show up in n1.txt - which is recognized as txt file but as txt [UTF-8]. I don't know whether that is the problem.
07:19:16: GLib-GIO DEBUG : _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’ 07:19:16: Geany INFO : Geany 1.37.1, en_US.UTF-8 07:19:16: Geany INFO : GTK 3.24.30, GLib 2.70.0 07:19:16: Geany INFO : OS: Manjaro Linux 07:19:16: Geany INFO : System data dir: /usr/share/geany 07:19:16: Geany INFO : User config dir: /home/xxxx/.config/geany 07:19:16: Geany INFO : Loaded GTK+ CSS theme '/usr/share/geany/geany.css' 07:19:16: Geany INFO : Loaded GTK+ CSS theme '/usr/share/geany/geany-3.20.css' 07:19:16: Geany INFO : System plugin path: /usr/lib/geany 07:19:16: Geany INFO : Added filetype JSON (63). 07:19:16: Geany INFO : Added filetype Graphviz (64). 07:19:16: Geany INFO : Added filetype Nim (65). 07:19:16: Geany INFO : Added filetype Swift (66). 07:19:16: Geany INFO : Added filetype Clojure (67). 07:19:16: Geany INFO : Added filetype Groovy (68). 07:19:16: Geany INFO : Added filetype CUDA (69). 07:19:16: Geany INFO : Added filetype Kotlin (70). 07:19:16: Geany INFO : Added filetype Cython (71). 07:19:16: Geany INFO : Added filetype TypeScript (72). 07:19:16: Geany INFO : Added filetype Genie (73). 07:19:16: Geany INFO : Added filetype Scala (74). 07:19:16: Geany INFO : Added filetype Arduino (75). 07:19:16: Geany INFO : Added filetype stf (76). 07:19:16: Geany INFO : Added filetype txt (77). 07:19:16: Geany INFO : Loaded libvte from libvte-2.91.so http://libvte-2.91.so 07:19:16: Geany INFO : Unknown filetype for file '/home/xxxx/.config/geany/tags/stf.stf.tags'. 07:19:16: Geany INFO : Unknown filetype for file '/home/xxxx/.config/geany/tags/txt.txt.tags'. 07:19:16: Geany INFO : /home/xxxx/Documents/n1.txt : txt (UTF-8) 15:41:24: GLib-GIO DEBUG : _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
Thanks
On Sat, Oct 16, 2021 at 6:32 AM Enrico Tröger <enrico.troeger@uvena.de mailto:enrico.troeger@uvena.de> wrote:
There must be something else wrong. If I use the tags file and the custom filetype you provided here, I can successfully load the tags: 13:29:31.561147: Geany INFO : Loaded /tmp/test.txt.tags (txt), 2 symbol(s). Maybe the whole output of Help->Debug Messages could give a hint. Regards, Enrico On 14.10.21 22:48, Rue Sixteen wrote: > That is interesting. > > Below is $USER/.config/geany/filedefs/filetypes.txt.conf > # For complete documentation of this file, please see Geany's main > documentation > [styling] > # Edit these in the colorscheme .conf file instead > default=default > comment=comment > tag=tag > class=class > pseudoclass=string_1 > unknown_pseudoclass=default > unknown_identifier=default > operator=operator > identifier=keyword_2 > doublestring=string_1 > singlestring=string_2 > attribute=attribute > value=value > id=class > identifier2=keyword_2 > variable=identifier_1 > important=error > directive=preprocessor > identifier3=keyword_1 > pseudoelement=string_2 > extended_identifier=keyword_1 > extended_pseudoclass=string_1 > extended_pseudoelement=string_2 > media=parameter > > [keywords] > > [settings] > # default extension used when saving files > extension=txt > tag_parser=COBOL > # MIME type > mime_type=text/plain > > > [indentation] > > > > Thanks > > > On Thu, Oct 14, 2021 at 3:31 PM Enrico Tröger <enrico.troeger@uvena.de <mailto:enrico.troeger@uvena.de> > <mailto:enrico.troeger@uvena.de <mailto:enrico.troeger@uvena.de>>> wrote: > > > I've created a custom filetype named "txt" and saved your posted tags > file and then I could load it successfully. > > So, I assume there is something wrong with your configuration. > Could you post your filetype configuration for "txt"? > > Regards, > Enrico > > > On 14.10.21 22:09, Rue Sixteen wrote: > > Hi Enrico > > > > I do. When I go to the tab I was hoping to get the tags to > autocomplete, > > Document > Set FileType shows txt checked. > > > > Thanks > > > > On Thu, Oct 14, 2021 at 3:02 PM Enrico Tröger > <enrico.troeger@uvena.de <mailto:enrico.troeger@uvena.de> <mailto:enrico.troeger@uvena.de <mailto:enrico.troeger@uvena.de>> > > <mailto:enrico.troeger@uvena.de <mailto:enrico.troeger@uvena.de> > <mailto:enrico.troeger@uvena.de <mailto:enrico.troeger@uvena.de>>>> wrote: > > > > Hi Rue, > > > > > I recently had to reinstall after an SSD death. However > geany is not > > > accepting my tag files. These are the same ones I used for > a long > > time > > > before. They are in pipe format. I tried loading them from > Tools > > > Load > > > Tags. > > > In the status bar below, it says "Could not load tags file > > .....". In > > > the debug message it says "Unknown filetype for file ..." > > > > > > I created a simple file and called it simple.txt.tags and > it has the > > > > do you have any filetype configured with the extensions ".txt"? > > The filename part before ".tags", in your case "txt" need to > match a > > known filetype for Geany. This filetype is used to load the > tags for as > > tags are always bound to filetypes. > > > > > > Regards, > > Enrico > > > > -- > > Get my GPG key from https://www.uvena.de/pub.asc <https://www.uvena.de/pub.asc> > <https://www.uvena.de/pub.asc <https://www.uvena.de/pub.asc>> > > <https://www.uvena.de/pub.asc <https://www.uvena.de/pub.asc> <https://www.uvena.de/pub.asc <https://www.uvena.de/pub.asc>>>