Re: [Github-comments] [geany/geany-plugins] GeanyLua: Update glspi_sci.h (PR #1123)
> But currently filetypes_detect_from_extension is not a prt of Geany API. Maybe use `filetypes_lookup_by_name()` instead of by extension? -- 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-plugins/pull/1123#issuecomment-950006408
Re: [Github-comments] [geany/geany-plugins] Update GeanyLua for Scintilla 5 (#1118)
[GeanyLua: Update glspi_sci.h](https://github.com/geany/geany-plugins/pull/1123) will fix it. -- 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-plugins/issues/1118#issuecomment-949699899
Re: [Github-comments] [geany/geany-plugins] GeanyLua: Update glspi_sci.h (PR #1123)
@elextr I think, all ```SCI_*LEXER*``` are not really needed in this plugin (so they can stay in this list and no more), also you wrote > You should not set the lexer directly, set the Geany filetype instead. [here](https://github.com/geany/geany-plugins/issues/646). Now we can get the current filetype ```lua local finfo = geany.fileinfo() if finfo ~= nil then geany.message('Current filetype is "' .. finfo.type .. '": ' .. finfo.desc) end ``` and it may be useful to change the current filetype: something like ```geany.settype(".cmake")``` with ```c /* Change the current file type by the specified file extension */ static gint glspi_set_filetype(lua_State* L) { GeanyDocument *doc=NULL; GeanyFiletype *ft=NULL; const gchar *ftn=NULL; if (lua_gettop(L)==1){ if (!lua_isstring(L, 1)) { return FAIL_STRING_ARG(1); } doc = document_get_current(); if (!(doc && doc->is_valid)) { return 0; } ftn=lua_tostring(L, 1); if ('\0' == ftn[0]) { return 0; } ft=filetypes_detect_from_extension(ftn); if (ft != NULL){ document_set_filetype(doc, ft); return 1; } } return 0; } ``` in ```glspi_doc.c```. But currently ```filetypes_detect_from_extension``` is not a prt of Geany API. -- 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-plugins/pull/1123#issuecomment-949600361
Re: [Github-comments] [geany/geany] Window minimal width 909 (Issue #2950)
Some of the items like "File, Edit" are frequently used. But we may not need "Projects, Build, Tools, Help" unless we are dealing with code. If 909 is determined by the menus width, then the best resolution is probably to have the options of hiding some of these menu items. Also, I checked ```geany.conf``` and ```geany.css``` and there does not seem to be a convenient way to resolve the problem. (Reducing the font size will prevent me from smoothly using "File", "Edit", etc.) -- 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/2950#issuecomment-949388294
Re: [Github-comments] [geany/geany] Window minimal width 909 (Issue #2950)
Here I get `program specified minimum size: 455 by 108`. The 455 seems to be set by the width of the menu as the sidebar and edit widget can both be partly hidden but the menu does not appear to allow that. The menu is totally controlled by the GTK theme, not by Geany, maybe you can do something about it if you tweak the theme using geany.css, reducing the font size or spacing or allowing it to be scrollable (if possible). -- 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/2950#issuecomment-949370197
[Github-comments] [geany/geany] Window minimal width 909 (Issue #2950)
Using ```xprop``` on any geany window (on Arch Linux latest version), I see the following: ``` _NORMAL_HINTS(WM_SIZE_HINTS): program specified location: 0, 0 program specified minimum size: 909 by 53 program specified base size: 0 by 0 window gravity: NorthWest ``` The number 909 by 53 regardless of my monitor resolution and it is geany rather than X11 that gives such figures. The numbers do not change whether symbol lists and line numbers are displayed or not. Is it possible to somehow reduce the number 909? (e.g. on a laptop with 1920 width, I can only afford 400-500 width for geany and the rest has to be given to a browser window) -- 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/2950