Topic: https://brettterpstra.com/2012/06/30/sublime-markdownediting-now-with-100-more-blue-cursor/
hide preview

What's next? verify your email address for reply notifications!

Simon 12y, 239d ago

Hi Brett, thanks again for the work. I can't find the package in Package Control - any ideas?

remark link
hide preview

What's next? verify your email address for reply notifications!

Brett 12y, 239d ago

It hasn't made it in yet, I missed a few requirements during submission. Hopefully soon.

remark link parent
hide preview

What's next? verify your email address for reply notifications!

Simon 12y, 239d ago

That explains it! Thanks for the prompt reply.

hide preview

What's next? verify your email address for reply notifications!

andrewheiss 12y, 253d ago

Any plans to submit this to http://wbond.net/sublime_pa...

remark link
hide preview

What's next? verify your email address for reply notifications!

Brett 12y, 253d ago

Already submitted.

hide preview

What's next? verify your email address for reply notifications!

Gabe 12y, 255d ago

I'm also fiddling with your theme to enable a block blue cursor instead of the thin vertical cursor. No idea what I'm doing.

remark link
hide preview

What's next? verify your email address for reply notifications!

Brett 12y, 255d ago

I didn't because there's a package in Package Control called Block Cursor. It's themed in the package already, you just have the option to install it or not.

remark link parent
hide preview

What's next? verify your email address for reply notifications!

Brett 12y, 255d ago

By "themed in the package" I mean there's an entry for it in MarkdownEditing already, it just won't do anything unless Block Cursor is enabled.

remark link parent
hide preview

What's next? verify your email address for reply notifications!

Gabe 12y, 255d ago

Like this?:
"block_cursor_enabled": true,

Sorry, I don't usually mess with themes, but I enamored with yours.

remark link parent

load more (1 remarks)
hide preview

What's next? verify your email address for reply notifications!

Brett 12y, 255d ago

Oh, I forgot to mention that the block cursor only shows up in normal mode when Vintage is enabled (vim mode). It needs some hacking if you want it to be the standard cursor.

hide preview

What's next? verify your email address for reply notifications!

Gabe 12y, 255d ago

A couple that I added on top of yours for creating H headers the way I like:

// selection pairing with #
{ "keys": ["#"], "command": "insert_snippet", "args": {"contents": "#${0:$SELECTION}#"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true }
]
},
// selection pairing with SPACE
{ "keys": ["super+shift+space"], "command": "insert_snippet", "args": {"contents": " ${0:$SELECTION} "}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true }
]
},
remark link
hide preview

What's next? verify your email address for reply notifications!

Brett 12y, 255d ago

Awesome! Do you mind if I add these to the package with credit? Hope not, I just did.

remark link parent
hide preview

What's next? verify your email address for reply notifications!

Gabe 12y, 255d ago

Oh, and no need for "credit". It's not like I invented anything. I just extended your stuff.

hide preview

What's next? verify your email address for reply notifications!

Gabe 12y, 255d ago

Please do. It will save me from having to re-add them after updates.

hide preview

What's next? verify your email address for reply notifications!

Dave Green 12y, 260d ago

You might want to see if it formats the way you want when line numbers are enabled.

remark link
hide preview

What's next? verify your email address for reply notifications!

Brett 12y, 260d ago

Does it not for you? I developed it with line numbers on…

remark link parent
hide preview

What's next? verify your email address for reply notifications!

David Green 12y, 255d ago

The spacing is such that there is often 2" on screen of space between the line numbers and the text. It appears to be caused by the settings line:

  "draw_centered": true,
remark link parent
hide preview

What's next? verify your email address for reply notifications!

Brett 12y, 255d ago

Intentional. That evens out the margins because its a fixed width for optimum line-lengths when reading. Feel free to adjust.

hide preview

What's next? verify your email address for reply notifications!