Hello,
I am trying to create a bundle where in the particular language after a function definition you would call that function with:
[code....]
function my_function_name
.
.
code
.
.
end function
...more code...
call my_function_name
[/code....]
Now for the question to the TxMt gurus:
How would I make it so the "my_function_name" has a different color after the "call" keyword ?
I have already made the "call" to be a reserved keyword colored blue but if would be nice to have the "my_function_name" function colored red or some other catchy color after the word "call"
Is that possible and what would be the syntax for the bundle?
Thanks in advance.
John
> I should have mentioned that if I turn soft-wrap on, then the right margin indicator becomes visible; it's only when soft-wrap is off that it's invisible. Unfortunately, that's exactly when you need it.
I have the exact same issue and it seems small but it's pretty much the only thing stopping me from using TM2 full time. Any clues how to turn this on or when it might be implemented/fixed?
Hi all,
Just downloaded and started using TM2, and I've found an issue when opening a new tab.
When hitting Option + Command + N, a new tab is opened, but also all of the folders in the file view on the left become expanded. After this TM2 becomes unresponsive and I have to force close it.
Has anybody else experienced this issue?
I'm running TM2 v2.0 (8956) on a MacBook Air with Lion 10.7.2.
Cheers,
Gaz.
First time posting to the list - please be gentle....
So, I open a folder into Textmate2 (8971) and set View...Soft Wrap to off
(unchecked).
Do some work...open another file...go back to the original file, Soft Wrap
is now checked without me doing anything to turn it on.
Am I missing something? Is this a case where I need a .tm_properties file
in the folder I'm working in?
(Otherwise I'm really liking how TM2 is working so far)
J-
Hi,
since the first "official" Alpha version, TM2 allows themes to resize text in certain scopes (headers, etc.). The markdown bundle does this, for example. Is it possible to completely disable this feature, as I generally don't find it very pretty (which seems like a tuning issue) and it does have some weird issues with code blocks (erratic resizing of single lines)? I couldn't find it in any of the tm_properties guides.
Best regards,
Florian
Hiya
Is there a setting to tell TM2 to always highlight the file in the
project pane which corresponds to the currently active tab? (In TM1
you could trigger this with a menu command, but personally, I'd prefer
to have this done automatically since it's very handy in bigger
projects which contain identical file names.)
Cheers, -sven
Hi,
just started to look at TM2 and I am getting some problem.
Whenever I click on the wheel in the status line at the bottom of the window I get this popup window:
and nothing else happens. What am I doing wrong?
JF
With TM2, it doesn't seem to honor my KeyBindings like 1.5 did, specifically, my emacs-like settings.
For instance, ^v and meta-v do not pageup/down as is specified in my DefaultKeyBinding.dict file. Another, ^k will delete the text on the line, but ^k on an empty line will not remove that line (this is particularly annoying because the only way to remove a line is select and delete it). Furthermore, I used to use ^w and ^y for yanking and putting text, but these don't seem to work any longer.
Anyone else seeing behavior like this? Is there something I am missing? I haven't changed my DefaultKeyBindings, and the behavior is fine in other Cocoa apps and TM1.5.
For now, I will assume it is just an alpha bug...
Thanks,
Brian
Hello,
I supposedly have TextMate 2 bound to a single Desktop, but when I
launch TextMate, or run `mate file` to open a file in an existing
session, then that it will open on the current Desktop, ignoring the
setting. Essentially, TextMate always behaves as if the Desktop
affiliation is always None.
OSX 10.7.2.
-MinRK
>
>
>
I'm using python 2.7.1
I can duplicate your result with your script. But if you edit the script
to:
if __name__ == "__main__":
"""docstring for main"""
assert 1 == 2
I see a result of: (also attached)
Assertion Error:
My expected behavior is the output your original script produces.
Thanks
First, I'd like to congratulate Allan on an amazing job on TM2. It is truly
a pleasure to discover / re-discover textmate.
I was wondering where the mate command went in the 8956 version. When I
install mate into ~/bin it symlinks to
mate -> /Applications/TextMate.app/Contents/Resources/mate
except when I look in Resources I don't see it in there.
-bakki
.--.
|o_o | -Bakki Kudva
| :_/ | Navaco, LLC
/ / \ \
(| | )
/'\_ _/`\
\___)=(___/
Greetings. Does anyone know a way to get TM2 to display the full Traceback
for the Python bundle "Run Script (cmd r)". Example:
assert 1 == 2
Traceback is:
Traceback (most recent call last):
File "~/Desktop/test.py", line 1, in <module>
assert 1 == 2
AssertionError
But in Textmate 1 & 2 is converted to:
Assertion Error: (adds colon)
Any guidance would be greatly appreciated. Happy holidays.
How does one create new bundle items within a menu structure? I'd like to
organize my personal bundle with top-level categories like ("HTML Tools",
"Text Tools", "Perl Tools", etc.). When I imported my personal bundle from
TM1, most of the structure was preserved, but whenever I create a new
command, a new snippet, etc, the new item always goes at the top-level, and
I haven't figured out any way to move the new item into my
existing/preferred structure.
Thanks for any help/suggestions.
Loving the new TextMate!!!
-----
--
Jake Coughlin
(coughlin_jake(a)yahoo.com)
--
View this message in context: http://old.nabble.com/TM2-Bundle-structure-tp33037064p33037064.html
Sent from the textmate users mailing list archive at Nabble.com.
On one of my two machines, TextMate 2 silently fails to load a number of
bundles. The LaTeX bundle was the first culprit I noticed.
As is visible here, it purports to be installed, but does not appear in the
file mode popup:
https://skitch.com/jrk/gu97u/screen-shot-2011-12-25-at-4.09.54-pm
(Similarly, if I select the LaTeX bundle when prompted on first opening a
.tex file, the sheet stalls forever with a full progress bar and the window
never renders the contents of the file.)
A few related oddities:
- A string of logged errors which seem to relate to the bundle installation
12/25/11 4:01:18.309 PM [0x0-0xd10d1].com.macromates.TextMate.preview: ***
swap_and_unlink(‘/var/folders/b0/j00c1y2j07ncwjgr2kmfw6bc0000gn/T/TextMate_dl_save_filter.BOPNSn’
→ ‘/Users/jrk/Library/Application
Support/TextMate/Managed/Cache/org.textmate.updates.default’): No such file
or directory
12/25/11 4:09:41.050 PM [0x0-0x35035].com.macromates.TextMate.preview:
error with swap_and_unlink:
/var/folders/b0/j00c1y2j07ncwjgr2kmfw6bc0000gn/T/TextMate_dl_bytes.omR0lQ →
/Users/jrk/Library/Caches/com.macromates.TextMate/Bundles/LaTeX
(2011-11-13).tbz
- Installing the LaTeX bundle on this machine automatically installs Java
and JavaDoc first, and R after. On my other machine (with a largely
identical configuration, but where this works), it installs one or two
random, seemingly unrelated dependencies, but not all three. (In
particular, it didn't seem to install the R bundle.)
This happens on a bare guest account, after wiping all settings and caches,
rebooting, etc., and happens identically in all 3 alpha builds I have seen
since the release.
Ideas?
Hello all, I was playing around with the new indented soft wrapping feature
in TextMate 2, and I'm a little confused with how this is supposed to work.
In http://article.gmane.org/gmane.editors.textmate.general/33488, Allan
said that the `format` value is expanded and prepended to each wrapped
line. However, try doing this: go into the bundle editor and edit Source >
Settings > Style: Line Comments - Slash, change the format string to
'${0/./a/g}', and save. Then open up a blank document with the language set
to C, hit tab a few times, and type a comment that extends past the
wrapping marker. When I do this, it appears that the `format` string is
being expanding and *appended* to each wrapped line, but that a number of
whitespace characters equal to the length of the `format` string are also
being *prepended* to each wrapped line. Is that what's supposed to happen?
Here's exactly what I see if I set the wrap column to 40 and put 8 spaces
before the beginning of the comment:
// Lorem ipsum dolor sit amet, aaaaaaaaaaa
consectetur adipisicing aaaaaaaaaaa
elit, sed do eiusmod tempor aaaaaaaaaaa
...
Is anyone else seeing this behavior as well? I ran across this while trying
to change the settings so that soft-wrapped comments had some sort of
"ghost" comment marker placed at the beginning of each line, for example
some kind of vertical ellipsis like a tricolon ⁝. Is it possible to achieve
that kind of effect with the new soft-wrapping system? Thanks for any
comments!
-Daniel
Hi,
Is it possible to bring back "Replace & Find" and "Replace" buttons in the
search window of TextMate 2.0?
Actually, there're only "Find All" and "Replace all" which is not
sufficient.
Thank's
--
View this message in context: http://old.nabble.com/TM2%3A-%22Replace---Find%22-button-tp33026608p3302660…
Sent from the textmate users mailing list archive at Nabble.com.
On Monday, December 26, 2011 at 12:13 , textmate-request(a)lists.macromates.com wrote:
>
>
> And how do you open the selected file in the file browser using the
> keyboard? ('enter' (or any combination of modifiers + 'enter)' just points
> to a renaming the file.)
>
> --
> Ja'far ibn Richard Railton
> +44 (0)7 85 79 85 426
> ibn.richard(a)gmail.com (mailto:ibn.richard@gmail.com)
>
After I upgraded to Lion, which has Ruby to 1.9 instead of Ruby 1.8, the
command "Environment Closer – \end{…}" (⌥⌘.) in the LaTeX bundle fails
with the following error:
TextMate.app/Contents/SharedSupport/Support/bin/checknest.rb:44:
syntax error, unexpected ':', expecting '}'
when /^-l(\d+)$/: levels = $1.to_i
I'm using TextMate 1.5.10 (1631).
Here is diff that fixes this error:
--- checknest.rb 2011-03-15 08:57:48.000000000 +0100
+++ checknest.rb 2011-12-23 10:17:00.000000000 +0100
@@ -40,11 +40,11 @@
debug = false
ARGV[3..-1].each {|e|
case e
- when /^-n(\d+)$/: num = $1.to_i
- when /^-l(\d+)$/: levels = $1.to_i
- when /^-e(.+)$/: error_text = $1
- when /^-p$/: pass = true
- when /^-d$/: debug = true
+ when /^-n(\d+)$/ then num = $1.to_i
+ when /^-l(\d+)$/ then levels = $1.to_i
+ when /^-e(.+)$/ then error_text = $1
+ when /^-p$/ then pass = true
+ when /^-d$/ then debug = true
end
}
Regards,
Freek Dijkstra
Hi,
- How about allowing a bundle command to run when a user opt and/or shift clicks on a file in the file browser sidebar? That would enable bundles to show an alternate view, for example the git bundle could show a diff when I opt-click a file in the file browser sidebar.
- I think a "Reveal in file browser sidebar" command would be useful.
Thanks
Gerd
>
> On Sunday, December 25, 2011 at 16:43 , Randy Ridenour wrote:
> > Quick question: is there a keyboard shortcut to make the file browser
> active? It can be opened with the keyboard, but I've yet to find a way to
> make it active except by clicking on a file with the mouse.
> >
> > --
> > Randy Ridenour
> >
> Never mind -- I found it in the latest release notes. Control-tab.
> Thanks,
> --
> Randy Ridenour
And how do you open the selected file in the file browser using the
keyboard? ('enter' (or any combination of modifiers + 'enter)' just points
to a renaming the file.)
--
Ja'far ibn Richard Railton
+44 (0)7 85 79 85 426
ibn.richard(a)gmail.com
Dear all,
First, thanks to Allan and everyone at Macromates for an amazingly
stable alpha release, with lots of new goodies/features to use.
Second, a couple of specific queries:
* I note that the emacs binding C-k deletes from the caret to the end
of the line, but C-y just inserts "TODO"; I assume that's a message from
the developer, but I want to check...
* Another emacs-related keybinding I miss is using C-s to continue
searching after the first use of C-s. Now, it seems that you have to use
<tab> after you first use C-s to bring up the search-in-doc box at the
bottom of the window.
Finally, more generally, is there any documentation for what can go into
a .tm_properties file, either official or just samizdat?
Thanks, and appropriately happy holidays to all,
Andrew
Quick question: is there a keyboard shortcut to make the file browser active? It can be opened with the keyboard, but I've yet to find a way to make it active except by clicking on a file with the mouse.
--
Randy Ridenour
Hi,
I think that the theme menu item could be moved to its own tab in
Preferences. There a radio button choice list could show the theme
immediately when chosen. It would feel more natural there. What do you all
think?
bakki
.--.
|o_o | -Bakki Kudva
| :_/ | Navaco, LLC
/ / \ \
(| | )
/'\_ _/`\
\___)=(___/
Hello,
I'am now using TM2 as my main editor, and I am quite happy with it.
I noticed a annoying problem :
I edit a lot of HAML files, where the indentation id syntactically relevant.
Sometime when I edit a line, the line step back by one tab left.
I can reproduce it easily :
- @countries.each_with_index do |country, index|
>
> - unless
>
>
Making a backspace at the end of the "unless" line make the line go left by
2 chars.
I have setup soft tabs of 2. This is using the Ruby Haml bundle.
Any idea ?
++
David