Hi everyone,
I hope I won't trigger any flame war here but I would like very to have a scratchpad as has appeared in BBedit 9.0. I find myself using TextMate to reformat "raw data files" and I often have a blank file open somewhere where I paste bunch of texts, do something with it and paste it back in the original file. For me at least, it would be very useful.
Thanks in advance.
On Sep 2, 2008, at 11:49 AM, guerom00 wrote:
I hope I won't trigger any flame war here but I would like very to have a scratchpad as has appeared in BBedit 9.0. I find myself using TextMate to reformat "raw data files" and I often have a blank file open somewhere where I paste bunch of texts, do something with it and paste it back in the original file. For me at least, it would be very useful.
Is there any reason to stop using blank files? I saw the feature listed in BBEdit 9, but I didn't really see the attraction.
--- David Zhou david@nodnod.net
Convenience I guess… Right now, I don't save those temporary blank files because I don't want a bunch of "untitled.txt" on my Desktop or so… If I understood correctly, this scratchpad is a space with is automatically saved after each modification.
On Sep 2, 2008, at 2:19 PM, guerom00 wrote:
Convenience I guess… Right now, I don't save those temporary blank files because I don't want a bunch of "untitled.txt" on my Desktop or so… If I understood correctly, this scratchpad is a space with is automatically saved after each modification.
If I understand the BBEdit scratchpad correctly, it's basically equivalent to having a scratchpad.txt on your desktop that autosaves. IIRC, there's no way in BBEdit to have multiple scratchpads.
--- David Zhou david@nodnod.net
Le 02-09-08 à 11:49, guerom00 a écrit :
I find myself using TextMate to reformat "raw data files" and I often have a blank file open somewhere where I paste bunch of texts, do something with it and paste it back in the original file.
I use PTHPasteboard Pro for this - besides clipboard history, you can also have clippings that you can copy stuff into and then manipulate / paste back into another application later. Clippings are saved across restarts and you can have lots of 'em, and as well alter by filtering it through a bunch of different text filters (line endings, scripts, etc.).
I'm kind of surprised PTHPasteboard isn't more popular as it's one of the best of this kind of application.
http://pth.com/products/pthpasteboard/
Neil
The bonus would be multiple scratchpads, yes. One per TextMate opened window. I'll have a look at PTHPasteboard, thanks :)
On 02.09.2008, at 20:32, guerom00 wrote:
The bonus would be multiple scratchpads, yes. One per TextMate opened window.
I do not know but one could do this also with TM's built-in functionality.
Supposing one has a tmCommand with this shell script bound to APPLE+C:
Input: selection or nothing Output: none
Command: [[ -z $TM_SELECTED_TEXT ]] && exit 200 date "+%n+==========+ %Y-%m-%d %H:%M:%S" >> ~/Desktop/Scratch.txt echo -en "$TM_SELECTED_TEXT" | tee -a ~/Desktop/Scratch.txt | pbcopy
This script appends a time stamp line with an unique beginning followed by the content of the selection to ~/Desktop/Scratch.txt.
One also could add the file name of course. Then one could write an easy script (maybe with a GUI) to look for a specific scratch by time, file name, content etc.
OK, this cannot handle images and rtf stuff, but I do not need this in TM.
Cheers,
--Hans
On 03/09/2008, at 4:28 am, Neil Lee wrote:
I'm kind of surprised PTHPasteboard isn't more popular as it's one of the best of this kind of application.
I'll second that!
Hi
I haven't seen BBEdit's scratchpad but in Coda, by Panic Software, there is a 'Clips' feature which I find to be very useful.
This keeps clips for the current site and globally.
You can assign an abbreviation to expand into each clip if you wish.
Clips are editable.
Coda is basic compared to TextMate but lovely for editing CSS with its special interface for that purpose.
I find I use Coda along with TextMate for creating/editing web-sites.
Patrick
On 2 Sep 2008, at 16:49, guerom00 wrote:
Hi everyone,
I hope I won't trigger any flame war here but I would like very to have a scratchpad as has appeared in BBedit 9.0.
On 5 Sep 2008, at 14:29, Patrick James wrote:
I haven't seen BBEdit's scratchpad but in Coda, by Panic Software, there is a 'Clips' feature which I find to be very useful.
This keeps clips for the current site and globally.
You can assign an abbreviation to expand into each clip if you wish.
Clips are editable.
Isn’t this their version of snippets? http://manual.macromates.com/en/snippets
And as for assigning abbreviations: http://manual.macromates.com/en/bundles#tab_triggers
On 7 Sep 2008, at 14:01, Allan Odgaard wrote:
On 5 Sep 2008, at 14:29, Patrick James wrote:
I haven't seen BBEdit's scratchpad but in Coda, by Panic Software, there is a 'Clips' feature which I find to be very useful.
This keeps clips for the current site and globally.
You can assign an abbreviation to expand into each clip if you wish.
Clips are editable.
Isn’t this their version of snippets? http://manual.macromates.com/en/snippets
Yes of course and their clips are very basic indeed compared with TextMate snippets :)
And as for assigning abbreviations: http://manual.macromates.com/en/bundles#tab_triggers
Of course, yes, TextMate rules for these things!
Patrick
Hi! One more way to have "text snippets" right in your hand -- try TextExpander (former Texpander). BTW you can use in with almost any app (MacOS X). Nice and handy.
-- Alexey
On Sun, Sep 7, 2008 at 17:45, Patrick James pj002@mac.com wrote:
On 7 Sep 2008, at 14:01, Allan Odgaard wrote:
On 5 Sep 2008, at 14:29, Patrick James wrote:
I haven't seen BBEdit's scratchpad but in Coda, by Panic Software, there is a 'Clips' feature which I find to be very useful.
This keeps clips for the current site and globally.
You can assign an abbreviation to expand into each clip if you wish.
Clips are editable.
Isn't this their version of snippets? http://manual.macromates.com/en/snippets
Yes of course and their clips are very basic indeed compared with TextMate snippets :)
And as for assigning abbreviations: http://manual.macromates.com/en/bundles#tab_triggers
Of course, yes, TextMate rules for these things!
Patrick
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi
I use TextExpander and I really like it :)
I'm not the OP, but whilst on subject of snippets/clippings etc I am very fond of iClip. This does not have the capabilities of PTHPasteboard mentioned in this thread but the interface is I find very good to use.
Patrick
On 7 Sep 2008, at 17:41, Alexey Blinov wrote:
Hi! One more way to have "text snippets" right in your hand -- try TextExpander (former Texpander). BTW you can use in with almost any app (MacOS X). Nice and handy.
guerom00 wrote:
I hope I won't trigger any flame war here but I would like very to have a scratchpad as has appeared in BBedit 9.0. I find myself using TextMate to reformat "raw data files" and I often have a blank file open somewhere where I paste bunch of texts, do something with it and paste it back in the original file. For me at least, it would be very useful.
Why can't you make a bundle that does something like this? I don't understand the benefit of baking this into the app itself.
-Jacob
Jacob Rus-4 wrote:
Why can't you make a bundle that does something like this?
-Jacob
Because I don't know how.
On 08.09.2008, at 12:23, guerom00 wrote:
Jacob Rus-4 wrote:
Why can't you make a bundle that does something like this? Because I don't know how.
I've already mentioned it within this thread that it's not so difficult to do this. Maybe write down some keynotes what'is desired. Maybe I find some time next week to start with such a bundle.
My approach would gather all pasties in one file marked with a time stamp, file name, and language grammar. Then one could write a 'look for pasties' function which shows up all pasties filtered by the current doc/language grammar. Etc.
To applay a key combo/tab to a frequently used scratch I would suggest to use TM's snippet system.
--Hans
On 8 Sep 2008, at 12:58, Hans-Jörg Bibiko wrote:
On 08.09.2008, at 12:23, guerom00 wrote:
Jacob Rus-4 wrote:
Why can't you make a bundle that does something like this? Because I don't know how.
I've already mentioned it within this thread that it's not so difficult to do this. Maybe write down some keynotes what'is desired. Maybe I find some time next week to start with such a bundle.
My approach would gather all pasties in one file marked with a time stamp, file name, and language grammar. Then one could write a 'look for pasties' function which shows up all pasties filtered by the current doc/language grammar. Etc.
To applay a key combo/tab to a frequently used scratch I would suggest to use TM's snippet system.
Hello Hans
I feel there is a chance that maybe some people would find this bundle very useful if you found time to create it.
I have understood, I think, what the OP is requesting although I haven't used BBEdit 9.
What I used to do with BBEdit 8 and earlier versions was simply to have an AppleScript which opened a new file and saved it in a "temporary" folder named with date and time formatted like this: yyyy- mm-dd-hh-mm-ss
This meant that I could always create a new "scratch pad" if you like which was saved in that temporary folder and could, if desired, be retrieved, however retrieval usually wasn't very necessary. I didn't want to do the "scratch pad" activities on an unsaved file because if the application crashed then I'd lose it.
It would be a great exercise for me to learn how to create this bundle myself in TextMate and so if it is not a good time for you to consider such a thing then it will be no problem at all.
Patrick
On Sep 8, 2008, at 2:42 PM, Patrick James wrote:
What I used to do with BBEdit 8 and earlier versions was simply to have an AppleScript which opened a new file and saved it in a "temporary" folder named with date and time formatted like this: yyyy- mm-dd-hh-mm-ss
This meant that I could always create a new "scratch pad" if you like which was saved in that temporary folder and could, if desired, be retrieved, however retrieval usually wasn't very necessary. I didn't want to do the "scratch pad" activities on an unsaved file because if the application crashed then I'd lose it.
It would be a great exercise for me to learn how to create this bundle myself in TextMate and so if it is not a good time for you to consider such a thing then it will be no problem at all.
Attached is a bundle “Scratch” containing a single command “Scratch from Current Selection / Line”. When editing, you decide you want some scratch, so you make a selection hit ⌃⌥⌘C and off you go. Scratches files are The next step would probably be to add a command to list all previous scratches… you could do this quite easily as a html command with txmt:// links to old scratches.
–Alex
Hi
That is great :)
Thank you very much.
I can't speak for the OP but for my purposes that is top class.
There is a mods I might make for my own activities, but it is lovely to have something to start on :)
I think the date format %Y-%b-%d.%H.%M would be nice to have month as numerals so that the files are going to sort in date order in the - Tmp- folder.
But that is fine, I'll look that up :)
Patrick
On 8 Sep 2008, at 16:05, Alex Ross wrote:
Attached is a bundle “Scratch” containing a single command “Scratch from Current Selection / Line”. When editing, you decide you want some scratch, so you make a selection hit ⌃⌥⌘C and off you go. Scratches files are The next step would probably be to add a command to list all previous scratches… you could do this quite easily as a html command with txmt:// links to old scratches.
–Alex
On Sep 8, 2008, at 8:16 PM, Patrick James wrote:
Hi
That is great :)
Thank you very much.
I can't speak for the OP but for my purposes that is top class.
There is a mods I might make for my own activities, but it is lovely to have something to start on :)
I think the date format %Y-%b-%d.%H.%M would be nice to have month as numerals so that the files are going to sort in date order in the - Tmp- folder.
of course you are right. I'm not even sure why I didn't do that to begin with. I fixed it in the newer scratch bundle I just sent to the mailing list.
So I do have a bug in my case : a blank scratch file is created on my Desktop... Can't understand why...
Alex Ross-8 wrote:
On Sep 8, 2008, at 10:57 PM, guerom00 wrote:
So I do have a bug in my case : a blank scratch file is created on my Desktop... Can't understand why...
Hm.
In a blank document what do you get when you type
echo $TMPDIR
and hit ⌃R?
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
/var/folders/br/brYTEkzUFIKo2VhgCqjqkU+++TM/-Tmp-/
So it's OK… I know about shell script and understand your command. But can't understand how a file is created on my Desktop… What is this “textmat_scratch_” function you're using ?
On Sep 8, 2008, at 11:08 PM, guerom00 wrote:
Alex Ross-8 wrote:
On Sep 8, 2008, at 10:57 PM, guerom00 wrote:
So I do have a bug in my case : a blank scratch file is created on my Desktop... Can't understand why...
Hm.
In a blank document what do you get when you type
echo $TMPDIR
and hit ⌃R?
/var/folders/br/brYTEkzUFIKo2VhgCqjqkU+++TM/-Tmp-/
So it's OK… I know about shell script and understand your command. But can't understand how a file is created on my Desktop… What is this “textmat_scratch_” function you're using ?
It's not a function, it's just a string that is supposed to be a part of the temporary filename.
What is the file name that gets created on the desktop?
Do you still get a file on the desktop with the scratch bundle attached to this message?
The same. On my Desktop is created a file whose name is $(date +%F.%H.%M.%S).XXXX i.e. without the “textmate_scratch_” part
Alex Ross-8 wrote:
On Sep 8, 2008, at 11:08 PM, guerom00 wrote:
Alex Ross-8 wrote:
On Sep 8, 2008, at 10:57 PM, guerom00 wrote:
So I do have a bug in my case : a blank scratch file is created on my Desktop... Can't understand why...
Hm.
In a blank document what do you get when you type
echo $TMPDIR
and hit ⌃R?
/var/folders/br/brYTEkzUFIKo2VhgCqjqkU+++TM/-Tmp-/
So it's OK… I know about shell script and understand your command. But can't understand how a file is created on my Desktop… What is this “textmat_scratch_” function you're using ?
It's not a function, it's just a string that is supposed to be a part of the temporary filename.
What is the file name that gets created on the desktop?
Do you still get a file on the desktop with the scratch bundle attached to this message?
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi,
I've just played with this bundle. It is quite straightforward. Then I had a tiny idea to manage these scratches.
On one hand I shut down my computer very seldom thus it could happen that I have many scratches and on the other hand while coding with different languages it would be nice to filter and search for scratches.
My approach is to display all these scratches rss-feed-like. I 'borrowed' Apple's JavaScript library to visualize rss feed in Safari and I modified it only a bit. By doing so one has a rather simple GUI to manage scratches.
To illustrate I took a screencast http://www.bibiko.de/RSS_Scratches.mov (5MB)
one can -filter scratches according to all file extension of scratches -sort them by Grammar, Content, Date -searching -change the display length of scratches -buttons for editing, copy a scratch, copy&paste a scratch, erase a scratch
If this is interesting I can send Alex the source code. It's written in Ruby and make usage of the rss js lib and runs on Tiger and Leopard.
--Hans
On Sep 17, 2008, at 8:19 PM, Hans-Jörg Bibiko wrote:
Hi,
I've just played with this bundle. It is quite straightforward. Then I had a tiny idea to manage these scratches.
On one hand I shut down my computer very seldom thus it could happen that I have many scratches and on the other hand while coding with different languages it would be nice to filter and search for scratches.
My approach is to display all these scratches rss-feed-like. I 'borrowed' Apple's JavaScript library to visualize rss feed in Safari and I modified it only a bit. By doing so one has a rather simple GUI to manage scratches.
To illustrate I took a screencast http://www.bibiko.de/RSS_Scratches.mov (5MB)
one can -filter scratches according to all file extension of scratches -sort them by Grammar, Content, Date -searching -change the display length of scratches -buttons for editing, copy a scratch, copy&paste a scratch, erase a scratch
If this is interesting I can send Alex the source code. It's written in Ruby and make usage of the rss js lib and runs on Tiger and Leopard.
by all means, send it over. if you have access to svn, you can just add the command to Scratch.tmbundle in Review.
On 17.09.2008, at 20:46, Alex Ross wrote:
On Sep 17, 2008, at 8:19 PM, Hans-Jörg Bibiko wrote:
My approach is to display all these scratches rss-feed-like. I 'borrowed' Apple's JavaScript library to visualize rss feed in Safari and I modified it only a bit. By doing so one has a rather simple GUI to manage scratches.
by all means, send it over. if you have access to svn, you can just add the command to Scratch.tmbundle in Review.
I've just did it ;)
--Hans
On Sep 17, 2008, at 9:11 PM, Hans-Jörg Bibiko wrote:
On 17.09.2008, at 20:46, Alex Ross wrote:
On Sep 17, 2008, at 8:19 PM, Hans-Jörg Bibiko wrote:
My approach is to display all these scratches rss-feed-like. I 'borrowed' Apple's JavaScript library to visualize rss feed in Safari and I modified it only a bit. By doing so one has a rather simple GUI to manage scratches.
by all means, send it over. if you have access to svn, you can just add the command to Scratch.tmbundle in Review.
I've just did it ;)
Cool! So did we replicate this BBEdit feature and make it better as well?
On 17.09.2008, at 21:37, Alex Ross wrote:
On Sep 17, 2008, at 9:11 PM, Hans-Jörg Bibiko wrote:
On 17.09.2008, at 20:46, Alex Ross wrote:
On Sep 17, 2008, at 8:19 PM, Hans-Jörg Bibiko wrote:
My approach is to display all these scratches rss-feed-like. I 'borrowed' Apple's JavaScript library to visualize rss feed in Safari and I modified it only a bit. By doing so one has a rather simple GUI to manage scratches.
Cool! So did we replicate this BBEdit feature and make it better as well?
This was only a fast written scratch ;P
One can enhance it into any directions but one should wait for feedback. I mean what is really useful?
On the other hand this rss-like stuff could also be used by other bundles to display any kind of information.
--Hans
When I “ svn up”, it doesn't update the Scratch bundle… Do I have to do something special ?
TIA
On Sep 17, 2008, at 11:05 PM, guerom00 wrote:
When I “ svn up”, it doesn't update the Scratch bundle… Do I have to do something special ?
Yes, the bundle is in Review so you'll have to check it out from there.
svn co http://macromates.com/svn/Bundles/trunk/Review/Bundles/Scratch.tmbundle
Yeah, I figured it out. Thanks. This is an awesome bundle. Personally, it is very useful for me. Thanks again :)
It is nothing short of amazing.
Congratulations, thank you, I love you all.
This made my day : )
I just installed the Scratch Bundle from the SVN repository and when I try to run it, I get an error message:
/tmp/temp_textmate.ABC:5 in `require': no such file to load -- / Applications/Textmate.app/Contents/SharedSupport/Support/lib/tm/ tempfile (LoadError)
Any thoughts? Running on Leopard.
Thanks! --Kai
On Sep 18, 2008, at 3:32 AM, Ale Muñoz wrote:
On 18.09.2008, at 15:27, Kai Janson wrote:
I just installed the Scratch Bundle from the SVN repository and when I try to run it, I get an error message:
/tmp/temp_textmate.ABC:5 in `require': no such file to load -- / Applications/Textmate.app/Contents/SharedSupport/Support/lib/tm/ tempfile (LoadError)
Any thoughts? Running on Leopard.
Actually this means that /Applications/Textmate.app/Contents/ SharedSupport/Support/lib/ is not up-to-date. You can make a svn checkout.
But I guess you can simply comment out that line in Scratch from cur Sel/Line. This is AFAIK not needed.
--Hans
Uhm, how do I update all the Bundles and Support packages? I'd like to get it up2date.
Thanks, --Kai
On Sep 18, 2008, at 8:32 AM, Hans-Jörg Bibiko wrote:
On 18.09.2008, at 15:27, Kai Janson wrote:
I just installed the Scratch Bundle from the SVN repository and when I try to run it, I get an error message:
/tmp/temp_textmate.ABC:5 in `require': no such file to load -- / Applications/Textmate.app/Contents/SharedSupport/Support/lib/tm/ tempfile (LoadError)
Any thoughts? Running on Leopard.
Actually this means that /Applications/Textmate.app/Contents/ SharedSupport/Support/lib/ is not up-to-date. You can make a svn checkout.
But I guess you can simply comment out that line in Scratch from cur Sel/Line. This is AFAIK not needed.
--Hans
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 18.09.2008, at 16:58, Kai Janson wrote:
Uhm, how do I update all the Bundles and Support packages? I'd like to get it up2date.
Thanks, --Kai
Look at http://manual.macromates.com/en/bundles chapter 5.7.4
Make sure that LC_CTYPE is set to en_US.UTF-8 and of course make a copy of /Applications/TextMate.app/Contents/ SharedSupport/Support/lib
or checkout my 'GetBundles' bundle from the Review trunk. Under 'Advanced Drawer' you will find a button which does it automatically.
--Hans
Hi,
On Sep 18, 2008, at 4:17 PM, Hans-Jörg Bibiko wrote:
On 18.09.2008, at 16:58, Kai Janson wrote:
Uhm, how do I update all the Bundles and Support packages? I'd like to get it up2date.
Thanks, --Kai
Look at http://manual.macromates.com/en/bundles chapter 5.7.4
Make sure that LC_CTYPE is set to en_US.UTF-8 and of course make a copy of /Applications/TextMate.app/Contents/ SharedSupport/Support/lib
or checkout my 'GetBundles' bundle from the Review trunk. Under 'Advanced Drawer' you will find a button which does it automatically.
Sorry but I'm confused. Are you suggesting that we svn update the SharedSupport *inside* the Application Bundle? Shouldn't we update the Support folder inside /Library/Application\ Support/TextMate/Support as the docs show? (or even ~/Library/Application Support/TextMate/ Support)
I might be reading the 5.7.4 section the wrong way, but I find it strange that I should touch the App bundle at all.
Best regards,
On 18.09.2008, at 19:56, Pedro Melo wrote:
Sorry but I'm confused. Are you suggesting that we svn update the SharedSupport *inside* the Application Bundle?
A short answer: Yes. The reason for that is that this folder comes with any TM release. Allan works on TM 2.0 exhaustively thus there was no new release for TM 1.x. But the development goes further and some of the TM coders are making usage of the new Support/lib stuff. That's why the only way to use these commands/scripts/bundles which make usage of the new stuff is to do a svn update of that folder.
Cheers, --Hans
On Sep 18, 2008, at 8:27 PM, Hans-Jörg Bibiko wrote:
On 18.09.2008, at 19:56, Pedro Melo wrote:
Sorry but I'm confused. Are you suggesting that we svn update the SharedSupport *inside* the Application Bundle?
A short answer: Yes. The reason for that is that this folder comes with any TM release. Allan works on TM 2.0 exhaustively thus there was no new release for TM 1.x. But the development goes further and some of the TM coders are making usage of the new Support/lib stuff. That's why the only way to use these commands/scripts/bundles which make usage of the new stuff is to do a svn update of that folder.
Ah, short answer is NO. Nobody needs to alter their TextMate.app. It is enough to do an svn checkout of the Support folder to /Library/ Application\ Support/TextMate as is described in the manual. That will override any default stuff distributed with TextMate.
On 18.09.2008, at 21:06, Alex Ross wrote:
Ah, short answer is NO. Nobody needs to alter their TextMate.app. It is enough to do an svn checkout of the Support folder to /Library/ Application\ Support/TextMate as is described in the manual. That will override any default stuff distributed with TextMate.
Yes. Of course. Sorry!! I've totally forgotten that /Library/Application\ Support/TextMate/.* will also override the App Support folder.
Once again, sorry for this confusion. I was preoccupied by other things. That's why: first think then answer ;)
Cheers,
--Hans
Hi,
On Sep 18, 2008, at 8:38 PM, Hans-Jörg Bibiko wrote:
On 18.09.2008, at 21:06, Alex Ross wrote:
Ah, short answer is NO. Nobody needs to alter their TextMate.app. It is enough to do an svn checkout of the Support folder to /Library/ Application\ Support/TextMate as is described in the manual. That will override any default stuff distributed with TextMate.
Yes. Of course. Sorry!! I've totally forgotten that /Library/Application\ Support/TextMate/.* will also override the App Support folder.
Once again, sorry for this confusion. I was preoccupied by other things. That's why: first think then answer ;)
:) No worries.
So we should checkout the Support into /Library/Application\ Support/ TextMate or the ~ version.
Cool, thanks!
Just to make sure my setup was sane. I have the full svn repo (not only the Support dir but the entire repo) under ~/Library/Application \ Support/TextMate/FullSvnCheckout and I symblink the Support directory and the bundles from Review that I want.
Thanks,
Hello,
I installed the Scratchpad Bundle today and everything _works_ fine, i.e. the selection gets copied to the scratchpad, I can see it when I choose "Manage Scratches", and I'm able to paste it back to a document...
... but every time I select "Scratch from Current Selection/Line" I get a message like this:
"/tmp/temp_textmate.7of3ipa:6: command not found: mate /tmp/textmate_scratch_2008-09-19.14.25.54_fh13.txt"
The mentioned file IS stored on my harddisk, and when I open up the terminal and enter "mate /tmp/textmate_scratch_2008-09-19.14.25.54_fh13.txt" there, TextMate opens the file without any problems at all...
It is not that bad because, as I said, everything works nonetheless. But of course I'd still like to get rid of that error message. So, what's going wrong?
TextMate 1.5.7 (1455) on MacOS X 10.4.10.
Kind regards, Tobias Jung
P.S.: The Scratchpad Bundle is a great piece of work -- thank you very much!
The mentioned file IS stored on my harddisk, and when I open up the terminal and enter "mate /tmp/textmate_scratch_2008-09-19.14.25.54_fh13.txt" there, TextMate opens the file without any problems at all...
It is not that bad because, as I said, everything works nonetheless. But of course I'd still like to get rid of that error message. So, what's going wrong?
I guess Ruby cannot find the command 'mate' in $PATH.
Try this on the Console:
which mate
You get something like /usr/local/bin/mate
and then open the Bundle Editor > Scratch > Scratch from current Selection:
last line:
`/usr/local/bin/mate #{e_sh(path)}`
Cheers,
--Hans
On Sep 19, 2008, at 9:07 PM, Hans-Jörg Bibiko wrote:
The mentioned file IS stored on my harddisk, and when I open up the terminal and enter "mate /tmp/textmate_scratch_2008-09-19.14.25.54_fh13.txt" there, TextMate opens the file without any problems at all...
It is not that bad because, as I said, everything works nonetheless. But of course I'd still like to get rid of that error message. So, what's going wrong?
I guess Ruby cannot find the command 'mate' in $PATH.
Another possibility is that you do not have `mate' installed. If `which mate' comes up empty, then you can install it by going to Help → Terminal Usage….
—Alex
On 19 Sep 2008, at 21:07, Hans-Jörg Bibiko wrote:
[...] open the Bundle Editor > Scratch > Scratch from current Selection:
last line:
`/usr/local/bin/mate #{e_sh(path)}`
Actually, change it (in the bundle) to:
`"$TM_SUPPORT_PATH/bin/mate" #{e_sh(path)}`
Then the user does not need to ‘install’ mate (nor setup PATH).
At 10:11 Uhr +0200 20.09.2008, Allan Odgaard wrote:
On 19 Sep 2008, at 21:07, Hans-Jörg Bibiko wrote:
[...] open the Bundle Editor > Scratch > Scratch from current Selection:
last line:
`/usr/local/bin/mate #{e_sh(path)}`
This works...
Actually, change it (in the bundle) to:
`"$TM_SUPPORT_PATH/bin/mate" #{e_sh(path)}`
Then the user does not need to 'install' mate (nor setup PATH).
... and this works as well.
Thank you very much! :-)
Kind regards, Tobias Jung
Alex Ross-8 wrote:
Attached is a bundle “Scratch” containing a single command “Scratch from Current Selection / Line”. When editing, you decide you want some scratch, so you make a selection hit ⌃⌥⌘C and off you go. Scratches files are The next step would probably be to add a command to list all previous scratches… you could do this quite easily as a html command with txmt:// links to old scratches.
–Alex
That's great ! Thanks.
Is it possible to include in the name of the scratch file, the name of the file where it comes from ? If you see what I mean (to help recognize the scratch files)
First, I thought that the fact that the scratch file was automatically saved was a good thing (that's the case with BBEdit's scratchpad I think) Now I'm wondering if that's a good thing or not…
On Sep 8, 2008, at 9:02 PM, guerom00 wrote:
Alex Ross-8 wrote:
Attached is a bundle “Scratch” containing a single command “Scratch from Current Selection / Line”. When editing, you decide you want some scratch, so you make a selection hit ⌃⌥⌘C and off you go. Scratches files are The next step would probably be to add a command to list all previous scratches… you could do this quite easily as a html command with txmt:// links to old scratches.
–Alex
That's great ! Thanks.
Is it possible to include in the name of the scratch file, the name of the file where it comes from ? If you see what I mean (to help recognize the scratch files)
There are a few ways to get the file name. You can drag the file proxy from textmate's title bar (that's the little file icon). You can type `echo $TM_FILEPATH` and hit ⌃R on a line to get the filename as well.
I also added a command to the Scratch bundle (which I have attached) to list whatever scratch files are still in existence (newest first).
First, I thought that the fact that the scratch file was automatically saved was a good thing (that's the case with BBEdit's scratchpad I think) Now I'm wondering if that's a good thing or not…
I think it's a good thing. Scratch files go into a temporary folder that will get cleaned when you reboot. What's not to like?
—Alex
guerom wrote:
Jacob Rus wrote:
Why can't you make a bundle that does something like this?
Because I don't know how.
Well what would you want it to do, precisely? Just have some shortcuts for sending text to a specific "scratchpad" file somewhere?
How does a scratchpad-using workflow go in BBEdit? What are the essential aspects of that workflow, and what are its goals? Once that is figured out, I imagine some set of TextMate commands could be made to enable such a workflow.
Personally, I still don’t quite understand the use case, or the benefit over just opening new a document (either untitled, or saved in /tmp or something) to do scratch work in.
-Jacob
Hi
I'm interested to know how to open a new document in /tmp?
Thank you.
Patrick
On 8 Sep 2008, at 13:03, Jacob Rus wrote:
Personally, I still don’t quite understand the use case, or the benefit over just opening new a document (either untitled, or saved in /tmp or something) to do scratch work in.