How to open files in one single window when using Textmate 2 - textmate

When I want to open many files which are not in the same path or projects, I want to them to be opened in tabs not in separated windows.
Is there any setting or configuration item to do this?
I am using Textmate 2.
Thank you for any help or advise.

You can simply list all the files you want to open separated by a space. E.g.,
mate .zshrc .dotfiles/aliases Projects/scala/hello/src/greeter/Hello.scala
Opens three tabs in the same TextMate window, one each for the three files listed above. You can also use mate . to open all files in the current directory.

Related

suggest to add split and combine files from folder

File splitter and combine function of emeditor is very powerful,
but is support opened file and specified file only.
When we have a couple of files need to be splitted or combined.
It's not be able to work .
Can author add this function?
Ready to buy a lifetime liscense.
You can open all files with EmEditor before you combine files. This is partly because EmEditor needs to know exact file encodings, and bookmarks need to be set after files are open. Opening multiple files is easy and fast with EmEditor. You can select multiple files in the Open dialog box, or you can drag and drop multiple files from Windows Explorer. Splitting files can be already possible without opening files.

How to open containing folder of file in Sublime Text 3 in OSX?

How can I open the containing folder of an open file in Sublime Text 3 in OSX? Prefer an answer that shows me where the menu option is, rather than setting up a command-line.
Some other posts I've searched suggest right-clicking the file and selecting the Open Containing Folder option, but I don't see it on mine...
What you read is correct, but you may be falling afoul of the fact that the context menu that you get when you right click on the file tab is different than the one that you get if you right click in the file itself and, counter-intuitively, the option for opening the containing folder (or copying the path of the file to the clipboard) only appears in the file context menu.
The option you want is Reveal in Finder, which is near the bottom of the menu (note that my menu may be slightly different than yours depending on installed packages):

How do I use Mac OS aliases in Sublime Text 3?

I want to open the tree of folders which contains any code on my Mac in Sublime 3. Something like this:
But I don't have all of it in one folder, and it isn't convenient enough to open many folders in Sublime every time I close the app. So I have created 'aliases' (via Finder) to my folders and put them to one (folder), which i want to open with Sublime.
That didn't work out. Sublime opens these aliases as hex code. While ordinary folders open well.
So the main question: is there a way to make this work as I thought via preferences, or any plugin?
Use symbolic links instead by opening Terminal and using ln -s <SOURCE> <ALIAS>.
You can keep any number of folders you want collected in one place by using projects. Simply drag the folders you want, in the order you want, into the sidebar. Then, select Project -> Save Project As... and save the file anywhere you want with the .sublime-project extension. While you're at it, make sure you have
"hot_exit": true
in your user settings, as this enables you to close windows which have a project assigned to them, and all open files and unsaved changes are automatically preserved. When you next open the project, everything will be the same.

Take multiple .zip files and extract them to external location

This is something that I thought would be extremely simple to do. A math teacher handles her notes through Dropbox and gets .zip files emailed to her containing updates (by updates- they're the full folders so she can delete the old and extract the new ones in their places). She asked if it was possible to extract the zip files, then copy them to the dropbox. Coming from a Linux/Mac point of view I thought it would be easy- unzip command with -d... Little did I know Windows doesn't support unzip. I've tried googling ways to do this, and found that windows doesn't seem to have a default 'unzip' command of any kind? And when trying to copy the files, wildcards don't work either??? She gets 7+ .zip files at a time, all are named "Unit (number).zip" So I was using Unit*.zip. Any help/ideas would be appreciated- I already suggested she tries ubuntu because she constantly states how she likes the way my laptop looks.
WinZip can quickly unzip multiple files through its drag and drop interface. You can select multiple WinZip files, right click, and drag them to a folder to unzip them all with one operation.
From an open folder window, highlight the WinZip files you want to Extract
Right click in the highlighted area and drag to the destination folder
Release the right mouse button
Choose WinZip Extract to here
To unzip multiple Zip files without drag and drop:
From an open folder window, highlight the WinZip files you want to Extract
Right click in the highlighted area
Choose WinZip Extract to ...
Enter the destination folder
Source http://kb.winzip.com/kb/entry/77/
You can easily use the GUI for this:
Here is a trick I have found for extracting multiple zips at once without installing any extra programs:
Select the zip files that you want to extract
Right-drag them to an empty space (in the same folder is fine)
Select Extract and follow the prompts
Yes, it is not quite as nice as using the command prompt, but it does get the job done.
Also, wildcards do work with command prompt. Perhaps you weren't issuing the command correctly. This command works fine for me:
copy Unit*.zip D:\folder2\

Textmate - how do I create a new empty file in the same folder as the current file?

With the Textmate "filesystem explorer tray" open I would like to create an empty file in the same folder as the currently open file. I cannot see a simple way of doing this barring creating a new file and then hunting through the file system in the save dialog.
Is there an easier way?
With the first document open in TextMate, type the following anywhere in that document (although a blank line works best):
mate "$TM_DIRECTORY"/mynewfile.txt
or even
mate "$(dirname "$TM_FILEPATH")"/mynewfile.txt
Then, highlight the text and hit Control-r. If it's on its own line, you don't even need to highlight it. Just be on the same line... Of course, you don't need to type that all the time. This is what we have snippets, commands and macros for!

Resources