How to use Sublime text GotToAnything with selected text - sublimetext2

Sublime text 2 GotToAnything was superb, I want to highlight a file name in my source code then I press the CTRL + P it will auto select that file. I can do copy and paste. But sometime its not quiet right.
Is there any plugin to shortcut to do that.

GotoSelection I haven't used this, but it seems to be just what you want.
The description: Small plugin for Sublime Text that pre-fills the Goto Anything overlay with the selected text or current word.

Related

Hide one line in Sublime Text 3

I have one line in a html file containing a base64 representation of an image. This line spans thousands of lines in the editor, which is a huge hassle when always scrolling past it.
Is there a good way in ST3 of hiding this line?
Select the text you want to hide, then from the Edit menu -> Code Folding -> Fold.
Note that folding is not stored in the session, and reopening the file or ST will display the text unfolded again.
You could also take a look at plugins designed to help you with this: https://packagecontrol.io/packages/Base64%20Fold
you can simply press ctrl+shift+{ and to revert back just press ctrl+shift+}

I don't have 'toggle_menu' action in Sublime Text 2

I wanted to bind hotkey in Sublime Text 2 like this:
[
{"keys": ["ctrl+alt+m"], "command": "toggle_menu"}
]
After I tried to use it, but nothing happend. Later I realised that I don't have 'toggle_menu' option at all. In ctrl+shift+p menu there is no view: Toggle Menu and in the View tab either.
enter image description here
Tell me how to add the 'toggle_menu' action, please help!
Sublime Text 2 has no ability to hide and show the menu, so there is no menu entry, command palette entry or command to toggle the state of the menu. This is also something that's outside the purview of any plugin. The page that told you about that particular command was mentioning Sublime 3 functionality.
As a result, if you want to add the toggle_menu command, you need to be using Sublime Text 3 and not Sublime Text 2. Sublime 3 includes this ability using that exact command, so what you've tried to do will work just fine there.

Visual cue to know whether a file has unsaved changes in Sublime Text editor

I recently moved to Sublime Text 3 for development and trying to figure out a way in which I can know whether a file is saved or not just by looking at it in the editor. For e.g.
Eclipse puts a star in front of the file name if there are unsaved changes
Notepad++ changes the tab color as red
Is there any such easy to see visual cue in Sublime Text 3 to know if a file has unsaved changes?
By default Sublime Text displays dot (•) instead of x used to close tabs when there are unsaved changes.
You can make this highlighting of modified tabs even more distinctive using following property which causes modified tabs to have different color:
{
"highlight_modified_tabs": true
}
The color of modified tabs with this property enabled will depend on the theme you are using. If you want to change it, either change the theme or change the color manually in your settings. See this answer for more details on that.
In Sublime text there is a indication on the tabs, a full circle is not saved, a cross (x) is a saved file, indicating that you could close it.
Not saved file:
Saved file:

How to make a specific file always visible on the sidebar everytime I open sublime text 3

I switched from Notepad++ to Sublime Text 3 last week and I'm loving it. I know Notepad++ don't have a feature like this also, but is there a plugin or setting on Sublime Text 3 that I can use to make a file always visible on my sidebar every time I open it? I have a single text file that has some login info and useful note for my development and I want Sublime to remember to at least add a shortcut on that file on my sidebar so that I can access it anytime I want to.
I want workdocs.php to be always visible on my sidebar when every I open my Sublime Text 3. Thanks in advance!
It's not exactly what you want but you could try Sublime FavoriteFiles:
https://github.com/facelessuser/FavoriteFiles
It's ST3 compatible and works well. You can assign keyboard short-cuts to the various commands or use Control + Shift + P to access them quickly.

Auto overwrite mode when writing commands in Sublime Text 2

In Sublime Text 2 it's possible to toggle overwrite mode with cmd+alt+o, but what I'd really like is to toggle it automatically on commenting, ie. whenever typing "//"
Is it possible without too much fuss?