Is it possible to save a macro that uses the find & replace dialogue box?
Lets say I want to save a macro that uses find & replace with a regular
expression to surround any number with ³**". For example, the macro would
replace any instances of ³123" with **123**. Is this possible?
Thanks
Ross
I trying to add the ability to run jshint on a document which has changes that haven't been saved to the filesystem to the jshint.tmbundle bundle:
https://github.com/fgnass/jshint.tmbundle
I wondered if there was a way to have textmate make a tmp file of the current document so I could pass that file in a command line invocation of jshint.
I was also checking out the Preview command in html.tmbundle and noticed that if I saved a file, added some text and ran Preview without saving the preview showed the new html content.
The code in the "Show Web Preview": command is pretty simple but it's not at all clear to me how it works to accomplish this:
https://github.com/textmate/html.tmbundle/blob/master/Commands/Show%20Web%2…
#!/bin/sh
if [[ -e "$TM_FILEPATH" ]]; then
echo "<base href=\"file://$TM_FILEPATH\">"
fi
cat
Does anyone have any suggestions of perhaps another bundle I can look at which does something like this?
FYI: this is the current command that invokes jshint in jshint.tmbundle:
https://github.com/fgnass/jshint.tmbundle/blob/master/Commands/Save%20and%2…
I've noticed a problem where if I have more than one tab in a window.
When make a different tab the active tab, the line numbers displayed
are those from the tab I just left. I can always reproduce this.
In the case I'm experiencing at the moment, the file in the tab I'm
leaving is only 24 lines long and so has no need for scrollbars, where
as the tab I'm activating has many lines. I scroll so that line one
is not visible. I then change to the other tab, then change back
again. I see line numbers starting at one. But it is not really line
one that is being displayed. If I Cmd-UpArrow. The line number
display is again in sync.
Is it possible for word completion to work on any open file or any file in a
project? Or in other words, lets say I press escape key to complete a word
which isn¹t in the current file, can I set up completion to cycle through
words that are in an open file and/or a project?
Thanks
Ross
After downloading 2.0-alpha.9477, the .txt and .tex files I open with TextMate by default lost their TextMate mini-icons and looked like blank files. I had to downgrade to 9475. Will the old behavior be restored?
--Gildas
Some applications. (e.g. the great "better_errors" Ruby gem [1]) encode
spaces as "+" when creating txmt://-URLs. This is also the default
behaviour of tje URI.encode_www_form_component and CGI.escape methods.
Currently, trying to open such an URL in TextMmate fails with "File Does
not Exist".
It works correctly though if I change the URL to use "%20" instead of "+".
My question is: Should TextMate support "+" in txmt://-URLs, or should I
submit a pull request for better_errors to generate URLs using "%20"
instead?
Regards,
Stefan
[1]: https://github.com/charliesome/better_errors
Selecting the following text strings and pressing Ctrl+T -> the resulting string, which seems incorrect:
@arr, ',' -> ',' ,rra@
$arr >= ">=" -> "=>" => rra$
Sorry if this has already been posted. I didn't see it in the Aug 2013 Archives.
regards - David
I’m working on a bundle command. In TextMate 2 (9475), I see “Completion List” as an option for the command’s output.
It doesn’t seem to do anything, but maybe I’m not sending the list in the right format.
Is this one of those things that hasn’t been implemented yet?
--
Rob McBroom
<http://www.skurfer.com/>
I have several files in a folder (all parts of a latex document).
When I run the "Show TODO list" command it just searches the current document.
The help file says "The “Show TODO List” command will scan your current document (on disk) or documents in your project for lines containing certain tags (see below)."
How do i search across all of files in a folder to find TODO items?
Thank you,
Christopher
*****************************************************
Operations and Information Management Group,
Aston Business School, Aston University,
Birmingham, B4 7ET, UNITED KINGDOM
Web: http://windermere.aston.ac.uk/~kiffer
Tel: +44 121 204 3233
Skype: christopherbrewster
SkypeIn (UK): +44 (20) 8144 0088
Twitter: @cbrewster
*****************************************************
Howdy,
A perplexing question. I just downloaded and installed TextMate 2.0 alpha
build 9465 and registered it. I played around a bit and after I was
finished, I uninstalled it, rebooted and reinstalled it. When I went to
register it again, it was already registered. From whence did the previous
registration come from?
For the record, I found and deleted all files/directories discovered using
"sudo find / -iname *textmate*" and "sudo find / -iname *macromates*".
That included components in:
1. /Applications
2. /private/var/db/BootCaches/....
3. ~/Library/Application Support/Avian & TextMate
4. ~/Library/Caches
5. ~/Library/Preferences
I'm losing sleep over this... I'd love to know where the registration was
picked up from. This is completely reproducible.
Thanks in advance,
Mark
--
View this message in context: http://textmate.1073791.n5.nabble.com/Where-is-a-reinstall-of-TextMate-2-al…
Sent from the textmate users mailing list archive at Nabble.com.
When a word is highlighted as being spelled incorrectly I control click on it to get a list of corrections and then select one. Is there any way to improve on this such as not using the mouse or tracker pad?
The sort of short cut I an thinking of is as soon as I have typed a word and it is shown as an error to be able to press some key combination to show the correction list and then use the number keys to select the correct word.
Dave.
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
Hi everyone
I think there is a bug into some themes with PHP,
it doesn't color what it is in braces into a double-quotes string (Complex (curly) syntax)
http://www.php.net/manual/en/language.types.string.php#language.types.strin…
Here are exemples :
With Espresso Libre theme
Brackets should be in brown not green.
With Cobalt theme
db should be in white not yellow, but at least braces and brackets are in light
Do you have the same issue?
Cheers,
Ronan
I'm trying to change the hotkey in the PHP bundle's validation function to
CMD-S from the default but when I try and save the bundle I get an error
saying there was an error:
[image: Inline images 1]
I've done the exact change on another machine without any problems. How do
I get around this?
Ken
Hello everyone,
I am using TextMate 2.0-alpha.9459 on Mac OS X 10.8.4 and would like to
find out why "C++ member function completion" is showing the following
error message, when I try to use that bundle:
Failure running “C++ member function completion”.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- treetop (LoadError)
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /Users/chris/Library/Application Support/TextMate/Managed/Bundles/C++
completion.tmbundle/Support/cpp_completion.rb:5
from C++ member function completion:6:in `require'
from C++ member function completion:6
It is entirely possible that my Ruby setup is incorrect as I have not used
it before. What I would like to know is, if this bundle (C++ code
completion) should generally work or if it will only work in a previous
TextMate version.
Thanks and best regards, Chris
Has anyone had any experience with the asciidoc bundle https://github.com/zuckschwerdt/asciidoc.tmbundle with Textmate 2 or has a better one they are prepared to share?
This bundle has had little work done on it in the last 3 years so was written with Textmate 1 in mind. Also since then a nicer toolchain for processing asciidoc files called asciidoctor has been written and is being actively developed.
Thanks,
Dave.
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
Hi
Please be aware that it is possible to have a file containing different contents in TextMate and TextEdit.
Example:
- You open <file> and you see a text clipping from Notes.app
- You open the same <file> in TextMate and it is blank.
- You then try and Save the same file in TextMate and it does not register the change in TextEdit
- You reopen the file in both applications and the differences remain.
Kind regards
Craig Fairhurst
craigfairhurst(a)me.com
Trying to run (compile) C from latest build of textmate 2.
Xcode command line tools are installed.
Yet I get this error:
The best i can find is "xrcund.1" which in the second to last path variable.
Yet running xcrun from the CLI works.
Allan,
> Can you try, on your Mac, to run:
>
> telnet localhost 52698
>
> That should indicate if TextMate is listening. If this works, then try
> the same on your server to check the tunnel is working.
Thank you for the message. I did the above:
1) On the Mac:
telnet localhost 52698
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 blinky.local RMATE TextMate (Darwin 12.4.0)
So, it seems to work fine.
2) Next from the remote server. First, I ssh with verbosity on:
[snip]
debug1: Remote connections from LOCALHOST:52698 forwarded to local address localhost:52698
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions(a)openssh.com
debug1: Entering interactive session.
debug1: remote forward success for: listen 52698, connect localhost:52698
debug1: All remote forwarding requests processed
debug1: Sending environment.
debug1: Sending env RMATE_PORT = 52698
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending env LC_CTYPE = en_US.UTF-8
So, the forwarding seems to be enabled. Recall that my ssh configuration is:
Host REDACTED.HOST1
RemoteForward 52698 localhost:52698
SendEnv RMATE_*
I then try the telnet on the remote system:
telnet localhost 52698
debug1: client_input_channel_open: ctype forwarded-tcpip rchan 3 win 2097152 max 32768
debug1: client_request_forwarded_tcpip: listen localhost port 52698, originator 127.0.0.1 port 47996
debug1: connect_next: host localhost ([127.0.0.1]:52698) in progress, fd=8
debug1: channel 1: new [127.0.0.1]
debug1: confirm forwarded-tcpip
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
debug1: channel 1: connection failed: Connection refused
connect_to localhost port 52698: failed.
debug1: channel 1: free: 127.0.0.1, nchannels 2
Connection closed by foreign host.
So, it fails the connection...
Any idea why that would be the case all of a sudden (on multiple servers)? Particularly if it is responsive on the Mac.
Thanks,
Brian
I have been using rmate via an ssh tunnel with a several of my clusters since the 2.0 alpha first appeared; however, since updating to alpha.9459, rmate reports:
connect_to localhost port 52698: failed.
/share/frinkraid/powellb/bin/rmate:153:in `readline': end of file reached (EOFError)
from /share/frinkraid/powellb/bin/rmate:153:in `connect_and_handle_cmds'
from /share/frinkraid/powellb/bin/rmate:192
from /share/frinkraid/powellb/bin/rmate:191:in `fork'
from /share/frinkraid/powellb/bin/rmate:191
I updated the rmate to the latest standalone from https://github.com/textmate/rmate#standalone and the exact same error is reported. My .ssh/config has always been configured as:
Host REDACTED.HOST1
RemoteForward 52698 localhost:52698
SendEnv RMATE_*
Anyone else having trouble or suggestions? I have never had an issue with it before. The only change was updated texmate to 9459, then updating to the latest rmate hoping it would clear the problem.
Thanks,
Brian
I think that the Latex Watch is experimenting problems after the upgrades in
TM 2. To be sure, I need to know how do I correctly set the TM_LATEX_MASTER
in the .tm_properties file.
I was using TM_LATEX_MASTER = foo.tex
It is not working anymore. I tried:
TM_LATEX_MASTER = 'foo.tex'
TM_LATEX_MASTER = "foo.tex"
TM_LATEX_MASTER = /foo.tex
TM_LATEX_MASTER = '/foo.tex'
TM_LATEX_MASTER = "/foo.tex"
TM_LATEX_MASTER = ./foo.tex
and etc
What should I do?
--
View this message in context: http://textmate.1073791.n5.nabble.com/TM-LATEX-MASTER-and-Latex-Watch-tp267…
Sent from the textmate users mailing list archive at Nabble.com.
While I appreciate the desire to bring rmate into the rubygem fold, it
presents some difficulties.
Prior, I could install rmate into ~/bin on any machine I had ssh access to,
quickly and easily by copying the guts of the script. This let me minimize
my impact on remote machines that I needed to work on. (FWIW, I do most of
my work on client machines of, let's say, older vintage, with extremely
locked down environments. rmate is my secret sauce.)
Now, I find myself needing to install rubygems on the remote machine, just
to keep working, and without admin access.
In the interest of retaining my remaining hair, what's the quick and dirty
way of installing rmate on remote machines now, when one does not have
admin rights to do a simple install of rubygems?
Failures:
% rmate mpp
/work/users/jsmith/bin/rmate:12:in `require': no such file to load -- rmate
(LoadError)
from /work/users/jsmith/bin/rmate:12
[ install rubygems in ~/bin ]
% gem install rmate
/work/users/jsmith/bin/gem:8:in `require': no such file to load -- rubygems
(LoadError)
from /work/users/jsmith/bin/gem:8
% printenv GEM_HOME
~/bin/gems/
Comment Line / Selection:16:in `require': no such file to load -- /lib/escape (LoadError)
from Comment Line / Selection:16
This is on a pretty vanilla install of TextMate version 2.0-alpha.9449
It was working fine last week. Also saw another error earlier but got distracted and forgot to make a note of it. If I see it again I’ll report it.
Let me know if you need further details.
Best, Darren