zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
25.18k stars 1.18k forks source link

Go-to-anything #236

Open rnewton opened 8 years ago

rnewton commented 8 years ago

Any chance that we'll see a feature like sublime/atom's go-to-anything? If anyone is somehow not familiar, you can type in the name of a file, a line number, a function name, etc and the editor will open a new tab or scroll the requested content into the viewport. This sounds like something that might be better suited to a plugin, but having not explored the api yet, I'm not sure if everything is exposed the way it would need to be.

niieani commented 8 years ago

Go-to-anything / Type-to-do-anything would be fantastic. It would be solved if there was autocomplete in the command input box.

danmondy commented 8 years ago

I am for this feature, or even something slightly simpler. Has anyone written a plugin that would allow you to go-to a declaration (under cursor)? Golang for me personally, but any language would be interesting for me to see how it's done. I am guessing it would use Godoc. It's the feature that would enable me to make the switch.

jncraton commented 8 years ago

I'm currently experimenting with building something like this. Currently, it works a lot like the regular Open action except:

Here's the branch where I'm doing my experimentation if anyone is interested:

https://github.com/jncraton/micro/tree/goto-anything

jantb commented 7 years ago

Check out #463 It opens a box with fuzzy search for files under the current working directories and sub directories. Including a : at the end jumps to that line in the file.