Skip to content

mru: fix for paths including the working dir path - #23

Merged
gustavo-hms merged 1 commit into
gustavo-hms:mainfrom
dermetfan:fix-mru
Aug 26, 2025
Merged

gustavo-hms merged 1 commit into
gustavo-hms:mainfrom
dermetfan:fix-mru

Conversation

@dermetfan

@dermetfan dermetfan commented Aug 22, 2025 •

Copy link
Copy Markdown
Contributor

This fixes the MRU path selection and prefix removal in case the peneira-mru command is run from a path that is contained in some of the MRU paths.

Example

$kak_config/mru_files.txt:

/foo/bar/baz

Result when run from /bar:

/foobaz

@gustavo-hms

Copy link
Copy Markdown
Owner

Hi, @dermetfan ! Thanks for your contribution. I hadn't anticipated this edge case.

@gustavo-hms
gustavo-hms merged commit b1b623d into gustavo-hms:main Aug 26, 2025
@dermetfan
dermetfan deleted the fix-mru branch August 26, 2025 13:43
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.

2 participants