Code Monkey home page Code Monkey logo

sublimeblockcursor's Introduction

SublimeBlockCursor

Screenshot

When using "Vintage Mode" in Sublime Text 2, it can become very difficult to keep track of your cursor location. In vim this is solved by having a "block" cursor, which is very easy to spot no matter where it is on screen. Unfortunately, Sublime Text 2 does not (yet) support this feature natively. This Plugin mimics this functionality by highlighting the area behind the cursor whenever it moves (similar to how you might highlight syntax errors, or color a comment).

Installation

With Package Control

If you have the Package Control installed, you can install SublimeBlockCursor from inside Sublime Text itself. Open the Command Palette and select "Package Control: Install Package", then search for SublimeBlockCursor and you’re done!

Without Package Control

Go to your Sublime Text 2 Packages directory:

Windows: %USERPROFILE%\AppData\Roaming\Sublime Text 2\Packages\
Mac: ~/Library/Application Support/Sublime Text 2/Packages/	

and clone the repository there

git clone git://github.com/netpro2k/SublimeBlockCursor

Configuration

You can change the style of the block cursor by adding a section to your theme file like so:

<dict>
	<key>name</key>
	<string>Block Cursor</string>
	<key>scope</key>
	<string>block_cursor</string>
	<key>settings</key>
	<dict>
		<key>foreground</key>
		<string>#212121</string>
		<key>background</key>
		<string>#9ca9b7</string>
	</dict>
</dict>

sublimeblockcursor's People

Contributors

deiga avatar misfo avatar msch avatar netpro2k avatar srusskih avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sublimeblockcursor's Issues

ST3 Support

SublimeBlockCursor is good
i wish to use in st3
and i try

SublimeBlockCursor.py

6 def view_is_widget(view):
--> def view_is_widget(self, view):

25 if view_is_widget(view) or (is_vintage_mode and not command_mode):
--> if self.view_is_widget(view) or (is_vintage_mode and not command_mode):

README issue

The readme says that you can install Sublime Tweet through Package Control. That may be true, but doesn't involve SublimeBlockCursor. Probably just a copy-n-paste faux pas.

can't get it installed in theme

i tried adding the dict in various positions but i can't get it working - is there a specific place in the xml it has to be put? right now it either throws an error that there is something wrong with the xml or the block cursor does not shot up.

Block Cursor Border

Is there a way to change the border of the block? It is an annoying bright green/teal color. Changing the foreground/background colors do not affect it. I am using the Dev Build on Linux.

SublimeBlockCursor does not exist in Package Control

Reading the following:

"If you have the Package Control installed, you can install Sublime Tweet from inside Sublime Text itself. Open the Command Palette and select "Package Control: Install Package", then search for SublimeBlockCursor and you’re done!"

SublimeBlockCursor doesn't exist in Package Controler: Install Package. I see other packages, but not SublimeBlockCursor.

Anyone know why?

ST3 Support

SublimeBlockCursor is good
i wish to use in st3
and i try

SublimeBlockCursor.py

6c6

< def view_is_widget(view):

def view_is_widget(self, view):

25c25

< if view_is_widget(view) or (is_vintage_mode and not command_mode):

    if self.view_is_widget(view) or (is_vintage_mode and not command_mode):

ST3 Support

SublimeBlockCursor is good
i wish to use in st3
and i try

SublimeBlockCursor.py

6c6

< def view_is_widget(view):

def view_is_widget(self, view):

25c25

< if view_is_widget(view) or (is_vintage_mode and not command_mode):

    if self.view_is_widget(view) or (is_vintage_mode and not command_mode):

Any way to get rid of the outline?

I'm getting an outline on the block, no matter which color scheme I'm using. Is there a way to get rid of it (by editing the color scheme or something else)?

Screen Shot 2013-03-24 at 2 09 37 PM

Always show block cursor

Hello,

I don't know if this is a bug or this is the way how it suppose to work. But for me cursor become block only if I switch from one tab to another. Is there any way to have my cursor always as a block, even when I'm on the same page

Thanks,

Sublime Package Control installs old version

I just installed this plugin using Sublime Package Control and it doesn't contain the commit from Nov 23 f8a63c5. I'm not sure how quickly changes are supposed to be picked up, but surely it shouldn't take 15 days?

NoneType error when open Ruby on Rails project

Hi,

I found this NoneType error in my log, not sure if there's any impact. Could you take a look?

=> => => Console logging activated (/Users/zhour6/.subl.log). Timestamp: 27 Nov 2013, 11:20:22.
SublimeLinter: ruby enabled (using "ruby" for executable)
SublimeLinter: css enabled (using node.js)
ApplySyntax: Syntax set to Ruby on Rails using Packages/Rails/Ruby on Rails.tmLanguage
Traceback (most recent call last):
  File "./SublimeBlockCursor.py", line 43, in on_command_mode_change
  File "./SublimeBlockCursor.py", line 22, in on_selection_modified
AttributeError: 'NoneType' object has no attribute 'settings'
ex_command(name=':', command='ex_goto', forced=False, args={}, parse_errors=[], line_range={'right_ref': None, 'left_offset': 1704, 'text_range': u'1704', 'right_offset': None, 'left_ref': None, 'left_search_offsets': [], 'separator': None, 'right_search_offsets': []}, can_have_range=True)

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.