Giter Site home page Giter Site logo

Comments (8)

urbainvaes avatar urbainvaes commented on May 31, 2024

Many thanks for reporting this. Hopefully things should work fine with both relative and absolute symlinks now.

from fzf-marks.

cdlm avatar cdlm commented on May 31, 2024

Hmm… unfortunately it's still not jumping anywhere 🙁

I don't think I have symlinks in the bookmarks I tried, so I suspect there is another problem introduced by the commits of this weekend (I update many tools quasi-daily, and used fzf-marks without noticing problems after Oct. 4).

from fzf-marks.

urbainvaes avatar urbainvaes commented on May 31, 2024

Thank you. Hmm, that is strange. Are there any special characters in your bookmarks or in your directories that could be the cause of this issue? And is there an error message? I'd be happy to look into it, but at this point I have no idea what might be causing this.

Perhaps the problem is with the perl regular expressions, which now contain the \Q and \E quotemeta characters?

from fzf-marks.

cdlm avatar cdlm commented on May 31, 2024

Nothing funny with my paths, I believe. I’ll investigate later tonight or tomorrow, when I get a chance.

from fzf-marks.

urbainvaes avatar urbainvaes commented on May 31, 2024

Thank you very much, and sorry for the inconvenience.

from fzf-marks.

cdlm avatar cdlm commented on May 31, 2024

It seems that the \? in the sed call at 382e990 doesn't work. I'm guessing it's for matching a space before the colon, but that's not really needed in that case. I tried a couple variants, and got a fix by matching the bookmark name and colon with [^:]*:. That would be a problem if colons are allowed in bookmark names, though, but there should be some sanitizing of the inputs anyway. Rewriting into modern regular expressions with sed -E would work with BSD sed as well.

Also in that line, the -n flag to sed and the /p substitution flag seem to be contradictory, but maybe I'm missing a corner case… could you explain?

from fzf-marks.

urbainvaes avatar urbainvaes commented on May 31, 2024

Thank you very much for tracking down the error! The \? was added in the bash version of the script in the pull request #20. But you're right, and using .* \? was equivalent to using just .* anyway.

About the -n flag, I don't remember why I wrote it like this originally. It doesn't make much sense to me either now; I'll fix it straight away.

from fzf-marks.

urbainvaes avatar urbainvaes commented on May 31, 2024

I have changed the regex for the bookmark, colon and space to .*:_, so that bookmarks can contain colons. The downside is that this will lead to problems when the directory contains the sequence :_, but at least the behaviour is the same as in previous versions of the plugin. In fact, the best regular expression would probably be .*_:_, given that the plugin adds _:_ between the bookmark and the directory when mark is used, but I know from the pull request linked above the at least one person uses a bookmarks file with lines starting with just :_, i.e. with no leading space. Here _ was used to mean the blank character, for clarity.

from fzf-marks.

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.