I've noticed, from working in the Ruby on Rails syntax, that certain file-types convert the tab key silently to spaces at whatever space-to-tab preference is currently set. YAML for example. I was just trying out some Python for the first time in forever, and noticed that it was using tabs instead of spaces, even though the surrounding document was entirely indented in spaces.
Is this something that is adjustable? Where would I look? I looked in the language definition in the YAML bundle, but nothing jumped out at me.
Thanks in advance,
Walter
When use a dark theme, the file drawer's background is white, how about let file drawer use the same theme as the editor area does.
Just a suggestion.
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
how to let textmate2 support different line endings in same project.
Most of my files are unix line ending, but some external libs dos line ending, I don't want to convert them.
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
In TM2, embedded ruby lines are sometimes being outdented as I type. Here's
an example:
= form_for(@consumer_enrollment, url: [@workflow], method: :put, html: {
class: 'uniform' }) do |f|
= f.fields_for(:consumer_prior_authorizations) do |prior_auth_form|
When typing the second line, hitting backspace at any point or typing the
first colon causes the line to outdent to the level of the first line. I
can't see any change in the scope, and it doesn't do this in TM1, so I don't
know what the issue is. Any ideas?
--
View this message in context: http://old.nabble.com/haml-embedded-ruby-outdenting-tp33409296p33409296.html
Sent from the textmate users mailing list archive at Nabble.com.
I getting about one TM2 crash a day.
Was wondering if the plugins I have installed for TM1 could be related -- or does TM2 have another path for it's plugins?
$ ls -l ~/Library/Application\ Support/TextMate/PlugIns/
total 0
drwxr-xr-x 3 stephen staff 102 Aug 27 2010 AckMate.tmplugin
drwxr-xr-x 3 stephen staff 102 Nov 28 2010 MissingDrawer.tmplugin
drwxr-xr-x 3 stephen staff 102 Nov 13 2007 TMTools.tmplugin
Also, when I get a crash the built-in OS crash-reporter comes up to send the report to Apple.
Are these crash reports useful for TM2 development and if so how can I submit them.
I DO have "Submit crash reports to MacroMates check ON. Does this mean the reports I submit to Apple get forwarded on to
MacroMates?
Hi,
TM2 indentation behavior seems erratic (one key I hit out of ten is
dedicated to revert the last automatic indentation action) so I
disabled from the C bundle "Indentation Rules" and "Indentation Rules
(Comments)" in the bundle editor - I'm editing ANSI C files.
However, TM2 keeps changing the indentation in some random way (from
my perspective, while TM1 was mostly right). Is some special action
required to tell TM2 to stop altering the indentation till it gets
fixed?
As a more generic question, is there a way to tell TM2 "cancel the
last automatic indentation and do not repeat it on the next key hit"?
I really do prefer to lose automatic indentation rather than fighting
the indentation engine with every single edited line.
Thanks,
Manu
Hello,
I am trying to set TM2 to by default, show hidden files, and black list everything that I don't want, instead of whitelisting things like .gitignore,.htaccess, etc
I was wondering if anyone has succesfully gotten something like this to work:
include = "{*,.*}"
exclude = ".git"
This still shows the .git folder in the file browser
-Byron
Lion introduces a new way of inserting accented characters by holding down the corresponding key.
-----------------------------
in TextEdit:
I hold 'a' and I get the menu shortly afterwards to chose among the accented versions.
If there are no accented variations for that letter, nothing happens (the letter is not repeated)
in Textmate:
If I hold down the 'a' key, it is repeated until I release the key.
If I hold down the 'd' key (or any other key without accented variations), nothing happens.
-----------------------------
This is a small quirk I guess. I have not tried how TM acts, if this behavior in Lion is switched off using:
defaults write -g ApplePressAndHoldEnabled -bool false
as a restart is required afterwards and I am a lazy bum.
-----------------------------
What I would prefer in Textmate (maybe others will agree?):
Holding a key pressed should result in the letter being inserted repeatedly.
Ideally this can be switched with a .tm_properties rule based on the scope or grammar.
(it might be nice to be able to type umlauts when writing a plain text file,
but more convenient to type '/*****' in a source file without repeatedly having to press the '*' key)
Maybe you can consider my suggestion.
Thx,
Thomas
Hi,
maybe I found a fix for that issue (at least my test script now runs :) ):
The new R.tmbundle stuff I host at https://github.com/avian/r.tmbundle/
thus here the code which should be tested.
Please replace everything in between
STDOUT.sync = true {... and ...} STDOUT.flush
in file tmR.rb by:
STDOUT.sync = false
STDERR.sync = false
descriptors = [stdout, stderr]
descriptors.each { |fd| fd.fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK) }
until descriptors.empty?
select(descriptors).shift.each do |io|
begin
str = io.readline
rescue
descriptors.delete io
io.close
break
end
if str.nil? or str.empty?
descriptors.delete io
io.close
elsif io == stderr
# just in case
print hideStartMessageJS
print %{<span style="color: red">#{esc str}</span>}
elsif io == stdout
print hideStartMessageJS
str.each_line do |line|
# line counter for top level source
if line.include?("#{linecountermarker}")
linecounter += 1
line.sub!("#{linecountermarker}", '')
end
# check for a comment sign at the beginning of a line
if line.match(/>\s*#/)
print "<i><font color=blue>#{esc line.chomp}</font></i>\n"
# check for a comment within a line - regexp should be improved yet!
elsif m=line.match(/(.*?)(#[^"']*)$/)
print esc(m[1]).gsub(/^(>|\+)/,'<a class="prompt" href="txmt://open?line='+linecounter.to_s+'">\1</a>')
print "<i><font color=blue>#{esc(m[2]).chomp}</font></i>\n"
# check for error messages
elsif m=line.match(/(?i)^\s*(error|erreur|fehler|errore|erro)( |:)/)
where = (isSelection) ? " of selection" : ""
print "<span style='color: red'>#{esc str.gsub(%r{(?m).*?#{m[1]}},m[1]).chomp}<br /><i>RMate</i> stopped at <a href='txmt://open?line=#{linecounter}'>line #{linecounter-selectionlinestart}#{where}</a></span><br />".gsub(%r{source\("(.*?)"\)},'source("<a href="txmt://open?url=file://\1">\1</a>")')
print "<hr noshade width='300' size='2' align='left' color=lightgrey>"
break
# check for warnings
elsif line.match(/^\s*(Warning|Warning messages?|Message d.avis|Warnmeldung|Messaggio di avvertimento|Mensagem de aviso):/)
print "<span style='color: gray'>#{esc line}</span>"
# print line simply with hyperlinked prompt if given
elsif line.match(/_\x8./)
print "#{line.gsub(/_\x8(.)/,'<b>\1</b>')}"
else
print esc(line).gsub(/^[\x0-\x9]?(>|\+)/,'<a class="prompt" href="txmt://open?line='+linecounter.to_s+'">\1</a>')
end
end
end
end
end
STDOUT.flush
Feedback is welcome :)
Cheers,
--Hans
In TM2 is there any way to default unknown file types to plain text
without the "What is the file type of..." dialog? I come across a lot
of files without extensions and 99% of the time I want to treat them as
plain text. Is there a way to just skip the dialog?
--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com <http://www.arbornetworks.com/>