Home Download Buy Blog Forum Support

Request: block cursor using UTF block characters

Request: block cursor using UTF block characters

Postby nick. on Fri Dec 21, 2012 7:14 pm

I might play with this on my own, but I had the idea yesterday that it should be possible to recreate a block cursor using unicode block characters.

I think it should be a pretty simple plugin; just save the current character under the cursor then replace it with a box drawing character. Granted, that character is no longer visible...
You'll want to keep a running x-y coordinate of the cursor (I think Sublime just treats this as a one-directional offset from the beginning of the view), since things like CTRL+HOME make restoring the original character a bit trickier. Also, I'm not sure if it's possible to edit a view without adding to the undo/redo stack.

Thoughts?
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: Request: block cursor using UTF block characters

Postby C0D312 on Fri Dec 21, 2012 11:35 pm

The cursor could "blink" by constantly switching the block with the character. Interesting idea. idk if this is any better than just using the highlight region api but it's clever.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 4 guests