For languages like Markdown tag manager is used to display an outline of the 
document in the sidebar but the generated tags aren't really meant for 
autocompletion where they don't make much sense. Without this patch typing 
a word from e.g. a heading of markdown invokes the autocompletion popup 
anywhere in the edited text which is quite annoying.

Apart from languages that use tags for the sidebar outline (ABC, asciidoc, 
bibtex, ini/conf, diff, docbook, latex, markdown, rest, txt2tags, HTML), 
there's also JSON where autocompletion doesn't really work because tags 
are generated for json strings such as keys but autocompletion doesn't work 
inside strings currently so when one types ", the following string 
doesn't get autocompleted.

This is how the current behavior looks like for LaTeX:

<img width="565" alt="Screenshot 2023-10-04 at 23 17 44" 
src="https://github.com/geany/geany/assets/713965/2c023c53-9f6c-4448-8125-9c5f4ed89baf">

and this is for Markdown:

<img width="601" alt="Screenshot 2023-10-04 at 23 13 55" 
src="https://github.com/geany/geany/assets/713965/c24056e5-fa59-444d-b280-3059178f1c4d">

I'm not sure if it's related to the changes made in this release or if 
it behaved this way before too but since it's quite annoying and the patch 
is hopefully a low-risk one, it could be worth considering for Geany 2.0.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Disable autocompletion for most non-programming/non-scripting languages

-- File Changes --

    M src/editor.c (5)
    M src/tagmanager/tm_parser.c (23)
    M src/tagmanager/tm_parser.h (2)

-- Patch Links --

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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3575
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/[email protected]>

Reply via email to