1

I am trying to learn emacs in order to use orgmode.

I came from vscode universe.

There's a Cmd+P in vscode that allows search by filename easily. Looks like this.

enter image description here

Then i can use cursor keys to go up and down and hit enter it will open as new tab.

Is there an equivalent of this in emacs and open in either new buffer or new window?

I have installed dired, but i think it forces me to type out the exact path

Kim Stacks
  • 111
  • 3
  • 1
    The question isn't too clear. Your screenshot doesn't show the input pattern that's being matched, and you didn't cite it. What kind of fuzzy matching are you asking about? And Emacs find-file (C-x C-f) and Dired both support various kinds of fuzzy matching, depending on your value of option completion-styles. (Neither forces you to type the whole absolute file name ("exact path"). – Drew Nov 05 '21 at 02:44
  • And it looks like your screenshot and part of your description are about navigating through a list of recent files. Going up and down with cursor keys to pick a file name is not using any kind of fuzzy matching... – Drew Nov 05 '21 at 02:47
  • IMO, the first comment + built-in ido-mode + built-in project-find-file may serve as good starting points. – Y. E. Nov 05 '21 at 10:17

1 Answers1

1

There are several alternatives, but I use projectile. It lets me open a file within a project by typing only a short portion of the name, and not necessarily just a prefix. You can adjust somewhat how fuzzy the search is with other libraries, such as ido-mode.

It has a few other related features, such as searching the whole project for text, compiling the project, and so on.

https://github.com/bbatsov/projectile

db48x
  • 17,977
  • 1
  • 22
  • 28