문제

is there a way to have dired operate in a single window so that when I traverse through directories I don't have n number of dired buffers for the intermediate directories? However - if I start another dired buffer in a completely separate directory (from the minibuffer rather than hitting [enter] on a subdirectory in an already open dired instance) I'd like to retain the two separate dired buffers... I guess I'm using ido-dired since I have ido-mode on but I don't know that the solution would be different? Thanks much!

도움이 되었습니까?

해결책

I reduce the dired-buffer clutter by hitting a (dired-find-alternate-file) on subdirectories, rather than RET; that recycles the current dired window.

다른 팁

http://www.emacswiki.org/emacs/dired-single.el

;;; dired-single.el --- Reuse the current dired buffer to visit another directory...

;;; Commentary:
;;
;;  This package provides a way to reuse the current dired buffer to visit
;;  another directory (rather than creating a new buffer for the new directory).
;;  Optionally, it allows the user to specify a name that all such buffers will
;;  have, regardless of the directory they point to...

Dired+ lets you do this optionally, and it lets you toggle it on/off anytime.

See also http://www.emacswiki.org/emacs/DiredReuseDirectoryBuffer.

1 - BLOB는 BOST64로 인코딩하는 것이 공간 및 처리 시간을 모두 증가시킬 것이므로 (해독하기 전에 BASE64를 디코딩해야합니다)

2 - openssl_seal는 데이터를 암호화하는 데 사용 된 키를 제공하지 않습니다. ENV_KEYS의 목적은 생성 된 키의 암호화 된 형식 을 저장하는 것입니다. OpenSSL_OPEN을 호출하면이 봉투 키와 decrypt 에 필요한 개인 키를 봉투 키를 제공합니다. 개인 키는 봉투 키를 생성하는 데 사용 된 공개 키와 일치해야합니다.

3- 개인 키에 암호를 필요로하는 경우 기술적으로 데이터가 상대적으로 안전합니다. 그들이 봉투 키와 개인 키가 있더라도, 그들은 그것을 사용할 수 없을 것입니다 ... 그러나 당신의 암호는 얼마나 안전합니까? 실현하는 한 가지는 당신이 거의 을 완전히 안전한 계획을 보장하지 못할 수 있다는 것입니다. 그러나 당신은 분명히 해커에 힘든 할 수 있습니다. 여기에 상상력을 사용하십시오. BTW, 귀하의 코드의 일반 텍스트의 암호는 무엇입니까?

If you mostly want to have each dired buffer work with various subdirs that are all under a single hierarchy (e.g. one dired buffer for each of several ongoing projects), you can use the built-in i (dired-maybe-insert-subdir) and k (dired-do-kill-lines on the header of an inserted subdir to remove it from the buffer) commands. They will let you edit multiple directories inside a single dired buffer. You might want a small custom command and to remap RET if it is too ingrained in your muscle memory though.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top