Is there already a known solution for correctly indenting multi-line lists,
so that the elements properly align with each other, e.g. in Python:
myList = [firstElement,
SecondElement] # 'f' and 'S' align
myDict = {key1:value1,
key2:value2} # the two 'k' align
It seems the lack of fine control over indentation in Textmate is already
well known; I was just wondering if there is any commonly accepted
(interim?) solution.
Thanks!
Abhi
Hi everyone :)
Don't want to complain or anything but it seems to me like a legitimate
question : is TextMate still in development ?
Apart from v. 2.0, it seems like there is no 1.x update anymore…
Thanks in advance for any insights :)
--
View this message in context: http://www.nabble.com/Future-development---tp20688730p20688730.html
Sent from the textmate users mailing list archive at Nabble.com.
I've just discovered the Plain Text Wiki bundle [1], and I'd like to
improve the grammar by including the markdown language, so that the
pagename scopes are just added on to markdown.
Currently, the language grammar looks like this:
{ scopeName = 'text.html.markdown.wiki';
comment = 'TODO: Get nesting to work correctly.
Currently, the links are only picked up outside of paragraphs.';
fileTypes = ( 'txt', 'markdown', 'mdown', 'markdn', 'md' );
patterns = (
{ include = '#delimited'; },
{ include = '#camelcase'; },
{ include = 'text.html.markdown'; },
);
repository = {
camelcase = {
name = 'markup.other.pagename.camelcase';
match = '[A-Z][a-z]+([A-Z][a-z]*)+';
};
delimited = {
contentName = 'markup.other.pagename.delimited';
begin = '\[\[';
end = '\]\]';
};
};
}
This includes the markdown grammar, but breaks everything else that is
in a paragraph.
I'm fairly sure I'm missing something simple, but can anyone help me out?
Cheers,
Matt
[1]: http://interconnected.org/home/more/2007/05/textmate-wiki/
PS. I've made a fork at:
http://github.com/mattfoster/plaintextwiki-tmbundle/ if anyone's
interested.
--
Matt Foster | http://hackerific.net
Hi,
there is a new “GetBundles” release available.
svn checkout:
export LC_CTYPE=en_US.UTF-8
mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
svn co http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'
svn update:
export LC_CTYPE=en_US.UTF-8
cd '~/Library/Application Support/TextMate/Bundles/GetBundles.tmbundle'
svn up
osascript -e 'tell app "TextMate" to reload bundles'
or simply:
http://email.eva.mpg.de/~bibiko/downloads/textmate/GetBundles.tmbundle.zip
“GetBundles” runs on MacOSX 10.4.x and MacOSX 10.5.x ppc/intel.
“GetBundles” is rewritten entirely. Here are the four main changes:
• it uses a cache file from textmate.org which will be generated by a
script that runs once a day on textmate.org to collect available data
from TM's svn repositories, from github.com, and includes private
hosted bundles (Cache File lists 346 bundles. Last modified date: Thu
Nov 20 11:00:03 UTC 2008)
• the installation of a bundle will be done by TextMate (the same
procedure when you double-click at a tmbundle in Finder)
• it updates TextMate's “Support Folder” automatically –if
needed– before it installs a bundle
- this update of TextMate's “Support Folder” will be always stored
in ~/Library/Application Support/TextMate/Pristine Copy/Support
- if there is no /Library/Application Support/TextMate/Support folder
it will create a symbolic link to Pristine's one
> this means:
- if you has already checked out TextMate's “Support Folder” TM
will use this one regardless of “GetBundles'” update
- this makes it possible that an user can use its own “Support
Folder” and s/he is responsible for its update
- if you like to use Pristine's “Support Folder” simply rename or
delete /Library/Application Support/TextMate/Support and update it by
using “GetBundles'” > Gear Menu > Update “Support Folder”
• “GetBundles” now displays the status (installed, there's an
update available etc.) of locally installed bundles
All activities, warnings, and errors are written into “GetBundles'”
Log file. You can open it by pressing ⌥⇧⌘L or “Gear Menu” >
Show Log.
The help file was updated but is still under constructions.
Furthermore you cannot update a bundle if this bundle is under
revision control (svn/git). You can delete/rename that bundle and use
“GetBundles” to reinstall it, or use svn/git (the “Info Window”
of a bundle shows the shell command(s)).
The underlying script is rather complex thus “GetBundles” needs
your help to fix problems, bugs, insufficiencies, speed, update
status, including the GUI design (Leopard and Tiger uses different
GUIs) and misspelled or wrong English messages etc.
I'd be appreciate to get any kind of feedback in order to improve it
further.
Kind regards,
--Hans
PS If you know more TextMate bundles hosted on private sites which are
worth to be listed in “GetBundles” please mail me the URL. I'll
then maintain the server file for private hosted bundles.
Hi,
Is there a 'Documentation for Word' function for Smarty (like the one
in the PHP bundle).
Both the PHP and Smarty manual look pretty much alike so it should not
be that hard to do?
Mvh Christoffer Winterkvist
---------------------------------------
oprah(a)noodlemantra.eu
This is very strange. I recently lost the Next Completion (esc) and
Incremental Search (ctrl+s) keybindings in TextMate. Lost as in nothing
happens when typing them. I recently updated to bleeding edge, i.e. 1.5.7
(1474). I can see the bindings in KeyBindings.dict in TextMate.app, but
maybe the file is corrupt somehow. Adding the non-functional bindings to a
local KeyBindings.dict in Application Support/TextMate makes them work
again. Am I the only one with this problem?
--
Sven Axelsson
++++++++++[>++++++++++>+++++++++++>++++++++++>++++++
>++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.
+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.
Hi,
** apoloigies if you're reading this again, posted it as a reply to
other topic, rather than new message.... idiot. :-(**
Having a small problem changing the HTML wrapping setup to accommodate
php docblocks.
I use alt-cmd-[ to reformat my code, and it (unsurprisingly) resets
docblock comments to
/**
* A comment
**/
However, I like my coments to fold!
I've tried changing the HTML language to cope with this, but I can't
quite get it to work. I can get
/**
* A comment
**/
to fold with :
foldingStartMarker = '(?x)
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|
script|ul|ol|li|form|dl)\b.*?>
|<!--(?!.*--\s*>)
|^<!--\ \#tminclude\ (?>.*?-->)$
|<\?(?:php)?.*\b(if|for(each)?|while)\b.+:
|\{\{?(if|foreach|capture|literal|foreach|php|section|strip)
|\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
|^\s*/\*\*\s*$ # added for folding docblocks
)';
foldingStopMarker = '(?x)
(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|
style|script|ul|ol|li|form|dl)>
|^(?!.*?<!--).*?--\s*>
|^<!--\ end\ tminclude\ -->$
|<\?(?:php)?.*\bend(if|for(each)?|while)\b
|\{\{?/(if|foreach|capture|literal|foreach|php|section|strip)
|^[^{]*\}
|^\s*\*\*/\s*$ # added for folding docblocks
)';
But can't seem to get the two spaces before the ** on the last line to
take.
Is there some trick with the regex I'm missing, or can I change the
behaviour of alt-cmd-[ ?
TIA
R
--
Richard Dyce MA (Cantab.) MBCS MIET
--
Richard Dyce MA (Cantab.) MBCS MIET
Hi all,
I'm was having trouble running Applescripts with the Applescript
bundle since upgrading to a new computer at work (recent TextMate
install). After upgrading the support Folder to the latest in the SVN
repo, I now get the following error when running applescripts:
Running “A Simple Script.scpt”…
0:1: syntax error: A unknown token can’t go here. (-2740)
I assume that the error is from the bundle incorrectly passing
arguments to the command line, and I was wondering if I could get some
help figuring things out. Oh, yeah and the scripts do run...
My TextMate Version is Version 1.5.7 (1474)
Bundles & Support: At revision 10820
Thanks.
Faun
Can anyone help with a command that would convert the case of selected
text as well as replaced spaces with underscores?
So, for instance:
This is a Title -> this_is_a_title
As a complete beginner in TextMate, I'm not sure how to create a
command to do this.
Any help would be greatly appreciated.
Best,
Michael R.
(For Easy Reference: http://ticket.macromates.com/show?ticket_id=4EFB31A8)
I wanted to bring up this ticket to find out if there was any news or
plan or even intent to address it.
Needless to say, I would really like to see it implemented. (You
should see some of my notes/outlines that I make in Textmate; with an
outline 6 tabs deep, it gets pretty messy when the line wraps around...)
Sincerely, and ever hopeful,
Neil.