How to select a filename with the initials in Emacsire ファイル

Asked 1 years ago, Updated 1 years ago, 88 views

Emacs allows you to move files one by one in c-n or c-p when you open a directory in direct, but
If I type the initials of a file, is there a way to move it to the line of that file?

.
..
hello.html
test.html

If you type t in the above directory, the test.html line is selected and
You can open it by pressing enter.

emacs

2022-09-30 20:16

3 Answers

As a supplement to Yuki Inoue's response, it is useful to enable a setting that limits Dired incremental search C-s to filename matches (not matching file owners or permissions).

Add the following settings to .emacs or through/.emacs.d/init.el.

;t-Always match the filename
;; dwim - Enable Filename Match if Cursor Location is in Filename
(setq dead-isearch-filenames'dwim)


2022-09-30 20:16

I often do incremental searches on C-s, search the file name as text, and then enter continuously when the cursor moves to the file you want to select.I don't know if it's an answer, but...


2022-09-30 20:16

I think using help is one way.
Emacs-Helm for beginners to beginners Getting Started: Command: Helm-find-files in the first part will help you


2022-09-30 20:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.