Open main menu

Changes

951 bytes added ,  18:35, 3 July 2012
m
moved Talk:ConTeXt Bundle for TextMate to Talk:TextMate: More obvious page name
(so that the do not get lost before integrating them into the bundle) --[[User:Mojca Miklavec|Mojca]] 02:55, 28 January 2008 (CET)
== inclusions for lua (as for metafun) ==
== parse_texexec_output.rb == * remove <nowiki>str.gsub!support more engines ("\n", "<br>")</nowiki>* add <nowiki>str = str.gsub(/^.*Insecure world writable dir.*?\n/, '')</nowiki> *Replace <nowiki>str = str.gsub(/(.*?):(\d+):(.*)/, "<a href='txmt://open?url=file://#{dir}/#{file}&line=\\2'>\\1:\\2:\\3</a>")</nowiki>with <nowiki>str = str.gsub(/(.*?):(\d+):(.*)/, "<a href='txmt://open?url=file://#{dir}/\\1&line=\\2'>\\1:\\2:\\3</a>")</nowiki>else errors point to wrong locations in case of project structure.  == refresh viewer == * http://www.macosxhints.com/article.php?story=20040314102550515&query=tell%2Bmenu%2Bbar%2B1 improve this code & import it into ''open'' link: pdf=${TM_FILEPATH%tex}pdf PDFFILE=`echo "${pdf}" | sed -e 's/.[^.]*$/.pdf/'` PDFBASENAME=`basename ${PDFFILE}` echo " tell application \"System Events\" if exists process \"Preview\" then tell application \"Preview\" to activate tell process \"Preview\" tell menu bar 1 repeat with currentItem in (every menu item of menu \"Window\" of menu bar item \"Window\" whose name contains \"${PDFBASENAME}\"-lua) click currentItem click menu item \"Close\" of menu \"File\" of menu bar item \"File\" end repeat end tell end tell end if end tell " | osascript # open ${PDFFILE} open -a ${PDF_VIEWER:=Preview} "${pdf}" == $$ pairs and other preferences ==
create a new ''P''See Bundles -> LaTeX -> Preferencesor Latex.tmbundle/Support/bin/texMate.py(hmmm ... it even supports texexec :)
<nowiki>{ highlightPairs = ( ( '(', ')' ), ( '{', '}' ), ( '[', ']' ), ( '$', '$' ), ); smartTypingPairs = ( ( '"', '"' ), ( '(', ')' ), ( '{', '}' ), ( '[', ']' ), ( '$', '$' ), ); # no idea what that is (copied from text) unIndentedLinePattern = '^\s*$'; }</nowiki> == fix env[tab] ==  <nowiki>\start${1:text}$0\stop${1/(\w*)(.*\n*)*/$1/}</nowiki> == add itm[tab] ==  \\startitemize \\item $0 \\stopitemize == inclusions for lua (as for metafuncheck how LaTeX does different things through menus) == as well as support for --lua switch
== implement metafun syntax & autocomplete ==
== scroll down in the log window automatically ==
(and blink or something if compilation fails) Edit Commands/typeset.tmCommand to include <key>autoScrollOutput</key> <true/>
== add support for automatic open after [opt]+R ==
print "\\stop#{stack.pop}"
end</nowiki>
 
== disable smart typing \& comments after backslash ==
 
clone from LaTeX bundle (maybe it could be simply inherited yrom TeX somehow?)
 
== more possibilities for tab-completion ==
 
when there are optional parameters, offer all of them for tab-completion and offer their descriptions (see how it's implemented in CSS)
 
= Unicode bundle =
 
* browse (by name/description/code) and insert unicode glyphs
* help about the character under cursor
 
= Graphical =
 
Is it possible to have a graphical menu with math symbols for example?
 
= Won't fix =
(comments by [[User:Patrick Gundlach|Patrick]])
 
== refresh viewer ==
Can't get this to work on my machine (tiger, power pc, german ui)
 
* http://www.macosxhints.com/article.php?story=20040314102550515&query=tell%2Bmenu%2Bbar%2B1
 
improve this code & import it into ''open'' link:
pdf=${TM_FILEPATH%tex}pdf
PDFFILE=`echo "${pdf}" | sed -e 's/.[^.]*$/.pdf/'`
PDFBASENAME=`basename ${PDFFILE}`
echo "
tell application \"System Events\"
if exists process \"Preview\" then
tell application \"Preview\" to activate
tell process \"Preview\"
tell menu bar 1
repeat with currentItem in (every menu item of menu \"Window\" of menu bar item \"Window\" whose name contains \"${PDFBASENAME}\")
click currentItem
click menu item \"Close\" of menu \"File\" of menu bar item \"File\"
end repeat
end tell
end tell
end if
end tell
" | osascript
# open ${PDFFILE}
open -a ${PDF_VIEWER:=Preview} "${pdf}"
 
= Fixed in 0.7 =
 
== parse_texexec_output.rb ==
 
* remove
<nowiki>str.gsub!("\n", "<br>")</nowiki>
* add
<nowiki>str = str.gsub(/^.*Insecure world writable dir.*?\n/, '')</nowiki>
 
*Replace
<nowiki>str = str.gsub(/(.*?):(\d+):(.*)/, "<a href='txmt://open?url=file://#{dir}/#{file}&line=\\2'>\\1:\\2:\\3</a>")</nowiki>
with
<nowiki>str = str.gsub(/(.*?):(\d+):(.*)/, "<a href='txmt://open?url=file://#{dir}/\\1&line=\\2'>\\1:\\2:\\3</a>")</nowiki>
else errors point to wrong locations in case of project structure.
 
== $$ pairs ==
 
create a new ''P''
 
<nowiki>{ highlightPairs = (
( '(', ')' ),
( '{', '}' ),
( '[', ']' ),
( '$', '$' ),
);
smartTypingPairs = (
( '"', '"' ),
( '(', ')' ),
( '{', '}' ),
( '[', ']' ),
( '$', '$' ),
);
# no idea what that is (copied from text)
unIndentedLinePattern = '^\s*$';
}</nowiki>
 
== fix env[tab] ==
 
<nowiki>\start${1:text}
$0
\stop${1/(\w*)(.*\n*)*/$1/}</nowiki>
 
== add itm[tab] ==
 
\\startitemize
\\item $0
\\stopitemize