hello:)
I can't delete a space with the key "delete" or with the key <- also.
I need to delete the file preference of textmate
i would like to know if i made a bad thing and if can modify the bad prefs
finally which can be the origin of this problem?
Greetings Alain Matthes
Le 17 févr. 06 à 12:38, Alain Matthes a écrit :
hello:)
I can't delete a space with the key "delete" or with the key <- also.
I need to delete the file preference of textmate
i would like to know if i made a bad thing and if can modify the bad prefs
finally which can be the origin of this problem?
Greetings Alain Matthes
with all "spaces" with all files txt, latex, html when i cut a word of n letters, i have n spaces
????
Alain Matthes
Le 17 févr. 06 à 14:47, Allan Odgaard a écrit :
On 17/2/2006, at 14:42, Alain Matthes wrote:
[...] with all "spaces" with all files txt, latex, html when i cut a word of n letters, i have n spaces
Does the caret have the shape of an underline instead of an I-beam?
If so, go to Edit -> Mode and uncheck overwrite mode.
the shape of an underline. I think that I typed on the keys command control O instead of command control L :(
thanks for your answer and for your great software !
one feature request : a latex palette and a matrix palette like the palettes of texhshop . There are some latex widgets but the code goes in the clipboard and not in textmate . is it possible for a widget ?
Perhaps a little soft like Textpander but with palette.
Greetings
Alain Matthes
On 17/2/2006, at 15:22, Alain Matthes wrote:
[...] There are some latex widgets but the code goes in the clipboard and not in textmate . is it possible for a widget ?
It is, yes.
I haven't looked at these widgets, but presumably they use the Widget.system() function to place the text on the clipboard.
One can insert text into TextMate by calling for example:
osascript -e 'tell app "TextMate" to insert "\alpha"'
And from a widget, one can wrap that in Widget.system(…).
It is also possible to add “as snippet yes” to the line, so that the text inserted is treated as a snippet.
A downside is that AppleScript/osascript is slow, so there will be a delay from clicking the item in the palette, till the text is inserted in TextMate.
On Feb 17, 2006, at 8:39 AM, Allan Odgaard wrote:
A downside is that AppleScript/osascript is slow, so there will be a delay from clicking the item in the palette, till the text is inserted in TextMate.
Could it be done faster with a TextMate plugin?
Alain: Can you point us to the widgets you are referring to?
Haris
On 17/2/2006, at 15:52, Charilaos Skiadas wrote:
A downside is that AppleScript/osascript is slow, so there will be a delay from clicking the item in the palette, till the text is inserted in TextMate.
Could it be done faster with a TextMate plugin?
Sure, a plug-in can just call insertText: (from the NSTextInput protocol).
Le 17 févr. 06 à 15:52, Charilaos Skiadas a écrit :
On Feb 17, 2006, at 8:39 AM, Allan Odgaard wrote:
A downside is that AppleScript/osascript is slow, so there will be a delay from clicking the item in the palette, till the text is inserted in TextMate.
Could it be done faster with a TextMate plugin?
Alain: Can you point us to the widgets you are referring to?
Haris
Yes ! Symbols 1.0.2 Trevor Harmon
http://vocaro.com/trevor/software/widgets/
Alain Matthes
On 17/2/2006, at 16:30, Alain Matthes wrote:
Yes ! Symbols 1.0.2 Trevor Harmon
Okay, if you want this to insert into TextMate, instead of putting it on the clipboard, then save the attached patch to your home directory and do (from Terminal):
cd ~/Library/Widgets/Symbols.wdgt patch < ~/Symbols.js.patch
It just changes a single line. After having patched the Widget, you will need to quit the instance running in Dashboard, and start it again.
Le 17 févr. 06 à 17:08, Allan Odgaard a écrit :
On 17/2/2006, at 16:30, Alain Matthes wrote:
Yes ! Symbols 1.0.2 Trevor Harmon
Okay, if you want this to insert into TextMate, instead of putting it on the clipboard, then save the attached patch to your home directory and do (from Terminal):
cd ~/Library/Widgets/Symbols.wdgt patch < ~/Symbols.js.patch
It just changes a single line. After having patched the Widget, you will need to quit the instance running in Dashboard, and start it again.
<Symbols.js.patch>
Yes !!!! great with amnesty i can keep the widget open. And i can modify some code html css ans js for adapting to my knowledge. it's a good exercise
thanks
Alain
On Feb 17, 2006, at 8:08 AM, Allan Odgaard wrote:
Okay, if you want this to insert into TextMate, instead of putting it on the clipboard, then save the attached patch to your home directory and do (from Terminal):
cd ~/Library/Widgets/Symbols.wdgt patch < ~/Symbols.js.patch
I've incorporated your patch into the "official" widget and released a new version:
http://vocaro.com/trevor/software/widgets/
You can now tell the widget what to do when clicking on a symbol.
Trevor
Le 17 févr. 06 à 15:39, Allan Odgaard a écrit :
On 17/2/2006, at 15:22, Alain Matthes wrote:
[...] There are some latex widgets but the code goes in the clipboard and not in textmate . is it possible for a widget ?
It is, yes.
I haven't looked at these widgets, but presumably they use the Widget.system() function to place the text on the clipboard.
One can insert text into TextMate by calling for example:
osascript -e 'tell app "TextMate" to insert "\alpha"'
And from a widget, one can wrap that in Widget.system(…).
It is also possible to add “as snippet yes” to the line, so that the text inserted is treated as a snippet.
A downside is that AppleScript/osascript is slow, so there will be a delay from clicking the item in the palette, till the text is inserted in TextMate.
Snippet are fine but there are with latex a lot of commands and it's difficult to remember all the shortcuts and the commands. if i need to open the window of the snippets, i prefer a palette. I think that a palette with tabs for ordering and with the status bar ( the status bar at the bottom of the window is not very esay to use) will be a extraordinary tool.
They are only suggestions and not bad criticisms because I find that Textmate is the best software than I use on Mac
Alain Matthes
PS : There is a soft that can put text into texmate and it's very great
Irispen II with the pen scanner ( it's possible to have an emulation of the keyboard ) is fine very fine !!
On Feb 17, 2006, at 9:17 AM, Alain Matthes wrote:
Snippet are fine but there are with latex a lot of commands and it's difficult to remember all the shortcuts and the commands.
Actually, the LaTeX bundle in its current version has almost no snippets. Most things are done with two commands, "Insert environment based on current word..." and "Insert Command based on current words..". These two are pretty customizable and you can add your own environment definitions and stuff. I'm noticing now that the environments "array", "tabular" etc don't have a nice default definition yet, so if someone can suggest what they would want inserted, I can add it to the command.
if i need to open the window of the snippets, i prefer a palette. I think that a palette with tabs for ordering and with the status bar ( the status bar at the bottom of the window is not very esay to use) will be a extraordinary tool.
I agree, a palette would be very nice. It is just a question of finding someone to write it as a textmate plugin. :) I would if I had the time. Over the summer maybe.
Yes ! Symbols 1.0.2 Trevor Harmon
Ah yes, I've seen that. I just thought maybe you knew of something for arrays. What exactly would want for arrays? It would be relatively easy to write a new command that asks you what kind of array you want, and how many rows and columns you want in it, and then set it up. Is that what you are looking for in terms of built in functionality?
Alain Matthes
Haris
Le 17 févr. 06 à 18:10, Charilaos Skiadas a écrit :
On Feb 17, 2006, at 9:17 AM, Alain Matthes wrote:
Snippet are fine but there are with latex a lot of commands and it's difficult to remember all the shortcuts and the commands.
Actually, the LaTeX bundle in its current version has almost no snippets. Most things are done with two commands, "Insert environment based on current word..." and "Insert Command based on current words..". These two are pretty customizable and you can add your own environment definitions and stuff. I'm noticing now that the environments "array", "tabular" etc don't have a nice default definition yet, so if someone can suggest what they would want inserted, I can add it to the command.
if i need to open the window of the snippets, i prefer a palette. I think that a palette with tabs for ordering and with the status bar ( the status bar at the bottom of the window is not very esay to use) will be a extraordinary tool.
I agree, a palette would be very nice. It is just a question of finding someone to write it as a textmate plugin. :) I would if I had the time. Over the summer maybe.
Perhaps it's possible to work like texshop with xml list
Yes ! Symbols 1.0.2 Trevor Harmon
Ah yes, I've seen that. I just thought maybe you knew of something for arrays. What exactly would want for arrays? It would be relatively easy to write a new command that asks you what kind of array you want, and how many rows and columns you want in it, and then set it up. Is that what you are looking for in terms of built in functionality?
arrays like this
\documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[frenchb]{babel}
\begin{document}
\begin{center} \begin{tabular}{|l|*{10}{c|}} \hline Année& 1992& 1993& 1994& 1995& 1996&1997&1998&1999& 2000& 2001\ \hline Rang de & 0&1&2& 3&4& 5&6&7&8&9\ l'année $x_i$ & & & & & & & & & & \ \hline Taux $t_i$& 42,7 & 42,9&43,4&43,7&44,8&44,9& 44,9&45,7&44,7 & 44,2\ \hline \end{tabular} \end{center} \end{document}
Greetings
Alain
On Feb 17, 2006, at 10:48 AM, Alain Matthes wrote:
\begin{tabular}{|l|*{10}{c|}} \hline Année& 1992& 1993& 1994& 1995& 1996&1997&1998&1999& 2000& 2001\ \hline Rang de & 0&1&2& 3&4& 5&6&7&8&9\ l'année $x_i$ & & & & & & & & & & \ \hline Taux $t_i$& 42,7 & 42,9&43,4&43,7&44,8&44,9& 44,9&45,7&44,7 & 44,2\ \ \hline \end{tabular}
On the subject of easily building tables, you might try this quick perl script: http://notes.somethingpretentious.net/articles/2005/11/24/tab- delimited-text-to-latex-tabular
I set it up as a command in the LaTeX bundle, set to replace the selected text. A couple of quick keystrokes and it converts a tab- delimeted table like this:
row one item item2 item3 row two item item2 item3 row three item item2 item3
to a basic LaTeX table that you can then tweak to your needs:
\begin{tabular}{cccc} \hline row one & item & item2 & item3\ \hline row two & item & item2 & item3\ row three & item & item2 & item3\ \ \hline \end{tabular}
Cheers- -Alan
Le 17 févr. 06 à 19:07, Alan Schussman a écrit :
On Feb 17, 2006, at 10:48 AM, Alain Matthes wrote:
\begin{tabular}{|l|*{10}{c|}} \hline Année& 1992& 1993& 1994& 1995& 1996&1997&1998&1999& 2000& 2001\ \hline Rang de & 0&1&2& 3&4& 5&6&7&8&9\ l'année $x_i$ & & & & & & & & & & \ \hline Taux $t_i$& 42,7 & 42,9&43,4&43,7&44,8&44,9& 44,9&45,7&44,7 & 44,2\ \ \hline \end{tabular}
On the subject of easily building tables, you might try this quick perl script: http://notes.somethingpretentious.net/articles/2005/11/24/tab- delimited-text-to-latex-tabular
I set it up as a command in the LaTeX bundle, set to replace the selected text. A couple of quick keystrokes and it converts a tab- delimeted table like this:
row one item item2 item3 row two item item2 item3 row three item item2 item3
to a basic LaTeX table that you can then tweak to your needs:
\begin{tabular}{cccc} \hline row one & item & item2 & item3\ \hline row two & item & item2 & item3\ row three & item & item2 & item3\ \ \hline \end{tabular}
Sorry formy bad english language :(
Fine that's work very well, very interesting because and I can learn by studying this good example . Your site is also very interesting !
The textmate's community is really fantastic.
In only a few hours, I learned a lot of things
from you : the script perl !!
from Haris : Do people really use the mouse to navigate this menu? I just press control-esc, then the first two letters of the bundle I want, then right arrow, left arrow if I want to go back and so on.
that's new for me : i don't have many time for studing all the possibilities that textmate allows (and I'm a little too old )
I think that I must attentively look at several times the marvellous screencats 1,2 and 3 !!
from Allan : how to use textmate with applescript and a widget
Greetings
On Feb 17, 2006, at 12:20 PM, Alain Matthes wrote:
Fine that's work very well, very interesting because and I can learn by studying this good example . Your site is also very interesting !
Just to be clear, I'm not the author of the script or of the site where it's hosted. I'm just a user.
-Alan
I just added two commands to the LaTeX bundle, both triggered by shift-ctrl-command. The "Create Table" commands pops up a window asking you for number or rows and columns, and then creates a table based on that. The other is the script that Alan mentioned, recorded as a macro so that it could run "Convert Spaces to Tabs" first so that it runs with Soft Tabs also. Let me know how these work and how we should improve them.
Haris
On 18 févr. 06, at 07:05, Charilaos Skiadas wrote:
I just added two commands to the LaTeX bundle, both triggered by shift-ctrl-command. The "Create Table" commands pops up a window asking you for number or rows and columns, and then creates a table based on that. The other is the script that Alan mentioned, recorded as a macro so that it could run "Convert Spaces to Tabs" first so that it runs with Soft Tabs also. Let me know how these work and how we should improve them.
Hello,
I'm using LaTeX a lot for work but I'm a new user of TextMate. In order to benefit from these new commands, should I just check out the LaTeX bundle from subversion? Is it an extension of the official bundle that comes with TextMate?
Thanks,
Alan
On Feb 18, 2006, at 1:37 AM, Alan Schmitt wrote:
Hello,
I'm using LaTeX a lot for work but I'm a new user of TextMate. In order to benefit from these new commands, should I just check out the LaTeX bundle from subversion? Is it an extension of the official bundle that comes with TextMate?
Hey Alan,
yes, you would need to check out the LaTeX bundle from subversion as described in the manual. You will also need however to checkout a global support directory which resides on the same level as the bundles. So the path to the bundles would end up being: ~/Library/Application Support/TextMate/Bundles/... while this support directory is in: ~/Library/Application Support/TextMate/Support
You can try without it, most of the new commands in the bundle don't need it. But to make full use of the Bibliography Completion and :Label Completion commands, you will need it, and you also will need it for CocoaDialog, which is what one of these array commands uses.
Thanks,
Alan
-- Alan Schmitt http://alan.petitepomme.net/
The hacker: someone who figured things out and made something cool happen. .O. ..O OOO
Haris
Le 18 févr. 06 à 16:10, Charilaos Skiadas a écrit :
On Feb 18, 2006, at 1:37 AM, Alan Schmitt wrote:
Hello,
I'm using LaTeX a lot for work but I'm a new user of TextMate. In order to benefit from these new commands, should I just check out the LaTeX bundle from subversion? Is it an extension of the official bundle that comes with TextMate?
Hey Alan,
yes, you would need to check out the LaTeX bundle from subversion as described in the manual. You will also need however to checkout a global support directory which resides on the same level as the bundles. So the path to the bundles would end up being: ~/Library/Application Support/TextMate/Bundles/... while this support directory is in: ~/Library/Application Support/TextMate/Support
You can try without it, most of the new commands in the bundle don't need it. But to make full use of the Bibliography Completion and :Label Completion commands, you will need it, and you also will need it for CocoaDialog, which is what one of these array commands uses.
hello,
I install this morning svn with success and i use information of the wiki :
SubversionCheckout
If you want bundles not included with TextMate, you can perform a subversion checkout.
For more information see the Bundles section of the manual.
If you want to checkout all bundles from the repository so that TextMate can use them, quit TextMate, open Terminal.app, and run:
mkdir -p /Library/Application\ Support/TextMate cd /Library/Application\ Support/TextMate export LC_CTYPE=en_US.UTF-8 # assuming you don't have this setup already # for tcsh instead use: setenv LC_CTYPE en_US.UTF-8 svn --username anon --password anon co http://macromates.com%5C /svn/Bundles/trunk ./
/Library/Application\ Support/TextMate that's different of ~/Library/Application\ Support/TextMate ?
What is the good choice ?
and i've a problem with cocoadialog (not found)
The only try correct : 5 10 select and create table
Greetings Alain
Le 18 févr. 06 à 17:36, Alain Matthes a écrit :
/Library/Application\ Support/TextMate that's different of ~/Library/Application\ Support/TextMate ?
What is the good choice ?
and i've a problem with cocoadialog (not found)
The only try correct : 5 10 select and create table
I put the folder Support with bin etc.... in
~/Library/Application\ Support/TextMate/
and now it's fine
Thanks
Greetings
Alain
On Feb 18, 2006, at 10:36 AM, Alain Matthes wrote:
/Library/Application\ Support/TextMate that's different of ~/Library/Application\ Support/TextMate ?
Yes, they are different. The first one is a location that is accessed by all users of your computer, so if you have more than one accounts then they can share whatever you put there. It requires administrator access to write there though. The second one is the directory corresponding to your user at the moment. When you make modifications to the bundles yourself, like changing shortcuts and such, they get saved here. So if you use that you might get conflicts occasionally.
What is the good choice ?
I would go with the first one if you have write access to it. Though I am not sure it makes much of a difference, and in any case I see from your next reply that you have already done this.
Greetings Alain
Haris
Le 18 févr. 06 à 17:49, Charilaos Skiadas a écrit :
On Feb 18, 2006, at 10:36 AM, Alain Matthes wrote:
/Library/Application\ Support/TextMate that's different of ~/Library/Application\ Support/TextMate ?
Yes, they are different. The first one is a location that is accessed by all users of your computer, so if you have more than one accounts then they can share whatever you put there. It requires administrator access to write there though. The second one is the directory corresponding to your user at the moment. When you make modifications to the bundles yourself, like changing shortcuts and such, they get saved here. So if you use that you might get conflicts occasionally.
What is the good choice ?
I would go with the first one if you have write access to it. Though I am not sure it makes much of a difference, and in any case I see from your next reply that you have already done this.
In ~/Library/Application\ Support/TextMate i've my latexbundle with some commands and macros which I created i'm a newbie with svn sorry :(
1) if i use ~/Library/Application\ Support/TextMate my latexbundle is removed or or updated?
2) with /Library/Application\ Support/TextMate : i've two folders with Application\ Support/TextMate with two latexbundles.
is it a problem or the commandes etc... are mixed and all accessible ?
Alain
On 18/2/2006, at 18:34, Alain Matthes wrote:
is it a problem or the commandes etc... are mixed and all accessible ?
They are all merged -- and that's why I recommend using /Library for a svn checkout, because then you can safely remove the entire TextMate folder from /Library without the loss of custom stuff.
Le 18 févr. 06 à 18:36, Allan Odgaard a écrit :
On 18/2/2006, at 18:34, Alain Matthes wrote:
is it a problem or the commandes etc... are mixed and all accessible ?
They are all merged -- and that's why I recommend using /Library for a svn checkout, because then you can safely remove the entire TextMate folder from /Library without the loss of custom stuff.
thanks and it's fine like this
I've a little problem now
with selected text 2 10 by example and create table no problem
with create table : 2 10 in the dialog window i've a good result but preceding by :
2006-02-18 19:36:34.734 CocoaDialog[2838] Can't open input server / Library/InputManagers/Smart Crash Reports.bundle
Alain
On 18/2/2006, at 19:43, Alain Matthes wrote:
with create table : 2 10 in the dialog window i've a good result but preceding by :
2006-02-18 19:36:34.734 CocoaDialog[2838] Can't open input server / Library/InputManagers/Smart Crash Reports.bundle
The difference is that w/o a selection the command loads CocoaDialog, and that will cause input managers to be loaded (for the CocoaDialog “application”). But the error isn't really related to TM or CocoaDialog. Not sure why you get the error, but it's probably nothing to worry about.
Le 19 févr. 06 à 20:13, Allan Odgaard a écrit :
On 18/2/2006, at 19:43, Alain Matthes wrote:
with create table : 2 10 in the dialog window i've a good result but preceding by :
2006-02-18 19:36:34.734 CocoaDialog[2838] Can't open input server / Library/InputManagers/Smart Crash Reports.bundle
The difference is that w/o a selection the command loads CocoaDialog, and that will cause input managers to be loaded (for the CocoaDialog “application”). But the error isn't really related to TM or CocoaDialog. Not sure why you get the error, but it's probably nothing to worry about.
thanks and i prefer the first method without cocoadialog !!
Greetings
Alain
On 18 févr. 06, at 16:10, Charilaos Skiadas wrote:
Hey Alan,
yes, you would need to check out the LaTeX bundle from subversion as described in the manual. You will also need however to checkout a global support directory which resides on the same level as the bundles. So the path to the bundles would end up being: ~/Library/Application Support/TextMate/Bundles/... while this support directory is in: ~/Library/Application Support/TextMate/Support
Thanks, I did this (putting it into /Library directly).
Alan