Emacs - switch to the buffer by typing the extension and then the file name

is it possible in emacs to search for a file name so that I enter the extension first, then the space, and then the file name itself? For instance. org notes org or not will switch to notes.org.

Or is there a way to write such a function to do just that?

+5
source share
6 answers

If you use ido, you can enter notes of org c-space.

Ido takes a little time to get used to, but personally I cannot live without it.

+11
source

Anything can do it easily, run anything, type any words in the buffer name, the results show:

Emacs anything

, : http://emacs-fu.blogspot.com/2011/09/finding-just-about-anything.html

, :

(require 'anything-config)
(global-set-key (kbd "C-x b")
            (lambda() (interactive)
              (anything
               :prompt "Switch to: "
               :sources
               '(anything-c-source-buffers))))
+3

, IDO . , "some-video-page.js" "video.py", "C-x b vidjs" "C-x b vidpy", .

(ido-mode)
(setq ido-enable-flex-matching t)

ibuffer . .

(global-set-key (kbd "C-x C-b") 'ibuffer)

. uniquify, Emacs, . emacs, , , . -, python- python. IDO - , - ?

+1

Icicles - S-TAB TAB - .. .

(, ) , . S-SPC .

    C-x C-f notes S-SPC org

    C-x C-f org S-SPC notes

, , org , \.org. ( C-` / , .. .)

, ( ), .

Ido "flex", Icicles ( "" ), . ( , , .)

+1

() , globbing.

C-x b *.org TAB

Emacs , , .

*org , *.org, , , .

+1

Iswitchb, Emacs, , . . , , ( , ). , .org, , .org. , , , C-r C-s .

Emacs Iswitchb , Ido Iswitchb.

+1

All Articles