Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FM: don't expand paths in group_paths_by_dirname (#3118)#3142

Open
qrvd wants to merge 1 commit intoranger:masterfrom
qrvd:trash-issue-3118
Open

FM: don't expand paths in group_paths_by_dirname (#3118)#3142
qrvd wants to merge 1 commit intoranger:masterfrom
qrvd:trash-issue-3118

Conversation

@qrvd
Copy link
Contributor

@qrvd qrvd commented Oct 16, 2025

ISSUE TYPE

x Bug fix

  • Improvement/feature implementation
  • Breaking changes

RUNTIME ENVIRONMENT

  • Operating system and version:
  • Terminal emulator and version: Tilix 1.9.5
  • Python version: 3.11.2
  • Ranger version/commit: master 6d5e0d8
  • Locale: en_US.UTF-8

CHECKLIST

  • The CONTRIBUTING document has been read [REQUIRED]
  • All changes follow the code style [REQUIRED]
  • All new and existing tests pass [REQUIRED]
  • Changes require config files to be updated
    • Config files have been updated
  • Changes require documentation to be updated
    • Documentation has been updated
  • Changes require tests to be updated
    • Tests have been updated

DESCRIPTION

#3118 (comment)

MOTIVATION AND CONTEXT

The :trash %s command will try to expand filenames even after the macro "%s" was expanded, which can for example cause it to delete the home folder when "%s" expands to the literal filename "~".

#3118

#3118

TESTING

vejkse explains how to reproduce the bug, this commit fixes it.

It shouldn't affect anything else since only the trash command calls the affected methods

IMAGES / VIDEOS

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

Successfully merging this pull request may close these issues.

1 participant