Comments (8)
Many thanks for reporting this. Hopefully things should work fine with both relative and absolute symlinks now.
from fzf-marks.
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.
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.
Nothing funny with my paths, I believe. I’ll investigate later tonight or tomorrow, when I get a chance.
from fzf-marks.
Thank you very much, and sorry for the inconvenience.
from fzf-marks.
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.
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.
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)
- 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
- Dup marks HOT 17
- 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
- Provide more CLI commands
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.