Hi all, I've tried searching for this, and my google-fu is weak.
Does anyone know how I would be able to change the indentation behavior for
just parenthesis in Javascript?
Basically, our code convention is so that when you have multiple arguments
on new lines (for instance, passing an anonymous function as a closure), the
closing parenthesis aligns to whatever the current tabbing level is.
Currently, the curly brackets do this now, and would like to mimic the
behavior, but can't make heads or tails of doing it with the current
indentation patterns.
Here's what I would like:
var xyz = (
\t
)
Here's how it actually currently is:
var xyz = (
\t)
Here are my current indenation rules, could anyone help me get what I'm
looking for, or have I been looking in the wrong place?
{ decreaseIndentPattern =
'^(.*\*/)?\s*(\}|\))([^{]*\{)?([;,]?\s*|\.[^{]*|\s*\)[;\s]*)$';
increaseIndentPattern = '^.*(\{[^}"'']*|\([^)"'']*)$';
}
Thanks in advance all!
--
View this message in context: http://www.nabble.com/Javascript-indentation-tp16985640p16985640.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I’ve been looking through the bundle help, but I haven’t been able to
find any information about my problem.
While I am usually using pdflatex to compile my files, I’m currently
working on a project containing a little pstricks. As we’re several
people working on the file, I’fd rather avoid using %! comments in the
beginning of the file. I was thus wondering if there was some way to
set a project-wise environment variable to override the default engine.
Thank you very much,
Édouard GILBERT
edouard.gilbert(a)gmail.com
On 15-May-08, at 5:00 AM, textmate-request(a)lists.macromates.com wrote:
> On May 15, 2008, at 11:00 AM, Arcana wrote:
>
>> When I open Textmate, for some reason it opens X11 as well. I don't
>> know why this happens and I can't get it to stop. The X11 icon
>> appears in the dock.
>>
>> How can I stop Textmate from loading X11? Thanks.
>>
>> -- Arcana
>> Suikoden Interactive Fiction: http://suikoden.mine.nu
>
> Do you have any plugins or special bundles installed?
>
> If so, try to remove them one by one and to revert to default bundles.
>
> <http://wiki.macromates.com/Troubleshooting/RevertToDefaultBundles>
>
> Most likely, this is caused by some plugin/bundle that uses the X11-
> Libs. This causes X11 to start automatically (on Leopard).
How do I know what plugins I have installed, if the problem is
probably not bundles?
-- Arcana
Suikoden Interactive Fiction: http://suikoden.mine.nu
Hi,
what do I have to set up in the bundle editor to achieve the following:
- Word is selected, e.g. TextMate
- use a key equivalent to get: \ind{TextMate}
That all needs to work with the LaTeX-Bundle.
Thanks
Christian
When I open Textmate, for some reason it opens X11 as well. I don't
know why this happens and I can't get it to stop. The X11 icon appears
in the dock.
How can I stop Textmate from loading X11? Thanks.
-- Arcana
Suikoden Interactive Fiction: http://suikoden.mine.nu
Hello everyone :)
Often, bookmarks accumulate in my files and soon enough, well there's too
much of them and it becomes tedious to jump to the one I want :-D
I don't know if it is possible for the time being but I would like to be
able to delete all bookmarks from a file, to clean completely the file.
TIA
--
View this message in context: http://www.nabble.com/Clean-bookmarks-in-a-file-tp17252984p17252984.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I want to ask if there's anything like GitMate that does folder icons
same as SVNMate?
2nd thing is if it would be possible to share same shortcut ⌃⇧A for
SVN, GIT and all versioning bundles.
Since they are exclusive -> folder may either contain just .git
or .svn subfolder, the ⌃⇧A menu could display/trigger its items
relatively to presence of those folders somehow.
Regards,
--
Adam Strzelecki |: nanoant.com :|
The behavior of double-click and option-arrow have recently changed for
me (only in TextMate), and I'm finding the new behavior really annoying.
For example, if I have the following Python code:
def my_function(parameter_name, defaults=None):
#This is a test + another test ...
...then, 1) if I double-click on the "my" part of the function name, it
select the string "def my"; 2) if I double-click on the word "test", it
selects "This is a test ". Previously, #1 would have selected either
"my" or "my_function" (I forget which) and, #2 would have selected only
the word "test".
The option-left-arrow and option-right_arrow keys use similar "word"
breaks when moving the cursor: if the cursor is in the word "test", for
instance, option-left-arrow moves it to the beginning of the word "This".
It's not just a Python change, either. If I have the following text:
ALTER TABLE `my_table_name` MODIFY COLUMN `column_name` FLOAT NOT NULL;
...then double-clicking on the word "MODIFY" selects " MODIFY COLUMN ",
for instance.
What might have changed to cause this annoying behavior, and how do I
fix it?
I'd appreciate any suggestions,
Mike
Hi,
When I open a new document with TM, it's allways a plain text document. But
I wish often a html document.
What can I do in order to obtain an empty html document ?
Thanks in advance.
--
Bernd
Hello,
This report is mostly to Ciarán, who deserve great thanks for making
great TM plugin.
I've reported this problem on http://ciaranwal.sh/2007/12/07/svnmate-update-2
But since there's no response I believe Ciarán might missed that, so I
just want to report that some of the folders and files that are
supposed to be under SVN control have no badges at all.
This happens when SVN controlled folder contains the unmanaged file
(out of version control) + few other files under version control,
folder badge is missing (removed), also parent folder looses badge
too. IMHO there’s something wrong with badge inheritance.
Also there’s missing badge for files marked as “!” (svn status) and
when there’s such a file in the folder all other SVN files loose badges.
Regards,
--
Adam Strzelecki |: nanoant.com :|
Hi There,
I wonder if anyone can recreate this, I did a screencapture of it and
Submitted a bug.
(http://macromates.com/ticket/show?ticket_id=660D19FA)
View it Here : http://www.youtube.com/watch?v=PUa6W3E9ZCg
Not super quality.
If you want just if you can recreate it, mail me and I'll send the file.
It's 900k
Karl
--
-----------------------------------------
Karl Fischer
"Absence of evidence
is not evidence of absence"
Carl Sagan
Email : kmf(a)fischer.org.za
Jabber : kmf(a)jabber.org
Personal Site : http://fischer.org.za
-----------------------------------------
My Subversion project contains a few symlinks that point to the same
directory the symlinks are in.
When I try to add that svn directory to a Textmate project by dragging the
folder into the project window, it freezes Textmate.
When I remove the symlinks before dragging the directory into the project,
it's fine. However, when I do a Subversion update on the entire project,
and the deleted symlinks get brought back down... it immediately freezes.
Is there some way to instruct Textmate handle this apparent endless loop
more gracefully? I am using Mac OS 10.5.2 and Textmate Version 1.5.7
(1436)
--
View this message in context: http://www.nabble.com/Textmate-Freezes-when-a-Subversion-project-contains-a…
Sent from the textmate users mailing list archive at Nabble.com.
Hi.
Since I upgraded my OS to Leopard, I'm not able to "Typeset & View (PDF)" my
LaTeX documents anymore. If I press cmd-R, all I get is the message "env:
python2.3: No such file or directory". What do I have to do to cmd-R my
documents again?
I'm on build 1464 and all my bundels are svn-up-to.date.
Bernd
--
berndschiffer.blogspot.com
I know about the shortcut for 'current scope',
but I'd like to see an optional
"double click to select current scope"
thing similar to how Xcode does it.
(Or, is there already some way to bind a
double-click to an user-defined action somehow?)
BTW, there seems to be a lot of cases in Textmate
where a scope is not selected correctly via
Select -> Current Scope.
Seems to be happening in large nested blocks
(cpp).
-Shin
Hi Guys.
I work a lot with Textmate, almost exclusively, in my MAC 24inch. In my
work, I deal with several textmate windows spread on my desktop, so I
organise them as I like. Sometimes, I need to close the all or some windows
(independent windows and some projects spread on my desktop). Unfortunately,
when I need to open the last windows, I have arrange them again. My question
is: Can I save the layout? Thx a lot and congratulations.
In RSpec file, if I run Command-R, I get the following error:
/Library/Application Support/TextMate/Bundles/Ruby RSpec.tmbundle/
Support/lib/text_mate_formatter.rb:5: uninitialized constant
Spec::Runner::Formatter::HtmlFormatter (NameError) from /usr/local/lib/
ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require' from /Library/Application Support/
TextMate/Bundles/Ruby RSpec.tmbundle/Support/lib/spec_mate.rb:14 from /
tmp/temp_textmate.zl6ZPP:3:in `require' from /tmp/temp_textmate.zl6ZPP:3
I'm using Ruby RSpec bundle from the latest macromates svn repos. I
can't find HtmlFormatter class(?).
Any help would be appreciated.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi,
When you use the subversion commit command in TM to commit something
into a repository where there is no authentication cached, the command
will wait indefinitely. And there is no way to stop it (other than
quitting TM).
Jeroen.
The command ⌘⌥R in HTML mode to open the current doc in runnning
browsers does not work properly (sorry, :)
it does
[[ $(ps -xc|grep Safari) ]] && osascript -e 'tell app "System Events"
to set proclist to name of every application process' -e 'if proclist
contains "Webkit" then' -e 'tell app "Webkit"' -e activate -e "make
new document" -e "set the URL of document 1 to \"$activeURL\"" -e 'end
tell' -e 'end if' -e 'if proclist contains "Safari" then' -e 'tell app
"Safari"' -e activate -e "make new document" -e "set the URL of
document 1 to \"$activeURL\"" -e 'end tell' -e 'end if'
but when you have WebKit running, ps returns you Safari as browser and
then you run Safari !!! side by side with the current running WebKit.
You should open the url via open url in that case or open it looking
for the real browser (Safari or WebKit that is currently running)
- Juan Falgueras
I am trying to make a snippet for easy writing of Effective Uniform Annual
Worth calculations which look something like this: EUAW = (Yearly Benefit +
Salvage Value*[A/F, $5%, $6]) - (Yearly Cost + Initial Cost*[A/P, $10%,
$11]) = [same thing but with [] expressions replaced by table lookups i do
by hand]
This is the snippet I've crafted for this (and to learn how to use
conditionals in snippets in general):
EUAW($1) = (${2:Yearly Benefit}${3: + ${4:Salvage Value}[A/F, $5%, $6]}) -
(${7:Yearly Cost}${8: + ${9:Initial Cost}[A/P, $10%, $11]})
= ${14:($2${4/$|(.+)/(?1: + $1*0.)/}$12) - ($7${9/$|(.+)/(?1: +
$1*0.)/}$13)}
That fills in everything, with appropriate mirroring, with one exception. I
want the text that's inserted if Salvage Value or Initial Cost are not
removed to include a tab stop. Thus I want the last line to look, I think,
like:
= ${14:($2${4/$|(.+)/(?1: + $1*0.${12:Table Lookup Value})/}) -
($7${9/$|(.+)/(?1: + $1*0.${13: Table Lookup Value})/})}
So that way if the salvage value/initial cost fields are removed in the
first part of the equation, the tab stop won't be there, but otherwise it
will so I can fill in the table lookup value. However, I've tried about a
dozen things and I can't get it to put that tab stop there. I understand
that $12 in that context would refer to the regex subexpression 12, but I
have tried escaping all sorts of character combinations to prevent that to
no avail.
If someone could please tell me how to insert those conditional tab stops in
there, I would be most appreciative.
Thanks!
--
View this message in context: http://www.nabble.com/Inserting-Tab-Stops-inside-of-Conditional-Insertion-t…
Sent from the textmate users mailing list archive at Nabble.com.
Hello Allan,
I found this on the net today:
http://www.simplehelp.net/2008/04/24/how-to-blurminal-your-os-x-terminal/
Its a hack of the terminal via SIMBL giving transparent backgrounds of
Terminal a 'blur effect'.
For a certain degree 'blurring backgrounds' improve usability, instead
of being GUI-toy only.
Also, it would integrate well into GUI changes of OSX that came with
Leopard.
Could something similar be on the roadmap?
BTW: This 'blurring' effect could be accompanied (fo' tha freakanoidz)
by effects like 'invertation of the background', making it B/W or
applying textures to it.
And Im thinking these kinds of effects will be supported by Core
technology, having in mind that you stated TM2.0 will be absolutly
build on core libraries of OSX 10.5 Leopard :0)
Thanks in advance!
Dennis
ps: But I also have in mind that you dont think TM will have its own
background-images, so I consider that you dont put any priority on
these GUI things :0(
hello,
don't really know if it's a feature request, bug report or my stupidity:
if i have a project opened in textmate like this:
~/project_dir
a_file.txt
and i call 'mate a_file.txt' from inside the project_dir everything is
fine
(file opens as tab in project window). but if i call mate from another
directory
with an absolute or relative path to ~/project_dir/a_file.txt, it
opens in a new
window which is very unconvenient for me.
if there should be a reason (can't imagine one) against this proposal,
i could live
with a command line option to specify the project's directory.
thanks in advance for considering it,
yours kodi
Hey fellow textmates!
I'd really really like to replicate something like eclipse's ability to hit
tab to move outside parentheses. However, all I really want to do is be able
to hit tab to move from |) to )| outside parens, I don't really even need it
to work when the cursor isn't directly adjacent to the closing paren.
I know I can make ( trigger a snippet that does that, but then I lose all
the regular functionality. I thought perhaps one could define a scope
('within-parens') for all source code, and then there could be a command or
something that checks to see if the next char is a ) and if so advances the
cursor past it that'd only work in that scope.
More advanced functionality would be great but not really crucial. If anyone
could help with this I'd REALLY appreciate it!
Thanks!
Nicolas Artman
--
View this message in context: http://www.nabble.com/Using-tab-to-move-out-of-parentheses-%28like-eclipse%…
Sent from the textmate users mailing list archive at Nabble.com.
I've recently starting using mercurial (using v0.9.5), and am using
the Mercurial bundle (2 Aug 2007 version - the latest, I think).
Sometimes it works great, and sometimes an attempt to use it fails
with "abort: There is no Mercurial repository here (.hg not
found)!". I've searched the list archives, and found one reference
to this issue:
http://lists.macromates.com/pipermail/textmate/2007-November/023219.html
But I don't understand the discussion, nor how to apply it to my
project. How can I create a TextMate project that has files from
several different nested directories, without having the Mercurial
bundle fail to work?
Thanks,
--
Kevin Horton
Ottawa, Canada