TextMate frozen attempting to open a large file - textmate

I attempted to open a large javascript file with TextMate and it is now frozen. I have tried closing and reopening TextMate but it continues to freeze due to the recently opened file. Is there a way to reset/clear the recently opened files in TextMate?

If you open TextMate from the Finder with a double click and hold shift pressed, you will get this dialog:
"Disable" will do exactly what you want, "Restore Documents" will continue to restore them.

Try setting this parameter:
defaults write com.macromates.textmate OakDisableSessionRestore 1

Related

stop textmate from reloading a file

I asked Textmate to load something much too large for it and then forced the application to quit. Now, when I reopen TextMate, it keeps trying to load that file and consequently can't open.
How do I reset the state of Textmate, so that it won't try to open this file?
Am not sure of the older versions but latest version of Mate has an option skip restoring of old files on reopen by holding the Shift button.
You can enable that feature in preferences under At startup
When you hold Shift you'll get an alert like this, which will help you skip reopening of large files.
I hope you already found this solution on your own.

How to open default project in Sublime Text when starting app (mac)

When I click the sublime text icon (to start/open it) I would like it to default to either a specific folder, or the last folder that was open. This SO question was helpful:
Set Sublime Text's default directory when opened
However I have set hot_exit, remember_open_files, and close_windows_when_empty and none of this seems to work for me.
If I actually 'quit' sublime text down in the dock, then it will open the last project I had open (in addition to another blank window).
Any way to make it remember my project without having to quit the app?
I set hot_fix, remember_open_files, and close_windows_when_empty as described in Set Sublime Text's default directory when opened, and this works on macOS IF you 'quit' sublime rather than closing the app using the 'x' in the upper right hand corner of the app. So for me, when I want to close sublime I go down in the doc and right click on sublime and choose 'quit', and when I open it again, the last project I had open will be displayed.
Another quick option is to use command-q to quit the app.

How to change file associations in Mac OS X

So I used Xcode and all. Now, whenever I open my text files it opens automatically with Xcode. How do I undo this?
RightClick on the file name -> Open With -> Choose the editor you wish to open with this kind of file. And that sets to be default editor for opening files with that particular file extension ( i.e., .txt ) when opened in future.
Edit: The above procedure is not a permanent one. Try this -
Right click on the file name.
Choose Get Info
Choose one from the Open With drop down. This will be set as default application and is used in future if opened the .txt file.
Right-click any text-file an select "Get-info", then choose your preferred Text-editor under "Open with" and click "Change all..."
You can change program association by right clicking on your file and clicking on "Get Info". This will bring up another dialog in which you can change the program associated with that file type.
You can find visual instructions here: http://osxdaily.com/2009/10/25/change-file-associations-in-mac-os-x/

Multiple editor windows in Xcode

When coding in Xcode, I double-click a file in the "Groups and files" list, and it opens a new editor window. I have several of these open at once.
Until today.
Today, when I double-click a file in the list, it opens the file in the last editor window I was using, meaning I can only have one editor window up at any one time.
I guess I've switched some option somewhere by mistake. How do I get it back to the way I like it?
I'm using Xcode 3.2.5
In the top right of the editing window is an icon that says "grouped", perhaps you clicked on it by accident.
Click on it so it says "ungrouped", and you'll be back to opening multiple windows.
perhaps preferences>General>Open Counterpart in same Editor

Editor doesn't open in Xcode

i have a weird problem with Xcode. Here's a screenshot:
When i usually clicked on the file in the left column it'd open in source code editor on the right. Now it doesn't happen. Does anyone know how to get it back the way it was before? it drives me crazy
greetings
peter
What happens if you click on the Project, test, at the top, and then click in the columns on the right. Will it open the file in the editor?
Quit Xcode and relaunch it.
I see this is a little old now, but I had the same problem. The thing that I had to do was to open the "interface builder" program, wich is the editor for the file, then find and open the .xib file from that program. Next time I tried open it with Xcode it worked.
Drag a source file from the Groups and Files pane (usually on the left) over into the pane that says "No Editor". No need to reset the defaults.

Resources