Giter Site home page Giter Site logo

Dup marks about fzf-marks HOT 17 CLOSED

urbainvaes avatar urbainvaes commented on May 30, 2024
Dup marks

from fzf-marks.

Comments (17)

noboruma avatar noboruma commented on May 30, 2024 1

I encountered the exact same issue and I think I have reproduction steps.
Create a folder such as "c++" and mark it:
$ mkdir c++ && cd c++ && mark
Then select it (via C-g) and it will be duplicated every time it is accessed.
Maybe it has something to do with the special character '+'?

from fzf-marks.

 avatar commented on May 30, 2024 1

@urbainvaes : good catch, think I lost control of my zsh, let fight :)

from fzf-marks.

 avatar commented on May 30, 2024 1

Thanks, that's awesome, now I can live in peace :)

from fzf-marks.

urbainvaes avatar urbainvaes commented on May 30, 2024

Thanks, but there isn't much I can do without additional information. Could you provide details about the shell you use, the version of the plugin, and possibly paste a copy of your marks file?

from fzf-marks.

 avatar commented on May 30, 2024

Thanks, that's latest fzf-marks, manually installed, Z-shell latest, os: archlinux.

I re-map ^g to ^] and re-name ~/.fzf-marks to ~/.marks, this issue raise with just using only ^] and mark command to create new marks, especially happens when create new map and then select that newly created with ^] and enter to select.

from fzf-marks.

urbainvaes avatar urbainvaes commented on May 30, 2024

Many thanks for the bug reports. You're right, it had to do with special characters. I have pushed a commit that should fix this, 14c2e40.

@noboruma Does this fix your issue?

from fzf-marks.

 avatar commented on May 30, 2024

Another issue: this https://github.com/urbainvaes/fzf-marks/blob/master/fzf-marks.plugin.zsh#L26 does not expand $HOME in my case if it's a symlink. I have to hardcode, maybe it's not a problem.

from fzf-marks.

urbainvaes avatar urbainvaes commented on May 30, 2024

Is the environment $HOME variable set, though? By hardcode, you mean you need to export FZF_MARKS_FILE=...?

from fzf-marks.

 avatar commented on May 30, 2024

@urbainvaes : It cannot expand variable $HOME somehow, yes I have HOME set:

touch: cannot touch '$HOME/.marks': No such file or directory

I had to set it to: export FZF_MARKS_FILE='/home/user/.marks', I might set a env variable wrong somewhere, Is there any special en var needs to check?

Should we use emulate to bring back to default zsh?

from fzf-marks.

urbainvaes avatar urbainvaes commented on May 30, 2024

Many thanks for your reply. Before using export FZF_MARKS_FILE='/home/user/.marks', what were you using exactly? If you were using export FZF_MARKS_FILE='$HOME/.marks', then the reason it didn't work is the presence of single quotes. If you weren't, then we could use emulate to bring back to default zsh, but it would be nice to identify the problem more clearly beforehand. ;)

from fzf-marks.

noboruma avatar noboruma commented on May 30, 2024

@urbainvaes I can confirm the fix works. Thanks for your hard work & this amazing plugin!

from fzf-marks.

urbainvaes avatar urbainvaes commented on May 30, 2024

@noboruma Thanks for the kind words. :)

from fzf-marks.

 avatar commented on May 30, 2024

@urbainvaes : I believe this is symlink problem, when I have .marks is a symlink instead of a real-file, fzf-marks fail to locate it.

Can't open abc/def/.marks: No such file or directory

~/.marks is linked to ~/abc/def/.marks

from fzf-marks.

urbainvaes avatar urbainvaes commented on May 30, 2024

Ah, good catch. Somehow this was fixed for bash but not for zsh. Can you see if it works now? And thank you again for reporting the bugs!

from fzf-marks.

 avatar commented on May 30, 2024

@urbainvaes : Another issue, my .marks is in git repo and then the touch command somehow always run when use and select candidate from fzf menu, that trigger git as the file is modified and require me to add to the repo.

EDIT: with latest version, it still touching like madness :)

from fzf-marks.

urbainvaes avatar urbainvaes commented on May 30, 2024

Thanks. :) That's because the plugin sorts the marks from the least recently to the most recently accessed. f5370fe adds the option FZF_MARKS_KEEP_ORDER, which you can set to 1 to prevent this from happening.

from fzf-marks.

 avatar commented on May 30, 2024

My favorite plugin ever, thanks.

from fzf-marks.

Related Issues (19)

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.