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

%F always substitutes path of active object in previously active tab #2866

Open
FMakosza opened this issue Jun 26, 2023 · 0 comments
Open

%F always substitutes path of active object in previously active tab #2866

FMakosza opened this issue Jun 26, 2023 · 0 comments
Labels
Milestone

Comments

@FMakosza
Copy link

Runtime Environment

  • Operating system and version: Arch Linux (kernel 6.3.9) and Ubuntu 22.04.2
  • Terminal emulator and version: Yakuake 23.04.2 and tmux 3.2a
  • Python version: Python 3.11.3 and Python 3.10.6
  • Ranger version/commit: 1.9.3 (master also tested)
  • Locale: en_GB.UTF-8

Current Behavior

If multiple tabs are open, %F always resolves to the full path of the object selected in the previous active tab. %f works as expected.

Expected Behavior

%F resolves to the full path of the object selected in the active tab.

Context

I'm using a custom command to copy the full path of an object to a tmux buffer, shell echo %F | tr -d '\n' | tmux load-buffer -. This command works as expected when only using one tab, but has unexpected behaviour as soon as more tabs are created.

Steps to reproduce

  1. Run ranger and create a new tab
  2. Switch to a new tab and navigate to a different file
  3. Run :shell echo %F
  4. Exit ranger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants