Comments (17)
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.
@urbainvaes : good catch, think I lost control of my zsh, let fight :)
from fzf-marks.
Thanks, that's awesome, now I can live in peace :)
from fzf-marks.
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.
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.
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.
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.
Is the environment $HOME
variable set, though? By hardcode, you mean you need to export FZF_MARKS_FILE=...
?
from fzf-marks.
@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.
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.
@urbainvaes I can confirm the fix works. Thanks for your hard work & this amazing plugin!
from fzf-marks.
@noboruma Thanks for the kind words. :)
from fzf-marks.
@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.
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.
@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 touch
ing like madness :)
from fzf-marks.
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.
My favorite plugin ever, thanks.
from fzf-marks.
Related Issues (19)
- Adding bash install instructions HOT 5
- Unwanted indent after deleting the last mark
- Use `fzf --expect` to delete and jump to mark with same keybinding
- readlink -f is not portable HOT 8
- Upgrade fzf min version ('fzf --header') HOT 1
- Fish shell plugin is currently broken HOT 13
- front end to fzm HOT 5
- (Feature Request) Open marked files with default $EDITOR HOT 5
- fzf-marks.plugin.zsh:177 command not found: compdef HOT 3
- Use case with tmux - add new window based on marks HOT 1
- (feature request) Inserting marked directory in cmd rather than jump to it HOT 2
- fzf-marks complains if FZF_MARKS_FILE points at a readonly file HOT 2
- [Feature Request] Move to the next line item automatically on ctrl-t(toggle) HOT 4
- [Feature Request] Option to direct cd bookmark in case of exact match HOT 4
- could not delete multiple marks, and not showing delete marks HOT 1
- keybinding disable HOT 1
- cd hooks aren't triggered after jumping HOT 2
- The last 3 lines of output are cut off
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fzf-marks.