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

Scroll file list horizontally #834

Closed
roginfarrer opened this issue May 10, 2021 · 6 comments
Closed

Scroll file list horizontally #834

roginfarrer opened this issue May 10, 2021 · 6 comments
Labels
enhancement Enhancement to performance, inner workings or existent features

Comments

@roginfarrer
Copy link

Is your feature request related to a problem? Please describe.
I work in a codebase that includes very long paths and filenames intermingled with short ones. I frequently encounter scenarios where the file list is to the right to show the filename, and this can mean that I cannot see the shorter filenames at all. This makes it very difficult to navigate the file list.

Describe the solution you'd like
Introduce key mappings to scroll the file list horizontally (left or right)

CleanShot 2021-05-10 at 10 42 40@2x

@roginfarrer roginfarrer added the enhancement Enhancement to performance, inner workings or existent features label May 10, 2021
@asymmetric
Copy link

Alternatively, there could be some kind of elision (...) and/or shortening (~/D/f/bar.txt) for paths beyond a certain length

@caojoshua
Copy link
Contributor

@asymmetric we can shorten paths beyond certain length after #886 is merged

@asymmetric
Copy link

@caojoshua it’s been merged, FYI

@l-kershaw
Copy link
Contributor

I am closing this now as there are options for truncate and shorten in path_display.
See :h telescope.defaults.path_display for more information.

If this doesn't solve your issue, feel free to reopen 🙂

@zyriab
Copy link

zyriab commented Sep 13, 2023

Super necro-opening of this issue but is there a way to actually scroll horizontally?
I work on a gigantic monorepo and the various layers often share the filename and sometimes a part of the path is similar but the root, I'd like to keep the entire path displayed while being able to check the filename that's being partially hidden as you can see on this screenshot

image

@jamestrew
Copy link
Contributor

@ZyriabDsgn there's a results_scrolling_left (and right) action.

You can also toggle_preview as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to performance, inner workings or existent features
Projects
None yet
Development

No branches or pull requests

6 participants