Coder Social home page Coder Social logo

Comments (6)

boxofrox avatar boxofrox commented on May 30, 2024

On linux with neovim 0.3.5, if I :cd path/to/project, then every window in which I run :PickerBuffer shows files under that project folder with paths relative to the :pwd.

Any file not under path/to/project will show with an absolute path.

Are you looking for files outside vim's current directory (as set by :cd and show with :pwd) to be relative, too? I'm not sure this is an improvement when filenames appear with multiple ../ prefixes.

from vim-picker.

SevereOverfl0w avatar SevereOverfl0w commented on May 30, 2024

I'm looking at paths within pwd

from vim-picker.

SevereOverfl0w avatar SevereOverfl0w commented on May 30, 2024

My reproduction for this was to be in a directory, then do:

:PickerEdit " and pick a file
:PickerEdit " pick another file
:PickerBuffer " path is absolute

It's probably notable that I'm forcing the use of fd and bypassing the use of git ls-files. Here's my config:

let g:picker_custom_find_executable = 'fd'
let g:picker_custom_find_flags = '--color never --type f'

Interestingly, if I do :Buffers from fzf, followed by :PickerBuffer the buffer names have been condensed.

from vim-picker.

boxofrox avatar boxofrox commented on May 30, 2024

Thanks, I can reproduce the issue with those instructions.

If I disable line 312 from commit 6b86013c, then the paths in :PickerBuffer become relative paths again.

Other than my plugin possibly being a few commits behind upstream master, I'm not sure why I didn't see absolute paths in my initial testing.

I'm not familiar with the commit in question here. I'll have to take a look at it later to understand why it was added.

from vim-picker.

boxofrox avatar boxofrox commented on May 30, 2024

@SevereOverfl0w do you still see the absolute path in :PickerBuffer with the latest version? There's a related commit d0d1c3a that appears to fix this.

from vim-picker.

srstevenson avatar srstevenson commented on May 30, 2024

Closing as stale, feel free to reopen if you experience this again.

from vim-picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.