On Thu, Oct 15, 2009 at 23:14, Philip Ganchev <[email protected]> wrote:
> No. Fish allows you to search for words in history by substring. This
> allows you to type, for example,
>
> cd long<Up>
>
> Assuming that the last occurrence of "long" in an executed command was
> in the word "my/long/directory/name", the current command line will be
> replaced by:
>
> cd my/long/directory/name
>
Small correction: <Up> searches for whole lines, so ``cd long<Up>``
would only complete directories that start with ``long``.
<Alt+Up> searches for the current word, so ``cd long<Alt+Up>`` can
indeed be completed to ``my/long/directory/name``.

> This is interactive and works with any type of file, but requires that
> the file be converted to absolute path.

Right, that's why I frequently type absolute paths when relative would
be enough, so that I can later recall them from history.
And yes, this is so useful that I never felt the need to bookmark
directories in fish.  But I didn't realize why before Philip's reply
:).

P.S. another magic worth mentioning while talking abort dir changing
in fish: you are aware that you can just type ``foo`` instead of ``cd
foo`` in fish, right?  (Hint: For relative paths, it's sometimes
useful to start the command with ``./`` to focus the completions.)

-- 
Beni <[email protected]>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to