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

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

Merged
merged 11 commits into from
Jul 31, 2023
Merged

Conversation

cafkafk
Copy link
Member

@cafkafk cafkafk commented Jul 29, 2023

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
Copy link
Collaborator

sbatial commented Jul 31, 2023

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
Copy link
Member Author

cafkafk commented Jul 31, 2023

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 <[email protected]>
Signed-off-by: Christina Sørensen <[email protected]>
Signed-off-by: Christina Sørensen <[email protected]>
Signed-off-by: Christina Sørensen <[email protected]>
Signed-off-by: Christina Sørensen <[email protected]>
cafkafk added 4 commits July 31, 2023 13:39
Signed-off-by: Christina Sørensen <[email protected]>
This was horrible.

Signed-off-by: Christina Sørensen <[email protected]>
Signed-off-by: Christina Sørensen <[email protected]>
@cafkafk
Copy link
Member Author

cafkafk commented Jul 31, 2023

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
Copy link
Collaborator

sbatial commented Aug 4, 2023

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
Copy link
Member Author

cafkafk commented Aug 5, 2023

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