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

feat(#195): display current path in the strider #1681

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

knidarkness
Copy link

This pull request addresses the #195 issue and resolves the problem of @RobWalt's solution with clicks 1-row offset.

As in Rob's PR, the path displayed is a relative path from the zellij's start location.

Display the current path on top of the directory files in the strider default plugin. As of now, no configuration
is available for this feature.

Examples of how it looks:

image

image

Refs: zellij-org#195

Display current path on top of the directory files in the strider default plugin. As of now, no configuration
is available for this feature.
Copy link
Contributor

@tlinford tlinford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for picking this up!
I gave it a quick run and found two small things to adjust :)

default-plugins/strider/src/state.rs Outdated Show resolved Hide resolved
default-plugins/strider/src/main.rs Outdated Show resolved Hide resolved
knidarkness and others added 2 commits August 20, 2022 10:45
Co-authored-by: Thomas Linford <tlinford@users.noreply.github.com>
Copy link
Contributor

@tlinford tlinford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry I missed one other thing.
screenshot-2022-08-23T20:17:02

Comment on lines +83 to +84
let current_path = name.clone();
FsEntry::display_with_shortened_name_start(current_path, width)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should just return empty string? just did another run and i'm seeing extra output on the right

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, thanks for pointing this out. I will check this today in the evening.

@imsnif
Copy link
Member

imsnif commented Nov 2, 2022

Hey, what's the status here?

@davidfufu
Copy link

Want to echo @imsnif , what's the status on this? This is an important feature that makes the file tree more useful, unless there's another way to switch dir within the strider window.

@chanson02
Copy link

Looks like this PR can be closed, as it's functionality has been implemented in #3200.

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.

5 participants