asok / peep-dired

A convienent way to look up file contents in other window while browsing directory in dired
101 stars 12 forks source link

Split window vertically rather than horizontally. #10

Open mikef656 opened 8 years ago

mikef656 commented 8 years ago

1) It would be nice to have a customize option which determines vertical or horizontal split. Currently peep-mode splits the window horizontally only?

2) How about binding the letter 'q' into the peep-dired-mode-map so that it quits peep mode?

Thanks Mike

asok commented 8 years ago

1) It would be nice to have a customize option which determines vertical or horizontal split. Currently peep-mode splits the window horizontally only?

Not sure what's the best approach here. This is somewhat related to #6

2) How about binding the letter 'q' into the peep-dired-mode-map so that it quits peep mode?

Sounds good.

asok commented 8 years ago

@Mike--F today I find out that there's ranger.el. It's more complex but I think it achieves what you're looking for.

mikef656 commented 8 years ago

Sunrise Commander has a nice viewer also.

randomwangran commented 5 years ago

I have the same issue some days ago and I was happy to find a solution.

However, I find it conflicts with peep-dired. It makes many windows (>8) if I execute peep-dired.

This is part of my config:

(use-package peep-dired
  ;;Although it works when frame size is relative small, I still find
;; it is not working properly when the frame size is big or full
;; screen.

;; I test it in 25.1 and 26.3 (emacs -q) in which both of them have the same
;; behaviour.
  :ensure t
  :bind (:map dired-mode-map
              ("P" . peep-dired))
  :config
  (setq peep-dired-cleanup-on-disable t)
  ;; (setq peep-dired-cleanup-eagerly t)

  (setq peep-dired-ignored-extensions '("elc" "mkv" "webm" "mp4" "mp3" "ogg" "iso" "mat" "exe")))

I also notice that peep-dired splits window as I expected when the frame is relatively small. However, if the frame is big or in the full screen mode, there are too many windows.

I see lots of people recommand ranger.el, but I just feel it is too complex (I am not vim user).

peep-dired is good enough for task to broswer files. I do hope I can figure it out someday later.

Thanks for your effort @asok !