I’ve been working with some old html that is moving to a markdown-based site.
Textmate has a neat feature where if you drop an html file onto your markdown window, its contents are pasted… as markdown! (neat!).
Question/feature request:
1. Can we have a “convert from html" command in markdown?
2. Is there an option on the html processor to [give](normal) links instead of [bibliography][1]
[1] Style links?
Currently in TextMate, it’s possible to implement completion using a bundle command. This can be invoked using a keyboard shortcut. Some IDE’s have implemented something like dot completion, that is, when a dot is typed the dot will be inserted in the text and a completion list will be shown. Some editors will even show this completion list for most characters that are typed.
In TextMate it’s possible to set the key equivalent of a bundle command to a dot, the problem is that the dot will then not be inserted in the text. It’s also possible to manually write out a dot in the bundle command. The problem with that is that the dot is not actually in the text buffer when accessing it in the bundle command. This will most likely not work because whatever is parsing the source code to generate the completion expects the dot to actually be there.
Is this something that can be implemented in TextMate, perhaps as a semantic class? Ideally it should be configurable to support any character, ideally more than one. Example, for many languages a dot is what’s needed, but for the C, C++ and Objective-C an arrow (->) would be necessary as well. Just to be clear, I’m only talking about a new way to trigger a bundle command, not implementing the actually completion.
--
/Jacob Carlborg
Hi,
The Hyperlink helper: "Lookup Word / Selection on Wikipedia and link" appears to be broken?
/Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:174:in `open_loop': redirection forbidden: http://en.wikipedia.org/w/api.php?format=xml&action=opensearch&search=Consc… -> https://en.wikipedia.org/w/api.php?format=xml&action=opensearch&search=Cons… (RuntimeError)
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:518:in `open'
from /Users/tim/Library/Application Support/TextMate/Ruby/1.8.7/lib/ruby/1.8/open-uri.rb:30:in `open'
from Lookup Selection on Wikipedia and link:19:in `getWikiEntries'
from Lookup Selection on Wikipedia and link:31:in `getWikiDef'
from Lookup Selection on Wikipedia and link:37
I'm not sure if this is a known issue, or if it is only Python, but the Jump to Symbol window has trouble properly displaying Python functions & methods that have multi-line parameter lists.
A function heading like this
def makeWeek(geo=AMERICAS,
post_by=STAFF_TYPE,
staff_types=[],
start=S_0630_AM,
end=E_0730_PM
):
Shows up in the Jump to Symbol window's table as
def makeWeek(geo=AMERICAS, post_by=STAFF_TYPE...)
Aligning the parameter names' leading edges with the opening parenthesis tends to work better with Python linters in this situation, but kind poorly for the Jump to Symbol window.
My way to quickly ge to the bottom of a document is to select it all and then right-arrow to place the cursor at the last character in the document.
For some time now, this doesn’t always work: Often one ends up some-way down, but not at the bottom. Repeating 2-4 times needed to get to the bottom.
It seems to occur when line wrap is on, and the document contains long lines (i.e., text paragraphs)
Perhaps something is a bit off in the algorithm for scrolling the page when lines are wrapping?
Best, tim
Hi all -
I keep a lot of functions folded in my normal workflow. This usually works fine, but when a non-TM program changes a file, (usually switching branches in Git from a client or command line) the folding settings aren't updated and I end up with strange folding in the middle of a line that may throw off everything in the file.
This isn't a huge problem (and I bet if I always used TM's source control plugin, this would be handled automatically, right?) but I wonder if there's any way to just tell TM "hey, forget all the folding in this file". One might think that cmd-opt-0 (Un/fold All Levels) would do this, but it seems to toggle all the folds without scanning the syntax to see if the fold locations are valid. Anybody know how to just delete all folding for a given file? As it is, I have to scan through big files, looking for hidden '...' glyphs.
I see this most often in Python, which has weird folding behavior, but I've also seen it in Objective C & Javascript, which should have much simpler folding grammars since they're {}-delimited.
Cheers,
Evan
Hi,
For creating web templates I use Xdebug. In Xdebug you can set
`txmt://open/?` in order to open the file with the error in TM. On previous
versions of Safari (< 10.0.2) TM opens without any problems. But now (>
10.0.2) Safari every time ask if it may open TM: see screenshot:
http://feek.d.pr/V1pH
Is there a way to disable this pop-up? I cannot find any settings in Safari.
Or is it maybe related to a "unsigned developer"?
how to reproduce: just paste `txmt://open/` into Safari.
I use TM 2.0-rc.4 on OSX 10.11.6
Regards,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/Safari-10-popup-when-opening-a-txmt-o…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all,
I have found that I had to finally learn to create Commands in a TM Bundle to move beyond what snippets alone can do (even though they have such a brilliantly simple syntax...)
Is there any canonical listing of values to use Semantic Class hooks?
Also I couldn't find it in the docs, but realized by reading other examples, the way to get the whole document text reliably is to read stdin in a script, then write to stdout.
It might be really great stuff to get documented for everyone.
Finally, what is the recommended flow for managing & sharing bundles?
Certainly, putting changes into Github would be ideal where possible.
But here are two use cases I have.
In my workplace we have stuff we cannot share outside, but we would like to share and maintain a group repo internally to grow up some TM Bundles.
I also sometimes need to work on multiple systems.
I'd like to understand the best way to sync or centralize and update bundles.
What are the best practices with this?
Hi there, I’m currently working on updating an old plugin (EditorConfig — https://github.com/mr0grog/editorconfig-textmate) and it needs to be able to trim the trailing whitespace from lines. I’m currently doing this by getting the OakDocument’s `content` property, editing it, and setting it back, but that can cause selections to move around (not really surprising).
To address selections, the most straightforward method I could find was to use `OakTextView accessibilityAttributeValue:
NSAccessibilitySelectedTextRangesAttribute` (and the associated setter), like so:
NSString *content = [document performSelector:@selector(content)];
NSMutableArray<NSValue *> *selections =
[textView accessibilityAttributeValue:NSAccessibilitySelectedTextRangesAttribute];
//
// do some stuff to manipulate `content` and `selections` here...
//
[document performSelector:@selector(setContent:) withObject:content];
[textView accessibilitySetValue:selections forAttribute:NSAccessibilitySelectedTextRangesAttribute];
This works great with normal selections, but I had expected column selections to show up as multiple selections here. However, they show up as a single contiguous selection from the starting column on the first row of the selection to the ending column on the last row of the selection. That means that, by the end of this operation, any column selections become normal contiguous text selections.
Is there any straightforward way to get and set column selections from a plugin, where I can’t easily mess with the C++ objects? Is there a better way I should be approaching this whole operation in the first place? (I recognize that my approach above might not be great, but couldn’t find anything else workable; I tried poking at OakTextView’s `filterDocumentThroughCommand` method, but had trouble with it since it requires arguments that are C++ types).
Thanks for any advice,
-Rob