Hi,
often I’m dealing with very large text files (~ 1GB) which are listed in my working folder. It can happen by accident that I click at such a big file and TM2 will become unresponsive for a while.
Would it be possible to at least add an alert or warning - which can cancel the opening process - if TM should open a big file (let’s say larger than 150MB - since TM2 works better with larger files than TM1.5)? Another idea would be to allow the cancellation of such a opening process by pressing CMD+W or whatever.
In addition to that: I had opened some files and by accident I opened such a 1.4GB file. Ok, I killed TM2, and I reopen it while pressing SHIFT to avoid restoring the opened files. Fine, but then if I choose to open my working folder again, TM2 remembers all opened files (which is really cool) but it tries again to load this big file. My only workflow I’m aware of was to rename that big file temporarily after killing TM2.
Kind regards, Hans
not what you're after I know, but could you filter out the large files from the list using .tm_properties?
On Thu, Jun 12, 2014 at 3:51 PM, Hans-Jörg Bibiko bibiko@eva.mpg.de wrote:
Hi,
often I’m dealing with very large text files (~ 1GB) which are listed in my working folder. It can happen by accident that I click at such a big file and TM2 will become unresponsive for a while.
Would it be possible to at least add an alert or warning - which can cancel the opening process - if TM should open a big file (let’s say larger than 150MB - since TM2 works better with larger files than TM1.5)? Another idea would be to allow the cancellation of such a opening process by pressing CMD+W or whatever.
In addition to that: I had opened some files and by accident I opened such a 1.4GB file. Ok, I killed TM2, and I reopen it while pressing SHIFT to avoid restoring the opened files. Fine, but then if I choose to open my working folder again, TM2 remembers all opened files (which is really cool) but it tries again to load this big file. My only workflow I’m aware of was to rename that big file temporarily after killing TM2.
Kind regards, Hans
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 13 Jun 2014, at 11:04, George McGinley Smith george@gsgd.co.uk wrote:
not what you're after I know, but could you filter out the large files from the list using .tm_properties?
well, it’s one option but then I have to name these files consistently and e.g. if it’s a XML file and the parser displays an error I’ve to remember to avoid clicking at the link …
Cheers, Hans
On 12 Jun 2014, at 15:51, Hans-Jörg Bibiko wrote:
[…] Would it be possible to at least add an alert or warning […]
I’ve added it to the relevant to-do. The “open file” code has a few issues, so it’s something I’m motivated to refactor.
[…] Another idea would be to allow the cancellation of such a opening process by pressing CMD+W or whatever.
I think the main problem with large files is (still) the (core) text layout which happens in response to Cocoa NSView layout code, which happens on the main thread, so rather difficult to allow aborting here.
[…] but then if I choose to open my working folder again, TM2 remembers all opened files (which is really cool) but it tries again to load this big file. My only workflow I’m aware of was to rename that big file temporarily after killing TM2.
Another workaround: File → Open Favorites… (⇧⌘O).
Under “Recent Projects” select your folder and press ⌘⌫. That will delete the saved state.
For the curious, the saved state is kept in ~/Library/Application Support/TextMate/RecentProjects.db.