What do I do to make Sublime text stop ignoring filenames that start with a dot - sublimetext3

I am using Sublime Text editor and I need to change the settings for Sublime 3 to open files that start with a dot like .gitignore. Please let me know where in the settings I need to make the change. I am using Windows OS fyi.

This isn't a Sublime-specific option, but an operating system one, as the OS determines what is displayed in file dialogs as well as the file system explorer. To set the option on Windows, first open Windows Explorer and navigate to the folder containing the dotfile you want to view. Then, in the View tab, click the Options button on the far right, then select Change folder and search options.
You can also find Options under the File menu.
The Options window will now pop up. Select the View tab, then select the option Show hidden files, folders, and drives. Next, click on the Apply to Folders button at the top.
Similar options are also available on macOS and Linux.

Related

Switch to tab by file name in text editor

I have multiple files open in different tabs in sublime text 3. Is there a way to switch to a tab by the name of the file that's open in it? If there's a different text editor that supports this, it'll be equally helpful. Thank you!
If you open the Goto Anything popup menu by hitting CtrlP, the currently opened files will be listed at the top.
You can also select file tabs at different positions in the tab bar by using Alt#, where # is the file's position - Alt1 for the first file on the left, Alt2 for the second from left, and so on. You can use CtrlPgUp/CtrlPgDn to navigate through the tabs in order, and CtrlTab/CtrlShiftTab to navigate through the stack of recently focused tabs.
All of these options are available under the Goto → Switch File menu. Some of the keyboard shortcuts may be different on macOS.
CudaText editor (free) has the command "Find tab by title" in the plugin CudaExt. Command shows menu with the filter field. To install the plugin: "Plugins / Addon manager / Install".

Sublime text group opened files in folders

Can you group opened files in the left "OPEN FILES" panel in folders somehow? Or like tree layout like windows explorer.
You can add folders to the side bar, which you can expand and collapse like Windows Explorer, but there is currently no way to group open files other than to have them in separate windows. However, they are working on functionality in Sublime Text 4 that could enable you to have multiple projects or groups open in one window. ST4 is still very much in alpha status and is not stable enough for everyday use.

Sublime Text 3: how do you configure the display and/or sorting of the Window menu?

If you open a couple folders in Sublime Text 3, you'll see entries for each folder added to the Window menu. It appears that the default format of each entry on the menu is:
(active-filename) - (foldername)
The list on the Window menu is sorted alphabetically starting with (active-filename). Whenever you select a file to work on, the (active-filename) part of the entry changes, and the list reorders itself. If you have a dozen Windows open, the position of a given window in the list will change all the time as you work with files. This makes it hard to find a window when repeatedly switching between Windows.
Is there a way to configure Sublime Text 3 to display only the folder name in the list on the Windows menu? Alternatively, is there a way to configure it to sort on folder name and not on the ever-changing "active" filename?
Unfortunately there open issues around this but no attention form the SublimeText Team yet
https://forum.sublimetext.com/t/alphabetize-window-menu-by-folder-not-file-name/13017/4
https://github.com/SublimeTextIssues/Core/issues/1972
https://github.com/SublimeTextIssues/Core/issues/1445
https://github.com/SublimeTextIssues/Core/issues/1179

Is there a way to use Sublime to show file previews in Windows Explorer for certain files?

I'd like to be able to preview all plain-text files in the Windows File Explorer Preview Pane. To illustrate, here's what sublime files currently look like:
As you can see, Context.sublime-menu is highlighted, but a preview doesn't appear. They're just plain-text files though - you can open them in Notepad. Is there a way to tell windows "Use notepad (or sublime) to view this type of file the preview pane"?
Thanks to #KeithHall's link - while it didn't work for me - got me started on a pretty long path to finally figuring this out. And finding a better solution than I thought existed.
In short, simply install the Delphi Preview Handler. Which pretty much gives you an IDE in the preview pane. It's pretty simple to use and just awesome.
After installation, if you click on a .js file in Windows File Explorer you can immediately see a different preview pane.
Registering Other Extensions
The Preview Handler doesn't compensate for all plain-text files unfortunately, so you're gonna have to manually add the sublime extensions and any other extensions in the Registry Editor.
Here's the bird's-eye view of this process:
Find the key/value that instructs Windows to use Delphi as the preview handler for .js files.
Copy the key/value
Apply that to each extension you want to preview.
Here's more in-depth instructions:
First, you need to find the ID of the Preview Handler, and its Default Value
win + rregedit > expand HKEY_CLASSES_ROOT
Find .js and expand it.
.js should have a subkey named shellex, expand that
You need to recreate this shellex key for each extension you want to add, so copy its contents:
shellex should have a sub-key named with a bunch of numbers, letters, and dashes, this is the ID of the preview pane (I think)
Right-Click that > Rename > Copy > Cancel
Open Sublime > Create a new file > Paste
Go back to the Registry Editor, Click that ID subkey, and a String value called (Default) should appear in the right side of the window.
Double-Click that
Copy > Cancel > Paste in sublime. This is the ID of the Preview Handler (I think).
At this point there should be 2 IDs in the sublime file.
Now You're ready to add these same values to other extensions.
Find the extension(s) you want to change. For me it was all the sublime file-types.
Right-click > New > Key > call it shellex
Go to sublime, copy the first value
Right-click shellex > New > Key > Paste
Go to sublime, copy the second value
Click the new key and make it's default value that 2nd id.
So it should look similar to this:
v .sublime-commands
| v shellex
| |- {823BD1D4-...
And in the right side of the window:
Name Type Data
(Default) REG_SZ {AD9955...
Sources:
This Answer by #rxantos pointed me in the direction of the Delphi Preview Handler.
I spent about an hour looking for this app but never found it.
This Answer by #tvj247 is perhaps a more simple solution, but my HKey structure didn't match his (I'm using Windows 10).
And as for fiddling with the Registry, that was trial, error, and comparing sublime extension keys to js, html and css.

Sublime Text: delete file in group?

I'm looking for a way to delete from the system (not just remove from the opened session) a given file, within Sublime 3 (3103).
The file in question is opened in Sublime, and shows in the sidebar in a Group.
I've installed the Sidebar Enhancements but this only adds the option, in the context menu, to delete a file that is opened within a Folder.
For files in Groups, right clicking on its name in the sidebar only shows the options: Close, Close Others, Close Others Below, New File, Open File.
Is there some way of performing this rather simple task that I might be missing?
Try:
TabsExtra
It gives you the ability to delete files from tab right-click menus.

Resources