首页 > 其他 > 详细

Dired Mode in Emacs

时间:2014-03-18 11:49:04      阅读:511      评论:0      收藏:0      [点我收藏+]
  • Start up Dired mode: C-x d; (List dirs: C-x C-d)

  • Hide Dired mode window: q;

Mark

  • Mark (for group manipulation): [n]m;

  • Mark with regex: %m;

  • Mark files whose contents match regular expression (like mark with grep): %g

  • Mark all directories: */;

  • Mark all executables: **;

  • Toggle marked files/directories (same as inverse selection): t;

  • Unmark marked files: [n]u;

  • Unmark all marked files: U

Navigate

  • Move cursor to previous folder: <; next foler: >;

  • Up one level: ^;

  • add file list of the subfolder on cursor at the end of the buffer: i;

** Jump to parent folder: C-M-p (jump to children folder is C-M-d, which is conflict with "Show desktop" shortcut of Mint);

** Jump to previous/next folder: C-M-p/C-M-n;

Manipulation

  • Copy: [n]C;

  • Delete: [n]d; delete with regex: %d;

  • Execute: x;

  • Create directory: +

  • Change mode (same as "chmod" command): M

  • Show file information (same as "file" command): y

  • Move or Rename: R;

** Use m then %u to rename file to upper case, while %l to lower case;

** move or rename with regex: %R;

  • View file: v (With Evil, if you want to quit reading file (v key) in Dired mode, use Q instead of q, because q is looked as the macro define key in Evil);

  • Run command on a file: mark it (with "m" key) and !; In command , "*" means all marked files, "?" means execute command on files marked respectively;

  • Compress files: mark files/directories, then "! zip file.zip *"; then use "g" to update display;

  • Compress/Uncompress one or more files to gz (orgin files will be replaced): Z;

  • Query-replace in selected files: mark files, then "Q";

  • Open file in another window (and focus that window): o;

  • Open file in another window (keep focus in Dired window): C-o;

  • Change ownership (same as "chown"): O;

Miscellaneous

Dired Mode in Emacs,布布扣,bubuko.com

Dired Mode in Emacs

原文:http://www.cnblogs.com/darkmatter/p/3606769.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!