Skip to content

-z to pick up ~HOME#1164

Open
Zouziszzm wants to merge 1 commit intoajeetdsouza:mainfrom
Zouziszzm:zi-com-shorten
Open

-z to pick up ~HOME#1164
Zouziszzm wants to merge 1 commit intoajeetdsouza:mainfrom
Zouziszzm:zi-com-shorten

Conversation

@Zouziszzm
Copy link

fixes #1161

Before: When you used the fzf selector, paths in your home directory showed like this:

/home/yourname/Documents
/home/yourname/Downloads
/home/yourname/projects/foo
After: Now they show like this:

~/Documents
~/Downloads
~/projects/foo
How I did it:

When displaying paths → replace your home directory part with ~ When you select a path → convert ~ back to the full path before using it So it's just cleaner to read in the fzf menu, but everything still works the same way behind the scenes.

fixes ajeetdsouza#1161

Before: When you used the fzf selector, paths in your home directory showed like this:

/home/yourname/Documents
/home/yourname/Downloads
/home/yourname/projects/foo
After: Now they show like this:

~/Documents
~/Downloads
~/projects/foo
How I did it:

When displaying paths → replace your home directory part with ~
When you select a path → convert ~ back to the full path before using it
So it's just cleaner to read in the fzf menu, but everything still works the same way behind the scenes.
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