Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image Source Completion for Sublime Text 2

First of all, I'm not entirely sure if this fits into stackoverflow, or should rather be placed into programmers or superuser. If I posted into the wrong page, I'm sorry.

To the question:

In Aptana Studio, for example, there's a very nice feature for the src-attribute for <img>-tags. When typing into the src-attribute, a directory-listing is shown in the autocomplete-contextmenu, so you can directly select image files and the path is inserted into the attribute.

Here is what I mean:

Aptana Img src

Is there any way, a plugin or something alike, so I can get this behaviour into Sublime Text 2? Preferably working for HTML-Markup and CSS background-images?

edit: Meanwhile I posted this on the sublime userecho, maybe something will come up trough this. I'll keep this question updated.

Sublime Userecho

like image 578
GNi33 Avatar asked Sep 19 '11 19:09

GNi33


People also ask

How do I enable autocomplete in Sublime Text?

By default, Sublime Text will automatically show the completions popup when a user is editing source code or markup, but not within prose in comments, strings or markups. Pressing the Esc key will hide the completions popup. To manually show the completions popup, press Ctrl+Space.

What is sublime text3?

Sublime Text 3 (ST3) is a lightweight, cross-platform code editor known for its speed, ease of use, and strong community support. It's an incredible editor right out of the box, but the real power comes from the ability to enhance its functionality using Package Control and creating custom settings.

Is Sublime Text editor safe?

Sublime Text has been the text editor of choice for many years. It is stable and reliable.

How do I turn off sublime suggestions?

Go to command palette & search for Preferences: Settings and set auto_complete: false in the User file, save it to disable auto complete.


1 Answers

I just created a plugin to do this. You can find it here: https://gist.github.com/1608287

EDIT: the plugin is now available through Package Control. Just search for "AutoFileName."

like image 158
Liam Cain Avatar answered Nov 02 '22 23:11

Liam Cain