Skip to content

(exa PR) 1136: Fix #393: add flag to dereference links - #32

Merged
cafkafk merged 11 commits into
mainfrom
pr-1136
Jul 31, 2023
Merged

(exa PR) 1136: Fix #393: add flag to dereference links#32
cafkafk merged 11 commits into
mainfrom
pr-1136

Conversation

@cafkafk

@cafkafk cafkafk commented Jul 29, 2023

Copy link
Copy Markdown
Member

ogham/exa#1136

todo:
  • change commit messages to conventional commits
  • a quick trip through merge hell
  • add completions
  • needs manual testing

@cafkafk cafkafk changed the title (exa PR) 1136 (exa PR) 1136: Fix #393: add flag to dereference links Jul 29, 2023
@sbatial sbatial mentioned this pull request Jul 30, 2023
63 tasks
@cafkafk cafkafk added this to the exa pulls done milestone Jul 31, 2023
@sbatial

sbatial commented Jul 31, 2023

Copy link
Copy Markdown
Contributor

This has some overlap with #42 I think.
As in: #42 will probably be obsolete with this.

Output with relevant columns: (compare eza and result links)

eza -1l --no-user eza -1Xl --no-user
terminal output of 'eza -1l --no-user' terminal output of 'eza -1Xl --no-user'

@cafkafk

cafkafk commented Jul 31, 2023

Copy link
Copy Markdown
Member Author

This has some overlap with #42 I think.

Yea, looks like merging is gonna get pretty hairy.

I do like how they have introduced a flag and documented it!

It does still need completions.

...and propagate it.

Add the `-X`/`--dereference` flags which are used to enable
dereferencing through symbolic links, similar to ls's `-L`. Added the
`link_target_recurse` method in order to recursively call the existing
`link_target` method to get the final target at the end of the chain of
links. In order to appropriately display the final output and play
nicely with existing functionality, a `deref_links` variable has been
added to a few places such that it can be propagated until the time it
is needed during rendering. Following commits will use this information
to display dereferenced information.

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
cafkafk added 4 commits July 31, 2023 13:39
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This was horrible.

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
@cafkafk

cafkafk commented Jul 31, 2023

Copy link
Copy Markdown
Member Author

Can you check this out whenever you have time, it was a pretty big merge so I'd like to get more eyes on whether or not it's correct.

@cafkafk
cafkafk merged commit 5564772 into main Jul 31, 2023
@sbatial

sbatial commented Aug 4, 2023

Copy link
Copy Markdown
Contributor

I'm trying it out right now but it seems like it is deref'ing by default and the -X is not needed/does nothing?!
Is that possibly a bug on my end?
I pulled down to the newest beforehand.

@cafkafk

cafkafk commented Aug 5, 2023

Copy link
Copy Markdown
Member Author

Is that possibly a bug on my end?

No I can reproduce it :s

It shouldn't be hard to fix, I'll open an issue.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants