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

Set width of explorer to a maximum width and allow to shrink down depending on length of paths #1

Open
joereynolds opened this issue Feb 10, 2021 · 1 comment

Comments

@joereynolds
Copy link

Currently you're using vnew which is fine but it takes up half the available screen space. I think it could be more intelligent and create a new buffer from the width of the open buffers.

For example if my open buffer is:

└─ home
   └─ joe.reynolds
      └─ code
         └─ helloHeaps
            └─ 7-scrolling-camera
               ├─ ◎ Main.hx ⇒ 1
               ├─ • 50 ⇒ 8
               └─ • Player.hx ⇒ 5

Then really, the width should be the longest line on this buffer (I think 34).
It'd make sense to constrain this too so you don't get ridiculously small or big buffers.

Just a thought

@el-iot
Copy link
Owner

el-iot commented Feb 10, 2021

Oh good idea - I've actually been using camspiers/lens.vim while using the plugin so I hadn't noticed the issue. I'll see if I can add some native support for sensible window-sizing.

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

No branches or pull requests

2 participants