Settings:
Shell Variable: TM_BLOG_FORMAT
Value: Markdown
Problem:
Fetch post returns in HTML, I want to work in MultiMarkdown
Can not drag and drop image to the HTML
Questions:
How do I set so the post comes back in Markdown?
How can I alternate between html and markdown in the Blog Post
(Markdown) template?
Thanks
Hi,
I'm a newbie to TextMate, recently I found it's auto-indention
behavior quite different from XCode and Vim. For example:
if I have:
if (<condition>) blahblah;
When I hit return between if (...) and blah.., It will became:
if (<condition>)
blahblah;
But in XCode and Vim, it's correctly indented as:
if (<condition>)
blahblah;
The second problem is, in XCode or Vim when I have:
if (<condition>)
then hit return, the caret will appear in the next line, and
increase the indention automatically, like (_ shows the caret):
if (<condition>)
_
then if I hit {, they could decrease the indention automatically,
too.
if (<condition>)
{_
But in TextMate, I could not found something like that.
Could you please tell me how to achieve this? Thanks.
Regards,
jjgod.
Hi,
Some weeks ago I wrote this ruby script that works inside a TextMate
command to build a list of references declared in Latex files and let
the user select the reference he wants to insert in the text:
-----------------------
#!/usr/bin/env ruby -wKU
SUPPORT = ENV['TM_SUPPORT_PATH']
DIALOG = SUPPORT + '/bin/tm_dialog'
require SUPPORT + '/lib/escape'
require SUPPORT + '/lib/plist'
require 'pathname'
require 'find'
refs = []
Find.find(ENV['TM_PROJECT_DIRECTORY']) do |f|
file_name = File.basename(f)
if /\.(tex)$/ =~ file_name
File.open(file_name,"r") do |infile|
infile.each_line do |line|
if line =~ /.*\label\{.*/
line = line.gsub(/.*\label\{(.*)\}.*/, '\1').chomp
refs << {
'title' => line,
'code' => "\\ref{#{line}}"
}
end
end
end
end
end
abort if refs.empty?
plist = { "menuItems" => refs }.to_plist
res = PropertyList::load(`#{e_sh DIALOG} -up #{e_sh plist}`)
abort unless res.has_key? "selectedMenuItem"
print %(#{res["selectedMenuItem"]['code']})
-----------------------
Since the last updates (both of TextMate and its bundles), the script
does not work anymore.
When I invoke it, it gives me back the following error.
-----------------------
tm_dialog: you have updated the tm_dialog tool to v7 but the Dialog
plug-in running is still at v4.
tm_dialog: either checkout the PlugIns folder from the repository or
remove your checkout of the Support folder.
tm_dialog: if you did checkout the PlugIns folder, you need to
relaunch TextMate to load the new plug-in.
/tmp/temp_textmate.ZcyesN:32:in `load': Cannot parse a NULL or zero-
length data (PropertyListError)
from /tmp/temp_textmate.ZcyesN:32
-----------------------
I'm a TextMate newbe, thus I'm not sure, but from the error message
it seems like I need to update the Dialog.tmplugin file. How can I
fix this ?
Cheers,
Leonardo
I am trying to transfer my personal TM bundle from one computer to
another. I simply copied it into Pristine Copy/Bundles but it will
not open. When I double click on it, I see, "The bundle “Jenny's
Bundle.tmbundle” does not contain the required “info.plist” file (or
that file is corrupt) and can therefore not be installed."
Is there an easy way to fix this for someone who is still a bit of a
newbie?
Cheers,
Jenny
I noticed using TextMate today that when I use either the Docksend
File or Docksend Folder commands of the Transmit bundle, that
Transmit is brought to the foreground. Is there any way to change
this back to where Transmit isn't "popped" to the foreground? I use
Growl for Transmit notifications, so I have no need to watch the
progress in Transmit.
I'm using Version 1.5.4 (1349).
Hello fellow Python Bundle users,
I've been learning more about the Ruby bundle, and I have some ideas on how to make the Python bundle better. Some of them are blatantly stolen from the Ruby bundle, some of them I came up independently myself when I was using BBEdit, and thought they would be useful in the Python bundle.
#1: Create Dictionary From:
I thought Ruby could take the selected text and make a hash out of
it. (looking in the TextMate book now of course I can't find it).
I wrote something similar, turning the following text into a
dictionary:
a = 1
b = 2
--> result: {'a': '1', 'b': '2'}
You'll find my script at the bottom of this email
#2: Support for syntax coloring doctests
Wouldn't it be cool to have doctests syntax colored like code, and
not comments?
Likewise, it looks like the folding marker for Python comments
folds on a blank line. That means folding doesn't work very well
for doctests or comments with blank lines in it.
#3: super() in class snippet
It would be cool if the class snippet inserted super(...) into the
constructor for the class. (Is this possible with clever
mirroring?)
_______________________________
Bugs:
* Evaluate Selection As Python doesn't work
(Traceback (most recent call last):
File "/tmp/temp_textmate.KE9sFL", line 5, in ?
from traceback import format_exc
ImportError: cannot import name format_exc
)
* Documentation For Current Word doesn't work
(global name sh is not defined)
_______________________________
Looking forward to everybody's thoughts on these improvements!,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
_____________________________________________________________________
#!/usr/bin/env python
import fileinput
import re
"""
dictMaker takes a formatted string and generates a Python dictionary
from it.
Basically: it's easier to type in my format then to deal with all
the quoting required for dictionary creation
The Format is:
key = value
NOTE that at this time quotes are made around the values. So if you're
strings just don't add them (elsewise just find and replace the extra
quotes)
"""
a = re.compile("(\w+) = (.+)")
output = {}
for my_line in fileinput.input():
mtch = a.search(my_line)
output[ mtch.group(1) ] = mtch.group(2)
print output
_____________________________________________________________________
Hey everyone,
Is anyone working on JSP bundle and/or syntax file?
Does anyone work with JSP's in TextMate on the list?
I'd love to get my hands on one if it's out there, otherwise I might
be interested in working with someone on creating one. I'm new to
JSP's and creating syntax definitions though.
-Brian
––––––––––––––––––––––––––––––––––––
Brian Landau
UNC - Chapel Hill
School of Library and Information Science (SILS)
http://www.claimid.com/brianjlandau
AIM: Zippi Bat
––––––––––––––––––––––––––––––––––––
Settings:
Language: Blog - Markdown
Shell Variable: / Value:
TM_BLOG_FORMAT markdown
TM_BLOG-MODE wp
Problem:
Images drag and drop into the file and upload to server
The new file with new headers is in HTML rather than Markdown
When I fetch post it also returns in HTML, I want to work in Markdown
If I drag and drop another image to the HTML it does not convert on
posting
Questions:
How do I set so the post comes back in Markdown?
and
How can I alternate between html and markdown in the Blog Post
(Markdown) template?