shmuz / far2m

Linux port of FAR2 with FAR3 macro system and extended plugins' API
GNU General Public License v2.0
31 stars 1 forks source link

Context search has incorrect symbol #49

Open Golyshkin opened 10 months ago

Golyshkin commented 10 months ago

Pre-Condition:

  1. System has Russian & English installed languages
  2. Currently set an ENG mode
  3. Opened any folder with existed files

Test Steps:

  1. Press ALT_LEFT for activate context search in file panel
  2. Press tmp symbols

Actual Result:

  1. first russian symbol is typed as showed on the screen

Expected Result:

  1. All symbols SHOULD be according to actual selected language

image

shmuz commented 10 months ago

LEFT+ALT should not activate Quick Search. And it doesn't activate it on my machine. Do you have a macro with key="AltLeft" ? If yes then please show me it.

Golyshkin commented 10 months ago

Yes, you right. AltLeft+Symbols activates a quick search. I meant this one.

shmuz commented 10 months ago

What key combination is used to switch languages?

Golyshkin commented 10 months ago

What key combination is used to switch languages?

SUPER (Window Key) + SPACE

shmuz commented 10 months ago

My system also has English + Russian. I go to / directory (which has tmp subdirectory), Then I repeat your actions and the problem is not reproduced.

Do you have any macros installed? It can be checked by selecting 'Macro Browser' from the Plugins Menu (F11)

Golyshkin commented 10 months ago

image

image

MacroBrowser output below:

image

shmuz commented 10 months ago

Please make a ZIP with all your macro-files and attach it here.

Golyshkin commented 10 months ago

scripts.zip

shmuz commented 10 months ago

Unfortunately, even when I replace my macros with yours the problem is not reproduced. If the current language is English I see tmp in the quick search window If the current language is Russian I see еьз

What is your operating system name and version?

Golyshkin commented 10 months ago

DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS" PRETTY_NAME="Ubuntu 22.04.3 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.3 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy

shmuz commented 10 months ago

I've just tried it on Ubuntu 23.10

No luck, it is not reproduced.

You may try to collect additional info:

  1. how it behaves with far2m in TTY mode (far2m --tty)
  2. try it on another system if it is possible
Golyshkin commented 10 months ago

Thnx. I have tried the --tty option and can confirm that issue is not reproduced with this flag. Further, I have analyzed my {{Far2m.desktop}}

[Desktop Entry] Type=Application Name=far2m \ GenericName=far2m Comment=File and archive manager Exec=env LC_ALL=ru_RU.UTF-8 GDK_BACKEND=x11 /usr/local/bin/far2m TryExec=/usr/local/bin/far2m Terminal=false Categories=Utility;FileManager; Icon=far2m StartupNotify=true

and found that issue happened because Exec=env LC_ALL=ru_RU.UTF-8 GDK_BACKEND=x11 /usr/local/bin/far2m

The correct EXEC string is following Exec=/usr/local/bin/far2m

The both languages ENG & RUS are working fine. Probably I had added this ENV for FAR2M which had some problems with it.

Golyshkin commented 10 months ago

Could you test the Exec=env GDK_BACKEND=x11 /usr/local/bin/far2m I would like to use it and issue can be reproduced!

shmuz commented 10 months ago

I tested it under Mint 21.2 and Ubuntu 23.10 and verified that under the running far2m GDK_BACKEND=x11 The issue is not reproduced.

Golyshkin commented 10 months ago

Its very strange, on my PC with this ENV 100% reproducible...

shmuz commented 10 months ago

The problem can be found on the system where the problem exists. I don't know what I can do if it does not reproduce.

Golyshkin commented 10 months ago

OK, disabled GDK_BACKEND=x11 at current moment

shmuz commented 10 months ago

We may leave this issue open.

shmuz commented 9 months ago

Closing, with any new data it may be reopened.

shmuz commented 9 months ago

Need to be tested under Wayland environment.

shmuz commented 7 months ago

Now I was able to reproduce the issue. I have 2 keyboard layouts defined: English and Russian. The issue does not exist when English is defined as the 1-st layout. But when I set Russian as the 1-st layout the issue appeared. It is probably related to wxWidgets library but upgrading the latter to version 3.2 did not help.

akruphi commented 7 months ago

Очень интересно, что протестил в far2l-GUI (под X11) обратную ситуацию: раскладки English (по умолчанию) + Russian. Делаю Alt+ по английской, ловит русскую: image

Фича внутри общего кода с far2l.

shmuz commented 7 months ago

@akruphi Это поведение правильное, соответствует состоянию опции на картинке внизу.

image

Golyshkin commented 6 months ago

@akruphi Это поведение правильное, соответствует состоянию опции на картинке внизу.

image

Ага, если ее отключить, то первый символ ВООБЩЕ не ловистся ни русский ни английский...

shmuz commented 6 months ago

Ага, если ее отключить, то первый символ ВООБЩЕ не ловистся ни русский ни английский...

Не могу с этим согласиться. Сейчас произвёл проверку на Ubuntu 22.04.

Golyshkin commented 6 months ago

Ага, если ее отключить, то первый символ ВООБЩЕ не ловистся ни русский ни английский...

Не могу с этим согласиться. Сейчас произвёл проверку на Ubuntu 22.04.

А у меня, как всегда, 100% reproducibility...

shmuz commented 2 weeks ago

@Golyshkin Не так давно был коммит, влияющий на отображение символов при Fast Find. Возможно ваша проблема при этом разрешилась, имеет смысл проверить.