Hi,
I'm using TextMate 2.0-beta.8 on OS X 10.11.1 with v3.2.1 of the Go bundle
from:
https://github.com/syscrusher/golang.tmbundle
When I type "fmt." and press Option+Escape for code completion, it
uses TextMate::UI.complete with the :case_insensitive => false option.
That didn't seem ideal to me. All exported identifiers in Go begin with a
capital letter, but in terms of filtering, I would expect lowercase "p" to
filter to Print just as well as an uppercase "P".
So I modified the bundle, and then I saw why it is set the way it is.
In the completeAndInsertSnippet method of TMDIncrementalPopUpMenu.mm there
is a line that inserts the text being used for filtering rather than the
text from the choices.
insert_text([candidateMatch substringFromIndex:[[self filterString] length
]]);
The result is that fmt. [option+esc] [p] and pressing [Enter] gives me:
fmt.print
rather than the desired:
fmt.Print
I'm not really sure why it's done this way? Are there situations where
people want their filtering keys over the text present in the menu?
While I'm talking about code completion, and to drive the point home, I
noticed that TMDIncrementalPopUpMenu uses a BEGINSWITH predicate. Ideally
it would use a fuzzy match with similar logic to Go To File... That would
allow typing something like:
fmt. [option+esc] [p] [l]
to get Println from the list of candidates. In this case it becomes obvious
that "pl" is only for filtering and should not be inserted.
Finally, it would be great if it was possible to set an (additional) Key
Equivalent with a delay so that the popup menu came up when pressing ".",
or perhaps something more sophisticated based on the language grammar. I
realize that not everyone likes code completion popups automatically
appearing, but it would be nice to at least have the option.
Thanks,
Nathan.
--
Nathan Youngman
https://www.nathany.com
Hi folks,
I have a bundle command that generates some text and sends it to the 'HTML
output' panel.
That works wonderfully, however each time I do that the focus (cursor)
switches to the 'HTML output' panel too.
So I was wondering if there's a way to keep the focus on the main editor
window (so to use the panel just as a nice 'feedback' window) and keep
coding without interruptions.
Any ideas?
cheers
Michele
[image: Inline images 1]
Can see no templates in Textmate 2. Am I missing something?
How can I convert some Textmate 1 bundle templates (AS3) to work in TextMate 2?
Thank-you. Simon Lucas
My 2 cents. I’m not taking sides because I don’t use MD that much, but I noticed that the Michael Sheets version has more options, so we would need to have both of them installed which isn’t a big deal, but still. What are the differences between your version and his?
Greg
> On Jan 31, 2016, at 6:08 PM, textmate-request(a)lists.macromates.com wrote:
>
> GitHub Markdown Bundle (and making it official) (Mike McQuaid)
how to convert multiple lines into ordered or un-ordered list in TextMate2.
I have tried the funcitons under "Lists" submenu, but didn't work.
Any suggestion about the MarkDown bundle, or any other alternatives?
[image: 内嵌图片 1]
====================
*with best regards,*
Jacky Wu
*jacky.wucheng(a)gmail.com <jacky.wucheng(a)gmail.com>*
weibo: @object
====================
Hi,
Sometimes the scroll bar at the bottom of the window indicates that there is a very long line somewhere, but a visual scan scrolling from top to bottom of the file doesn't show any line going beyond (or even near) the right edge of the window. This isn't a show stopper of course, but it would be nice to have a command of the form "select the longest line in the file and scroll to show it". Is there such a thing? If not, is there an easy way to add on a user tool to do the trick?
Thanks,
Bill
Hello!
I notice that if I hit Cmd-S TextMate is smart about not saving files when that’s not necessary. There are some situations where this behaviour is not desired e.g. triggering a filesystem event for `guard`. Is it configurable at all or either a project or global level?
Thanks!
Mike McQuaid
http://mikemcquaid.com
Hi!
I’m trying to match the triple-backticks raw block Markdown extension e.g.:
```
this is a raw block
```
I’m using the following pattern:
{ name = 'markup.raw.block.markdown';
begin = '(^|\G)([`~]{3,})';
end = '(^|\G)([`~]{3,})';
beginCaptures = { 2 = { name = 'punctuation.definition.raw.markdown'; }; };
},
Unfortunately this just seems to never “end” and just matches the “begin” repeatedly.
Does anyone have any suggestions here?
Thanks!
Mike McQuaid
http://mikemcquaid.com