(1) Is there any shortcut to insert an image? Especially one that finds the path and dimensions?
(2) Same as above but for Flash objects?
(3) How do I pull up the color picker so I can choose a hex code?
Thanks!
Sean
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
On Jan 10, 2006, at 12:04 AM, Sean Schertell wrote:
(1) Is there any shortcut to insert an image? Especially one that finds the path and dimensions?
You can drag and drop an image onto a TextMate document.
(3) How do I pull up the color picker so I can choose a hex code?
How about: http://www.apple.com/downloads/dashboard/reference/picker.html http://www.apple.com/downloads/dashboard/developer/colorsafe.html
Trevor
(1) Is there any shortcut to insert an image? Especially one that finds the path and dimensions?
You can drag and drop an image onto a TextMate document.
(3) How do I pull up the color picker so I can choose a hex code?
How about: http://www.apple.com/downloads/dashboard/reference/picker.html http://www.apple.com/downloads/dashboard/developer/colorsafe.html
Trevor
Thanks for the tips Trevor. But is there any way to add image with a keyboard shortcut to navigate to the image? I could never get into the groove of switching into the finder and dragging and dropping stuff -- too much mouse ;-)
As for the color pickers, those widgets are great! Here's another one that I think I like even better (full-spectrum, not just web-safe): http://www.apple.com/downloads/dashboard/developer/colourmod.html
Cheers, Sean
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
On 10/01/2006, at 14:02, Sean Schertell wrote:
As for the color pickers, those widgets are great! Here's another one that I think I like even better (full-spectrum, not just web- safe):
Isn't the concept 'web-safe' something that dates back to Windows 3.1 with 256-or-less color palettes? It surprises me if that concept is still in use :-p.
-- Sune.
As for the color pickers, those widgets are great! Here's another one that I think I like even better (full-spectrum, not just web- safe):
Isn't the concept 'web-safe' something that dates back to Windows 3.1 with 256-or-less color palettes? It surprises me if that concept is still in use :-p.
Right?! I think most folks ignore the so-called "web-safe" palette these days. But back on topic just for a moment... Isn't there a way to get to a color picker from TM without mousing around the CSS menu? (click-wait-drag-click submenu-wait-click-woops-dammit-clicked the wrong thing) I need a shortcut! I guess the widget's okay, but it would be nice to have it "built-in" to TM.
:-)
Sean
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
On Jan 10, 2006, at 9:35 AM, Sean Schertell wrote:
Right?! I think most folks ignore the so-called "web-safe" palette these days. But back on topic just for a moment... Isn't there a way to get to a color picker from TM without mousing around the CSS menu? (click-wait-drag-click submenu-wait-click-woops-dammit- clicked the wrong thing) I need a shortcut! I guess the widget's okay, but it would be nice to have it "built- in" to TM.
Why don't you just associate your own key equivalent for the "Insert Color..." command in the CSS bundle? Just open the command in the bundle editor and associate your favorite key combo to it.
:-)
Sean
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
Haris
I ran across this on the wiki, I think. Not very handy but can work.
Open TextMate prefs. Click a color swatch (Apple Color Picker appears); Close TextMate's prefs. The Color Picker remains! In the Color Picker, mix or select your color, then drag the color from the large sample area into your TextMate document. The hex value of the color is inserted in your document.
I wish there was a way to get other color specs in, like "rgb (155,213,055)"
eo
On Jan 10, 2006, at 7:35 AM, Sean Schertell wrote:
As for the color pickers, those widgets are great! Here's another one that I think I like even better (full-spectrum, not just web-safe):
Isn't the concept 'web-safe' something that dates back to Windows 3.1 with 256-or-less color palettes? It surprises me if that concept is still in use :-p.
Right?! I think most folks ignore the so-called "web-safe" palette these days. But back on topic just for a moment... Isn't there a way to get to a color picker from TM without mousing around the CSS menu? (click-wait-drag-click submenu-wait-click-woops-dammit- clicked the wrong thing) I need a shortcut! I guess the widget's okay, but it would be nice to have it "built-in" to TM.
:-)
Sean
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
On 10/1/2006, at 23:08, Eric O'Brien wrote:
[...] drag the color from the large sample area into your TextMate document. The hex value of the color is inserted in your document.
I wish there was a way to get other color specs in, like "rgb (155,213,055)"
There actually is (but it's only documented in the pre 1.0.2 release notes):
Colors (e.g. from color pickers) can now be dragged onto the text area. TextMate will run the command with the OakTextViewPrettyPrintColorCommand preferences key and as standard input provide the RGB value as three space delimited floating point numbers (from 0.0 to 1.0). The default command is: awk '{printf("#%02x%02x%02x", $1*255, $2*255, $3*255)}' -- the normal TM variables are available, so in theory one could make the command check the file extension and format the color accordingly.