all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How make Dired open selected files in a SPECIFIC window when there are multiple windows?
@ 2015-02-17 16:10 Chris Seberino
  2015-02-17 19:01 ` Chris Seberino
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Seberino @ 2015-02-17 16:10 UTC (permalink / raw)
  To: help-gnu-emacs

I'd like to keep a small Dired window open that I can keep selecting files
from, and, have them all open in a specific big window.

(I'm basically trying to mimic an IDE where you have a "file chooser" widget.)

How do that?

Thanks!

Chris

P.S. Here is my code so far if curious...


(global-set-key (kbd "C-t")       (lambda (project)
                                          (split-window-below)
                                          (enlarge-window 9)
                                          (windmove-down)
                                          (interactive "sProject: ")
                                          (find-file project)
                                          (split-window-right)
                                          (windmove-right)
                                          (ansi-term "zsh")
                                          (windmove-up)))

It creates a "T shape" with a big window for editing and 2 smaller windows
for shell commands and Dired stuff.  Problem is that if I select a file in that Dired window it open in the same tiny window!


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How make Dired open selected files in a SPECIFIC window when there are multiple windows?
  2015-02-17 16:10 Chris Seberino
@ 2015-02-17 19:01 ` Chris Seberino
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Seberino @ 2015-02-17 19:01 UTC (permalink / raw)
  To: help-gnu-emacs

Selecting file with "o" instead of pressing RETURN seems to do it.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* How make Dired open selected files in a SPECIFIC window when there are multiple windows?
@ 2015-02-18 10:38 Tak Kunihiro
  0 siblings, 0 replies; 4+ messages in thread
From: Tak Kunihiro @ 2015-02-18 10:38 UTC (permalink / raw)
  To: help-gnu-emacs

You can freeze the Dired window.

(global-set-key (kbd "C-x 9") 'freeze-window)
(defun freeze-window ()
  "Freeze or lock a window where point is.  Call again to unfreeze.
Technically this toggles window-dedicate-p property of a window."
  (interactive)
  (let ((frozenp (window-dedicated-p (selected-window)))
        (win (selected-window)))
    (set-window-dedicated-p win (not frozenp))
    (message (format "%s is %s" win (if (not frozenp) "frozen" "free")))))


> I'd like to keep a small Dired window open that I can keep selecting
> files from, and, have them all open in a specific big window.
> 
> (I'm basically trying to mimic an IDE where you have a "file chooser" widget.)
> 
> How do that?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How make Dired open selected files in a SPECIFIC window when there are multiple windows?
@ 2015-02-18 11:28 Bernardo
  0 siblings, 0 replies; 4+ messages in thread
From: Bernardo @ 2015-02-18 11:28 UTC (permalink / raw)
  To: help-gnu-emacs


> I'd like to keep a small Dired window open that I can keep selecting files
> from, and, have them all open in a specific big window.
>
> (I'm basically trying to mimic an IDE where you have a "file chooser"
> widget.)

guess you know about 'speedbar' (and sr-speedbar) - worth a try



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-18 11:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-18 10:38 How make Dired open selected files in a SPECIFIC window when there are multiple windows? Tak Kunihiro
  -- strict thread matches above, loose matches on Subject: below --
2015-02-18 11:28 Bernardo
2015-02-17 16:10 Chris Seberino
2015-02-17 19:01 ` Chris Seberino

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.