[Github-comments] [geany/geany] Too Many Filetypes in Open Dropdown! How can I shorten list? (#2296)

LarsGit223 notifications at xxxxx
Mon Sep 23 06:16:07 UTC 2019


@RufusVS: the open dialog is created in the function ```create_open_file_dialog()```. It calls the function ```filetypes_create_file_filter()``` to create the filter and that function is filling the filter with all filetypes from the list ```filetypes_by_title```. This is filled on startup of Geany in the function ```filetypes_init()``` which calls ```filetypes_init_types()```. Then first built-in filetypes are set in function ```init_builtin_filetypes()```. And then filetypes are added from the application data directory and the config directory. On my Ubuntu machine these are ```/usr/local/share/geany/filedefs``` and ```/home/username/.config/geany/filedefs```.

So, if I understood it right you would have to remove some files from the directory as you did **AND** shorten the list in ```init_builtin_filetypes()```and re-build Geany. Also notice that if you remove some files in the directories it will only have an effect after re-starting Geany.

But as the others wrote the list should be scrollable and it seems to be some kind of Gtk issue.

-- 
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/2296#issuecomment-533971546
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190922/1d8eb5a9/attachment.html>


More information about the Github-comments mailing list