gnu-emacs-sources
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: switch-dir.el (v0.9.1) - switching directory easily and interactivel


From: rubikitch
Subject: Re: switch-dir.el (v0.9.1) - switching directory easily and interactively
Date: Tue, 08 Jul 2008 07:40:43 +0900 (JST)

From: Kazuo YAGI <address@hidden>
Subject: switch-dir.el (v0.9.1) - switching directory easily and        
interactively
Date: Tue, 08 Jul 2008 03:39:19 +0900

Hi,

> I'd like to suggest a kind of utility, minor mode `switch-dir-mode'.
> This mode is to let you switch current directory easily and interactively.

I tried it.

Do you know anything.el?
It is very great candidate-selection framework.
It realizes your idea only 4 lines!

(defvar anything-c-source-switch-dir
  '((name . "Switch Directory")
    (candidates . switch-dir-alist)
    (action ("Change directory" . cd))))

Then, add `anything-c-source-switch-dir' into `anything-sources'.

* `switch-split-window-for-alist' should be split into major-mode definition and
  buffer contents definition. The former should be named as 
`switch-dir-select-mode'.
* `current-window-configuration' and `set-window-configuration' should be used 
when
  you save and restore window configuration.

Cheers,

--
rubikitch
Blog: http://d.hatena.ne.jp/rubikitch/
Site: http://www.rubyist.net/~rubikitch/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]