Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bookmarks and find-file

0 views
Skip to first unread message

Andrea Crotti

unread,
Jul 12, 2010, 6:08:23 AM7/12/10
to help-gn...@gnu.org
I'm still looking for the holy grail of fast access...
The thing is that now I have my nice bookmarks to some directories, but
when I do find-file (ido-find-file actually) I have no access to them.


So what I normally do is just jump to the bookmark and then find-file
from there, which is a bit slow...
Any idea to make them work together?

Something like
C-x C-f <bookmark name>/file.xyz
would be nice...


Sébastien Vauban

unread,
Jul 12, 2010, 7:33:54 AM7/12/10
to
Hi Andrea,

Have a look at `anything' (http://www.emacswiki.org/emacs/Anything). It's a
great package for "finding" and opening files on your file system...

Best regards,
Seb

--
Sébastien Vauban

Drew Adams

unread,
Jul 12, 2010, 10:25:31 AM7/12/10
to Andrea Crotti, help-gn...@gnu.org
> I'm still looking for the holy grail of fast access...
> The thing is that now I have my nice bookmarks to some
> directories, but when I do find-file (ido-find-file actually)
> I have no access to them.
>
> So what I normally do is just jump to the bookmark and then find-file
> from there, which is a bit slow... Any idea to make them work together?
>
> Something like C-x C-f <bookmark name>/file.xyz would be nice...

In Icicles, anytime you use a file-access command such as `C-x C-f' you can
access file bookmarks by using `C-x m' in the minibuffer.

The completion candidates are only the file bookmarks (not Info, desktop, Gnus,
Man, W3M, etc. bookmarks). You can access any number of files through their
bookmarks in a single `C-x C-f' command, because it is a multi-command.

Similarly, you can access Dired bookmarks whenever you use `C-x d', buffer
bookmarks when you use `C-x b', Info bookmarks when you use `g' (goto-node) in
Info, etc.

http://www.emacswiki.org/emacs/Icicles_-_File-Name_Input

http://www.emacswiki.org/emacs/Icicles_-_Bookmark_Enhancements

http://www.emacswiki.org/emacs/Icicles_-_More_About_Multi-Commands

You also need Bookmark+ to use this Icicles feature.


Andreas Politz

unread,
Jul 12, 2010, 11:46:57 AM7/12/10
to
Andrea Crotti <andrea....@gmail.com> writes:

Change `ido-temp-list' inside a `ido-make-file-list-hook'.

(add-hook 'ido-make-file-list-hook
(lambda nil
(setq ido-temp-list
(append ido-temp-list
(delq nil (mapcar 'bookmark-get-filename
bookmark-alist))))))

-ap

Scott Frazer

unread,
Jul 12, 2010, 4:16:28 PM7/12/10
to

Glauber Alex Dias Prado

unread,
Jul 12, 2010, 4:46:12 PM7/12/10
to Andrea Crotti, help-gn...@gnu.org
hi Andrea,
Andrea Crotti <andrea....@gmail.com> writes:

> I'm still looking for the holy grail of fast access...

I find anything to be quite cool, loads of oportunity for you to plug
your own sources behaving the way you want, very extensible.

> The thing is that now I have my nice bookmarks to some directories, but
> when I do find-file (ido-find-file actually) I have no access to them.
>
>
> So what I normally do is just jump to the bookmark and then find-file
> from there, which is a bit slow...
> Any idea to make them work together?
>
> Something like
> C-x C-f <bookmark name>/file.xyz
> would be nice...

You can check it out on:
- http://www.emacswiki.org/emacs/Anything

cheers,
Glauber.

Bernardo

unread,
Jul 13, 2010, 7:04:47 AM7/13/10
to help-gn...@gnu.org
> I'm still looking for the holy grail of fast access...
> The thing is that now I have my nice bookmarks to some directories, but
> when I do find-file (ido-find-file actually) I have no access to them.
>
>
> So what I normally do is just jump to the bookmark and then find-file
> from there, which is a bit slow...
> Any idea to make them work together?
>
> Something like
> C-x C-f <bookmark name>/file.xyz
> would be nice...

a rather crude solution (that works) would be to put
(setenv "bm1" "mydirectory1")
(setenv "bm2" "mydirectory2")
...

in your .emacs

then you could do:
C-x C-f $bm1/some_file

0 new messages