Before the last update I could type something like:
div { color:red; }
And all was well and good. Now TM throws a space in automatically which is fine. I just have to get used to that. But now I can't overtype the semi-colon. I used to be able when I got to then end of the statement type ";" and it would overwrite the one that was already there and place my cursor outside the statement. Now it puts 2 semi-colons and i'm still stuck in the statement.
div { color: red;; }
What happened to the ability to Overtype the semi-colons in the css context? And how do I bring it back?
Josh
Josh wrote:
What happened to the ability to Overtype the semi-colons in the css context? And how do I bring it back?
We had a little mixup where Thomas Aylott decided that we needed a space between : and ; so he put in a snippet to insert ": ;", and took out the smart typing pair. The correct way to get a space in there would be to make a macro which first types colon, then types space, resulting in the desired ": ;", but leaving the smart typing pair behavior. Personally, I prefer not having the space there at all. Anyway, it's been sorted out now (i.e. reverted to the previous behavior) in the svn repository, so you can check the css bundle out from there to fix it, or wait for the next update.
-Jacob
Jacob,
We had a little mixup where Thomas Aylott decided that we needed a space between : and ; so he put in a snippet to insert ": ;", and took out the smart typing pair. The correct way to get a space in there would be to make a macro which first types colon, then types space, resulting in the desired ": ;", but leaving the smart typing pair behavior. Personally, I prefer not having the space there at all. Anyway, it's been sorted out now (i.e. reverted to the previous behavior) in the svn repository, so you can check the css bundle out from there to fix it, or wait for the next update.
Thanks for the explanation. I'm not sure how to "check it out" from the svn repository. How do I go about that? (I'm a lightweight TM user)
Josh
Hi Josh,
Thanks for the explanation. I'm not sure how to "check it out" from the svn repository. How do I go about that? (I'm a lightweight TM user)
You're going to need to install subversion and pull them from the SVN repository.
You can find more details here:
http://macromates.com/textmate/manual/bundles#getting_more_bundles
-steve
On Aug 28, 2006, at 10:55 AM, Steve Lianoglou wrote:
You're going to need to install subversion and pull them from the SVN repository.
You can find more details here:
http://macromates.com/textmate/manual/bundles#getting_more_bundles
-steve
Thanks Steve, but I'm not too familiar with the terminal. Not sure what to do here:
5.7.2 Setting LC_CTYPE
You must set the LC_CTYPE variable to use UTF-8. If you do not, svn will give you an svn: Can't recode string error when it stumbles upon non-ASCII filenames (some of the bundle items use these).
If you are using bash you should put this in your ~/.bash_profile (or a similar file which gets sourced when you open a terminal):
export LC_CTYPE=en_US.UTF-8 Users of zsh should put it in ~/.zshrc and tcsh users should instead put this line in their ~/.tcshrc:
setenv LC_CTYPE en_US.UTF-8 Remember that after adding this, you need to start a new shell for the updated profile to take effect.
Also be aware that the LC_ALL environment variable takes precedence over LC_CTYPE, so if you have set this elsewhere you should either unset it or change that to use UTF-8.
I downloaded the client (1.3.1) but 5.7.2 is where I'm stuck. I'm well out of my comfort zone in the terminal window.
Josh
Hi Josh,
This isn't really the best how-to on SVN, but what's written below may help you.
There is also a GetBundle bundle I think .. you might want to search the mailing list history for that as I think it's purpose is to have some GUI way to manage your bundles from SVN -- so, you won't need to play with the command line.
But anyway :
Thanks Steve, but I'm not too familiar with the terminal. Not sure what to do here:
When you're looking at this section in the page (http:// macromates.com/textmate/manual/bundles#getting_more_bundles)
Most all of the monotype commands in the grey boxes are commands you want to issue at the terminal.
So, fire up a terminal.
export LC_CTYPE=en_US.UTF-8
Type that into the terminal.
This will set an environment variable for *that particular* terminal session. So, the variable LC_CTYPE will be set to "en_US.UTF-8"
The instructions there tell you to append that command to your ~/.bashrc file. This file is read every time you open a new terminal and lives in the root of your home directory (/Users/username). Typically, this file is meant for you to add the things you most often use/require in your every day terminal sessions.
Note that the "~/" syntax is a Unixism that is a shortcut to the path on your filesystem to your home directory (again, /Users/username in Mac OS X)
Users of zsh should put it in ~/.zshrc and tcsh users should instead put this line in their ~/.tcshrc:
I think that since PantIher, the default shell is bash, so you can probably ignore that.
You can pretty much safely follow the instructions after that as they're written.
You probably just want to grab the CCS.tmbundle, so instead of this: svn --username anon --password anon co \ http://macromates.com/svn/Bundles/trunk/Bundles/Haskell.tmbundle
you'll want to type this:
svn --username anon --password anon co \ http://macromates.com/svn/Bundles/trunk/Bundles/CSS.tmbundle
(if that bundle doesn't exist) .. if you already have the bundle, you can do:
svn up CSS.tmbundle
(when you're in the /Library/Application Support/TextMate/Bundles directory, that is)
Hope that helps, -steve
Josh,
The GetBundle bundle is great. No terminal usage required, easy to use and install. - http://validcode.net/stuff/textmate-getbundle-bundle
best, Charles
On 8/28/06, Steve Lianoglou lists@arachnedesign.net wrote:
Hi Josh,
This isn't really the best how-to on SVN, but what's written below may help you.
There is also a GetBundle bundle I think .. you might want to search the mailing list history for that as I think it's purpose is to have some GUI way to manage your bundles from SVN -- so, you won't need to play with the command line.
But anyway :
Thanks Steve, but I'm not too familiar with the terminal. Not sure what to do here:
When you're looking at this section in the page (http:// macromates.com/textmate/manual/bundles#getting_more_bundles)
Most all of the monotype commands in the grey boxes are commands you want to issue at the terminal.
So, fire up a terminal.
export LC_CTYPE=en_US.UTF-8
Type that into the terminal.
This will set an environment variable for *that particular* terminal session. So, the variable LC_CTYPE will be set to "en_US.UTF-8"
The instructions there tell you to append that command to your ~/.bashrc file. This file is read every time you open a new terminal and lives in the root of your home directory (/Users/username). Typically, this file is meant for you to add the things you most often use/require in your every day terminal sessions.
Note that the "~/" syntax is a Unixism that is a shortcut to the path on your filesystem to your home directory (again, /Users/username in Mac OS X)
Users of zsh should put it in ~/.zshrc and tcsh users should instead put this line in their ~/.tcshrc:
I think that since PantIher, the default shell is bash, so you can probably ignore that.
You can pretty much safely follow the instructions after that as they're written.
You probably just want to grab the CCS.tmbundle, so instead of this: svn --username anon --password anon co \ http://macromates.com/svn/Bundles/trunk/Bundles/Haskell.tmbundle
you'll want to type this:
svn --username anon --password anon co \ http://macromates.com/svn/Bundles/trunk/Bundles/CSS.tmbundle
(if that bundle doesn't exist) .. if you already have the bundle, you can do:
svn up CSS.tmbundle
(when you're in the /Library/Application Support/TextMate/Bundles directory, that is)
Hope that helps, -steve
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 28/8/2006, at 22:54, Charles Stuart wrote:
The GetBundle bundle is great. No terminal usage required, easy to use and install.
Though it will not show already installed bundles.
I think the best advice would be for Josh to open the Bundle Editor (bundles menu) unfold the CSS menu and find the item I think is named ‘: ;’ (it is prefixed with an S) and simply delete it.
Doing a checkout of a bundle by blindly following instructions will most certainly lead to an outdated (but eclipsing) CSS bundle in a few weeks…
Allan,
On Aug 28, 2006, at 4:00 PM, Allan Odgaard wrote:
I think the best advice would be for Josh to open the Bundle Editor (bundles menu) unfold the CSS menu and find the item I think is named ‘: ;’ (it is prefixed with an S) and simply delete it.
Doing a checkout of a bundle by blindly following instructions will most certainly lead to an outdated (but eclipsing) CSS bundle in a few weeks…
Good advice.
I removed the ": ;" in the bundle editor but it's still not back to it's default behavior. It used to place a semi-colon automatically at after what I was typing but it allowed me to type over the semi-colon with another semi-colon if I wanted to get outside the statement quickly. I did like having the semi-colon placed automatically since sometimes I would jump up to the head of the document, type in a CSS statement and jump down. I didn't have to remember to place the semi- colon when quickly testing my styles. How do I get that behavior back from which was in the previous version of TM?
The GetBundle bundle is great. No terminal usage required, easy to use and install.
Though it will not show already installed bundles.
That was gonna be my next question but you answered it. I couldn't see a CSS bundle so I was confused. Maybe the GetBundle could have an option to show uninstalled bundles, installed bundles, and all bundles. Letting us choose our "view" of the SVN repository. Oh and maybe the date of that release could be shown with the name of the bundle. Just a thought.
Josh
Any chance someone has a way to fix my problem?
On Aug 29, 2006, at 8:30 AM, Josh wrote:
I removed the ": ;" in the bundle editor but it's still not back to it's default behavior. It used to place a semi-colon automatically at after what I was typing but it allowed me to type over the semi- colon with another semi-colon if I wanted to get outside the statement quickly. I did like having the semi-colon placed automatically since sometimes I would jump up to the head of the document, type in a CSS statement and jump down. I didn't have to remember to place the semi-colon when quickly testing my styles. How do I get that behavior back from which was in the previous version of TM?
Josh wrote:
Any chance someone has a way to fix my problem?
On Aug 29, 2006, at 8:30 AM, Josh wrote:
I removed the ": ;" in the bundle editor but it's still not back to it's default behavior. It used to place a semi-colon automatically at after what I was typing but it allowed me to type over the semi- colon with another semi-colon if I wanted to get outside the statement quickly. I did like having the semi-colon placed automatically since sometimes I would jump up to the head of the document, type in a CSS statement and jump down. I didn't have to remember to place the semi-colon when quickly testing my styles. How do I get that behavior back from which was in the previous version of TM?
Have you been checking out the other branch of this thread?
You need to do 2 things:
1. remove snippet (you did this) 2. add a smart typing pairs preference for ":" and ";". it's explained in another post, or just look it up in the manual.
Alternately, you can check out from svn, or wait for the next minor version of TM.
-Jacob
On Aug 31, 2006, at 10:47 AM, Jacob Rus wrote:
- add a smart typing pairs preference for ":" and ";". it's
explained in another post, or just look it up in the manual.
Sorry, I wasn't understanding #2. I thought that was just a side topic and not a solution. I'll look at the manual and try to make one. Thanks.
Josh
Can someone explain how to add smart typing pairs? I need to add ':', ';' and '#', '#' but seem to be misunderstanding the online docs.
signed Dumber than he thought.
Josh wrote:
Can someone explain how to add smart typing pairs? I need to add ':', ';' and '#', '#' but seem to be misunderstanding the online docs.
Just drop this attachment somewhere in a personal bundle somewhere. And then take it out when the next minor version of textmate comes along.
-Jacob
Jacob,
I'm more confused now. Where would I put that xml? It wouldn't take it as a preference item. What type of bundle item should it be?
Also, why are you using xml when the manual shows this?:
smartTypingPairs = ( ( '"', '"' ), ( '(', ')' ), ( '{', '}' ), ( '[', ']' ), ( '“', '”' ), ( "'", "'" ), ( '`', '`' ), );
I tried the above but it didn't change anything. All I could find in the manual about this are these two locations (15.4 and 4.1). Is there more on this subject I'm missing?
Josh
On Aug 31, 2006, at 6:04 PM, Jacob Rus wrote:
Josh wrote:
Can someone explain how to add smart typing pairs? I need to add ':', ';' and '#', '#' but seem to be misunderstanding the online docs.
Just drop this attachment somewhere in a personal bundle somewhere. And then take it out when the next minor version of textmate comes along.
-Jacob
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <dict> <key>bundleUUID</key> <string>4675F24E-6227-11D9-BFB1-000D93589AF6</string> <key>name</key> <string>CSS Typing Pairs</string> <key>scope</key> <string>source.css</string> <key>settings</key> <dict> <key>smartTypingPairs</key> <array> <array> <string>"</string> <string>"</string> </array> <array> <string>(</string> <string>)</string> </array> <array> <string>{</string> <string>}</string> </array> <array> <string>[</string> <string>]</string> </array> <array> <string>“</string> <string>”</string> </array> <array> <string>'</string> <string>'</string> </array> <array> <string>`</string> <string>`</string> </array> </array> </dict> <key>uuid</key> <string>552DA17C-0107-497F-8F4D-68DAF17DD475</string> </dict> </plist>
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 2/9/2006, at 0:37, Jacob Rus wrote:
Josh wrote:
I'm more confused now. Where would I put that xml? It wouldn't take it as a preference item. What type of bundle item should it be?
It was an attachment. save the file to disk. then double click it.
I think your NNTP gateway messed it up (and just placed the XML in the body).
Josh: you can download latest build of TM here [1], this one includes the latest CSS bundle. You may want to remove all customizations you have done to the CSS bundle by removing it from ~/Library/Application Support/TextMate/Bundles
Jacob, I didn't get an attachment but thanks for your help. The latest build Allan provided is working for me.
Allan, thanks so much for providing that. Like i said it's working great! Many thanks.
Josh
On Sep 2, 2006, at 4:40 AM, Allan Odgaard wrote:
On 2/9/2006, at 0:37, Jacob Rus wrote:
Josh wrote:
I'm more confused now. Where would I put that xml? It wouldn't take it as a preference item. What type of bundle item should it be?
It was an attachment. save the file to disk. then double click it.
I think your NNTP gateway messed it up (and just placed the XML in the body).
Josh: you can download latest build of TM here [1], this one includes the latest CSS bundle. You may want to remove all customizations you have done to the CSS bundle by removing it from ~/Library/Application Support/TextMate/Bundles
[1] http://macromates.com/textmate/build/TextMate_r1224.tbz
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Aug 28, 2006, at 11:12 AM, Jacob Rus wrote:
Josh wrote:
What happened to the ability to Overtype the semi-colons in the css context? And how do I bring it back?
We had a little mixup where Thomas Aylott decided that we needed a space between : and ; so he put in a snippet to insert ": ;", and took out the smart typing pair. The correct way to get a space in there would be to make a macro which first types colon, then types space, resulting in the desired ": ;", but leaving the smart typing pair behavior. Personally, I prefer not having the space there at all. Anyway, it's been sorted out now (i.e. reverted to the previous behavior) in the svn repository, so you can check the css bundle out from there to fix it, or wait for the next update.
-Jacob
Please accept my humblest apologies for any and all inconvenience i may have inadvertently caused. I have repented and turned away from all gratuitous snippet foisting.
I also originally created the :; smart typing pair. So I'm not entirely the epitome of evil :-P`
Macro, why didn't I think of that?! Thanks!
thomas Aylott — subtleGradient — CrazyEgg
This does mean we don't get a space after the : anymore then? btw, to everyone, I think I am to blame since I'm the one that wanted thomas to change in the first place :)
Andreas
On Aug 28, 2006, at 17:34 , thomas Aylott wrote:
On Aug 28, 2006, at 11:12 AM, Jacob Rus wrote:
Josh wrote:
What happened to the ability to Overtype the semi-colons in the css context? And how do I bring it back?
We had a little mixup where Thomas Aylott decided that we needed a space between : and ; so he put in a snippet to insert ": ;", and took out the smart typing pair. The correct way to get a space in there would be to make a macro which first types colon, then types space, resulting in the desired ": ;", but leaving the smart typing pair behavior. Personally, I prefer not having the space there at all. Anyway, it's been sorted out now (i.e. reverted to the previous behavior) in the svn repository, so you can check the css bundle out from there to fix it, or wait for the next update.
-Jacob
Please accept my humblest apologies for any and all inconvenience i may have inadvertently caused. I have repented and turned away from all gratuitous snippet foisting.
I also originally created the :; smart typing pair. So I'm not entirely the epitome of evil :-P`
Macro, why didn't I think of that?! Thanks!
thomas Aylott — subtleGradient — CrazyEgg
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
______________________
Andreas Wahlin Webbutvecklare
Webbhuset AB Östra Hamngatan 45, 411 10 Göteborg
Telefon: 031-339 19 19, Direkt: 031-739 18 20, Fax: 031-711 12 20 www.webbhuset.se
Privileged/confidential information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by a reply email. Thank you.
On Aug 29, 2006, at 2:30 AM, Andreas Wahlin wrote:
This does mean we don't get a space after the : anymore then?
Right, it was determined to be too annoying to people that had it engrained in their mind already to press space. And especially to the few people that mentioned they edit CSS in other places so getting used to not pressing space would actually be bad.
It's one of those snippets that we really should have an archive for; snippets a good many people want but for some reason can't be in the default bundle.
btw, to everyone, I think I am to blame since I'm the one that wanted thomas to change in the first place :)
::wags collective finger:: ;)
Andreas Wahlin wrote:
This does mean we don't get a space after the : anymore then? btw, to everyone, I think I am to blame since I'm the one that wanted thomas to change in the first place :)
I suggest making a personal bundle (if you haven't already), and adding a macro, scoped to css, and with ":" as a shortcut, which first types : and then types space.
-Jacob
Thanks for that suggestion, now I'm one happy coder (that will have to get rid of that hitting space habit hehe)
Andreas
On Aug 29, 2006, at 12:52 , Jacob Rus wrote:
Andreas Wahlin wrote:
This does mean we don't get a space after the : anymore then? btw, to everyone, I think I am to blame since I'm the one that wanted thomas to change in the first place :)
I suggest making a personal bundle (if you haven't already), and adding a macro, scoped to css, and with ":" as a shortcut, which first types : and then types space.
-Jacob
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
______________________
Andreas Wahlin Webbutvecklare
Webbhuset AB Östra Hamngatan 45, 411 10 Göteborg
Telefon: 031-339 19 19, Direkt: 031-739 18 20, Fax: 031-711 12 20 www.webbhuset.se
Privileged/confidential information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by a reply email. Thank you.