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

Tab title doesn't always follow current Far manager folder #884

Closed
gene-pavlovsky opened this issue Oct 3, 2016 · 14 comments
Closed

Tab title doesn't always follow current Far manager folder #884

gene-pavlovsky opened this issue Oct 3, 2016 · 14 comments
Projects

Comments

@gene-pavlovsky
Copy link

gene-pavlovsky commented Oct 3, 2016

Versions

ConEmu build: 160914 x64
OS version: Windows 7 x64 (build 7601: service pack 1)
Far Manager 3.0.0.4804 x64

Problem description

Tab title sometimes follows folder, sometimes doesn't. On and off.
This happens in Far Manager with Panels tab template set to %c %f (or %c %d).

Steps to reproduce

Far manager

  1. Settings > Far Manager > Tab templates > Panels > Set to %c %f (or %c %d).
  2. Start a Far tab, move around, e.g. enter C:\cygwin64 and it's various subfolders.
  3. The tab title gets updated only sometimes (less than half of the times).

Actual results

The tab title gets updated only sometimes (less than half of the times).

Expected results

The tab title should always follow the current folder.

@gene-pavlovsky
Copy link
Author

Tried to:

  • Reset my ConEmu settings.
  • Reset my Far profile.
  • Downgrade Far to latest stable (v3.0 build 4774 x64)
    Issue is still reproducible (~70-80% of the time the folder is not updated correctly). If I change to a folder and the tab title is not updated, executing any command (e.g. echo) usually updates the tab title - from 1st, 2nd or sometimes 3rd try.

This issue is quite problematic since it means tasks launched with /dir "%CD%" option are often run in the wrong folder.

By contrast, export PROMPT_COMMAND="ConEmuC -StoreCWD; $PROMPT_COMMAND" added to Cygwin bash's PROMPT_COMMAND updates the folder every time without fail. So issue seems to be somewhere between Far and ConEmu.

@gene-pavlovsky
Copy link
Author

What's also interesting is that executing ConEmuC -StoreCWD from Far's command line doesn't reliably update the tab title. But waiting little bit (doing nothing) then pressing an arrow key (up/down), and the title gets updated.

@Maximus5 Maximus5 added this to To Do in Inspection via automation Apr 22, 2018
@Maximus5
Copy link
Owner

Is it reproduced in 180418?

@gene-pavlovsky
Copy link
Author

Just installed 180422.
The problem is reproducible every time.
Whenever I change panels, or enter/exit folder, tab title is not updated. Using a hotkey to start e.g. bash in the current directory (/dir "%CD%" task parameter) starts it in the previous directory. Waiting doesn't help, but if I press any key, or even move the mouse over the tab, it updates. Sometimes I can see some flicker in the tab title (it updates from the previous dir to my home dir (for some reason), then immediately to the current dir).
P.S. Currently using Far 3.0.0.5194

@Maximus5
Copy link
Owner

  1. How you you run Far?
  2. Is ConEmu plugin of proper version is loaded into you Far?

I'm running Far 3.0 build 4949 and CD is detected properly.

@gene-pavlovsky
Copy link
Author

Far task: set "FARHOME=" & "far.exe" /w /p"%ConEmuDir%\Plugins\ConEmu;%FARHOME%\Plugins" "!ConEmuWorkDir!"
Task parameters: /dir "%CD%"

Plugin is loaded, version 18.4.22 (build 1804220), path: C:\Program Files\Far Manager\Plugins\ConEmu\ConEmu.x64.dll

P.S. Windows 7 x64

@gene-pavlovsky
Copy link
Author

Maybe I could try to run ConEmu under a debugger to check things? I have VS Community Edition with C++ and .NET.

@Maximus5
Copy link
Owner

Is ConEmu installed in the C:\Program Files\Far Manager\ folder?

Do you see ConEmu ... items in the F11 menu?

Waiting doesn't help, but if I press any key, or even move the mouse over the tab, it updates.

Every time?

@gene-pavlovsky
Copy link
Author

gene-pavlovsky commented Apr 28, 2018

Yes, yes (ConEmu, ConEmu Background/Panel Views/Underlines), yes.

@Maximus5
Copy link
Owner

So, this looks like a bug in Far Manager - sync call still doesn't work until something comes into Far input queue.

@gene-pavlovsky
Copy link
Author

Would you please report this to Far manager bug tracker? Your explanation would be of better help to them.
Or if you prefer I can file a bug myself but then please tell me some more details :) Thanks

@Maximus5 Maximus5 removed this from To Do in Inspection May 6, 2018
@Maximus5 Maximus5 added this to To Do in ConEmu via automation May 6, 2018
@Maximus5 Maximus5 moved this from To Do to Ready for Testing in ConEmu May 6, 2018
@gene-pavlovsky
Copy link
Author

Tried the latest alpha and there is a definite improvement. It works mostly correct now.
The only noticeable issue is that when changing from C:\some to C:\some\path (for example) sometimes C:\Users\gene is shown for just a moment before the path is updated.

@Maximus5
Copy link
Owner

Maximus5 commented May 7, 2018

I've done whatever possible. There is no way to get panel folders synchronously.

@Maximus5 Maximus5 closed this as completed May 7, 2018
ConEmu automation moved this from Ready for Testing to Done May 7, 2018
@gene-pavlovsky
Copy link
Author

I see. Huge thanks, this little thing was slightly annoying me for ages, it's wonderful to see this finally resolved!

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

No branches or pull requests

2 participants