-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
location bookmarks #30
Comments
I'd be fine with there being bookmarks but under a few conditions, as I dont really use these myself:
really only thing that has to be worked out, unless you have better ideas against what I just listed, is the format of the file and representation of the list containing this info. personally I'd go with something simple like this:
where exact implementation aside the core point is just reading in some bookmark file during |
I was thinking of making the format of the file something like this:
However, I think what you suggested makes more sense because I was just gonna put a letter in the goto prompt, for instance 'd' for documents but that is really vague. I'll work on using custom labels instead in the goto prompt. Maybe this format is better:
I'm experimenting with ideas atm, but another option is just putting the folder name in the goto prompt if I were to use my first format that doesn't have a label. I think I'll end up going with what you mentioned unless you have any other suggestions. |
ah yeah the keybinds themselves too, forgot about that part. would make sense with just that format as well, aside from lack of easily readable thing to put in prompt (paths can get quite long and the prompt only goes horizontally)
this makes the most sense imo, though for ease of implementation it might be more straight forward like this:
as a side note, the if you'd read these into a struct with a |
Here's a better suggestion, don't read any files or config. Just have a "bookmark" directory ( can be configured via env var or whatever). And inside the bookmark directory, "bookmarks" will be added via symlinks. And then pressing b or something would open up the bookmark dir and you can follow any of the symlinks in there. This is a much superior system than rolling some incompatible config file because this way bookmarks can be synced across applications quite easily. |
that'd work, and would just be a simple listing all links in that dir if configured and showing them there. then changing to those on select. |
Probably Adding bookmarks should also be very simple, B or something would just create a symlink of what's currently hovered under
Don't think even that's needed. Just changing the cwd (of fuf) to |
Btw nnn uses a similar bookmark system (was suggested by me) if you want to take a look on how it'd work in practice. |
I guess, but I'd personally prefer it into the goto menu as its more vim.. ish. or maybe do it through going of what I feel like at the moment it'd probably be implemented as follows:
|
almost started working on this but then realized once again this doesnt overlap with any of my personal usecases. all I do is type fuf /where/I/want/to/be and browser around a bit. this coupled with history in my shell solves all my 'bookmark' needs. sure its an alright feature but I just dont care enough personally to be motivated to implement this as I never keep it open. I rather use it as a quick tool similar to less or tree or something while doing all main things in my shell |
I probably won't implement this because I've moved on to something else, but the suggestion similar to nnn sounds good to me and better than what I was thinking of. |
I think it would be great if fuf had bookmarks so you can go to any directory specified in a bookmarks file assuming it exists. The user should be responsible to create this instead of it being automatically generated, unless you think it should be otherwise? I already have it working but its hardcoded, I think changing it to read a file with absolute paths makes sense. A goto should start with 'g' so you could have "gd" with the absolute path after that as goto documents for instance. I'm not planning on adding any fancy file edit operations as you state in the README, this isn't a goal of fuf, but I'm curious about your opinions on this feature.
The text was updated successfully, but these errors were encountered: