Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to wrap searching / replacing around the document #2887

Closed
vsl7 opened this issue Sep 4, 2021 · 3 comments
Closed

Option to wrap searching / replacing around the document #2887

vsl7 opened this issue Sep 4, 2021 · 3 comments

Comments

@vsl7
Copy link

vsl7 commented Sep 4, 2021

It would be better to add to the search and replace dialog an option whether to wrap around the document (continue from the beginning when the end is reached and vice versa). Asking it each time is inconvenient and makes Geany unusable.

@eht16
Copy link
Member

eht16 commented Sep 4, 2021

We already got that feature: enable "Always wrap search" in the preferences dialog.

geany_always_wrap_search

@eht16 eht16 closed this as completed Sep 4, 2021
@vsl7
Copy link
Author

vsl7 commented Sep 4, 2021

@eht16 That’s right. I was looking through all settings and didn’t recognize this option because of its incorrect Russian translation: “Всегда искать с начала файла”. Correct would be “Зацикливать поиск по документу”. Another problem is that there is no obvious way to change UI language in Geany.

@elextr
Copy link
Member

elextr commented Sep 4, 2021

The developers of the GTK GUI library Geany uses (and indeed the C language it uses) have in their wisdom decided that programs must always follow the locale set by the LANG environment variable and do not allow program control. The concept of wanting, for example, an IDE in English to match the programming language, not the users local dialect is not catered for. Blame the ISO C folks. [end rant]

Therefore you need to set the LANG environment variable before you run Geany. So on Linux you run Geany with:

LANG=en_GB.UTF-8 geany

I note that the new GTK4 version allows that hard coded automatic to be turned off so the program can set its language to something different to the system setting. So after somebody made the (major) patches to support GTK4 it might be possible to have a setting in Geany, although it would probably need a restart to take effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants