Giter Club home page Giter Club logo

Comments (9)

junegunn avatar junegunn commented on July 24, 2024

fzf still seems to follow symbolic links.

Yes, that's the default.

   Directory traversal
       --walker=[file][,dir][,follow][,hidden]
              Determines the behavior of the built-in directory walker that is used when
              $FZF_DEFAULT_COMMAND is not set. The default value is file,follow,hidden.

              * file: Include files in the search result
              * dir: Include directories in the search result
              * hidden: Include and follow hidden directories
              * follow: Follow symbolic links

I also tried to add the folders to --walker-skip, but that still does not work.

And please provide the exact steps to reproduce the problem.

from fzf.

rudvfaden avatar rudvfaden commented on July 24, 2024

Thanks for a very quick reply.

I add this to .zhsrc

export FZF_CTRL_T_OPTS="
  --walker-skip .git,node_modules,target,o_drev_da1943,analyse,batch,Dataudveksling,eg_source
  --preview 'bat -n --color=always {}'
  --bind 'ctrl-/:change-preview-window(down|hidden|)'"

When i pres CTRL + T i still get results for e.g. analyse in my results. the folder analyse is a symbolig link.

from fzf.

junegunn avatar junegunn commented on July 24, 2024

Do you also have FZF_CTRL_T_COMMAND? If the variable is defined, fzf will use it instead of its built-in walker.

from fzf.

rudvfaden avatar rudvfaden commented on July 24, 2024

Sorry. It seems no to work either way

from fzf.

junegunn avatar junegunn commented on July 24, 2024

Okay, I can see what's going on. --walker-skip is applied to directories, and currently, it is not applied to a "symlink" to a directory. I agree that this is confusing. I'll look into it.

Anyway, if you don't want fzf to follow symlinks, consider setting --walker instead of --walker-skip.

export FZF_DEFAULT_OPTS='--walker file,hidden

from fzf.

rudvfaden avatar rudvfaden commented on July 24, 2024

So that file is a list of folders that should be included? Think that will be hard to maintian.

But thanks for your reply. Cool if it can be implemented in a comming release.

from fzf.

junegunn avatar junegunn commented on July 24, 2024

Directory traversal
--walker=[file][,dir][,follow][,hidden]
Determines the behavior of the built-in directory walker that is used when
$FZF_DEFAULT_COMMAND is not set. The default value is file,follow,hidden.

          * file: Include files in the search result
          * dir: Include directories in the search result
          * hidden: Include and follow hidden directories
          * follow: Follow symbolic links

No, file means walker should list "files", it's a type.

from fzf.

rudvfaden avatar rudvfaden commented on July 24, 2024

from fzf.

junegunn avatar junegunn commented on July 24, 2024

Correct.

from fzf.

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.