Skip to content

Commit

Permalink
CursorRuler 1.1.1 Release Notes
Browse files Browse the repository at this point in the history
===============================

- General code improvement.
- The CursorRuler settings are now accessible from the "Preferences" -> "Package Settings" menu.
- Fix for #2:  Custom user settings were not being picked up.
- Fix for #3:  Default line wrapping was behaving unexpectedly.  Created a new command called `CursorRuler: Wrap Lines` for doing line wrapping properly.
- Started using Package Control messages.
- Updated readme:  Made more use of GitHub Flavored Markdown.
- Updated readme:  Noted that one of the minor bugs is ST2-only.
  • Loading branch information
icylace committed Oct 12, 2013
1 parent 7422a27 commit 5b0c25d
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 4 deletions.
21 changes: 21 additions & 0 deletions CursorRuler.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,27 @@ def run(self, edit):
# ------------------------------------------------------------------------------


class CursorRulerWrapLinesCommand(sublime_plugin.TextCommand):
def run(self, edit):
if CursorRuler.is_enabled(self.view):
# Temporarily turn off CursorRuler.
CursorRuler.reset(self.view)
CursorRuler.enabled = False

# Do our line wrapping without the unwanted
# influence of the dynamic cursor rulers.
self.view.run_command('wrap_lines')

# Reactivate CursorRuler.
CursorRuler.draw(self.view)
CursorRuler.enabled = True
else:
self.view.run_command('wrap_lines')


# ------------------------------------------------------------------------------


class CursorRulerListener(sublime_plugin.EventListener):
def on_activated(self, view):
if not view.is_loading() and CursorRuler.is_enabled(view):
Expand Down
5 changes: 4 additions & 1 deletion CursorRuler.sublime-commands
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[
// Toggles activation of CursorRuler.
{
"caption": "CursorRuler: Toggle Enabled/Disabled",
"command": "cursor_ruler_toggle"
},
{
"caption": "CursorRuler: Wrap Lines",
"command": "cursor_ruler_wrap_lines"
}
]
6 changes: 6 additions & 0 deletions Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"keys": ["alt+q"],
"command": "cursor_ruler_wrap_lines"
}
]
6 changes: 6 additions & 0 deletions Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"keys": ["super+alt+q"],
"command": "cursor_ruler_wrap_lines"
}
]
6 changes: 6 additions & 0 deletions Default (Windows).sublime-keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"keys": ["alt+q"],
"command": "cursor_ruler_wrap_lines"
}
]
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ Having the plugin enabled is all that's required to start seeing your cursors ha

### Available Commands

`CursorRuler: Toggle Enabled/Disabled` - Turns the plugin off if it's on and vice versa.
`CursorRuler: Toggle Enabled/Disabled` - Turns CursorRuler off if it's on and vice versa.

`CursorRuler: Wrap Lines` - Does proper line wrapping. For details look [here][issue 3].



Expand Down Expand Up @@ -251,10 +253,13 @@ as well as the gutter text background color:




## Notes

- In ST2 there is a major bug which is described below.

- In ST3 the standard shortcut key for the `Wrap Paragraph at Ruler` command (`⌥⌘Q` on OS X, `Alt+Q` on Linux and Windows) is rebound to the `CursorRuler: Wrap Lines` command for doing proper line wrapping. For details look [here][issue 3].

- While moving a selected group of text with the mouse the insertion-point cursor is not shown with its own dynamic ruler. Though, this is probably preferable since this distinguishes the editing cursors from the insertion-point cursors.

- The positioning of the cursor rulers is scaled according to the font size. The larger the font size the greater the chance that gaps will get introduced into "thick" cursor ruler styles like the column highlighting style. The size of the gaps are also dependent upon the font size.
Expand Down Expand Up @@ -293,8 +298,14 @@ ST3 seems to completely avoid this problematic scenario. I suppose it's due to

## Release Notes

next release
2013-10-12: Version **1.1.1**

- General code improvement.
- The CursorRuler settings are now accessible from the "Preferences" -> "Package Settings" menu.
- Fix for #2: Custom user settings were not being picked up.
- Fix for #3: Default line wrapping was behaving unexpectedly. Created a new command called [CursorRuler: Wrap Lines][wrap lines] for doing line wrapping properly.
- Started using Package Control messages.
- Updated readme: Made more use of GitHub Flavored Markdown.
- Updated readme: Noted that one of the minor bugs is ST2-only.


Expand Down Expand Up @@ -334,7 +345,7 @@ next release
2013-02-10: Version **1.0.1**

- Fixed a missing attribute error at startup. Thanks for catching it, [adzenith][]!
- Included settings file improvements by [adzenith][].
- Included settings file improvements by [adzenith][]. Closes #1.
- Updated readme: Made a note about the slightly quirky behavior after settings get updated.


Expand All @@ -357,9 +368,12 @@ Have fun !



[issue 3]: https://github.com/icylace/CursorRuler/issues/3
[CursorRuler repo]: https://github.com/icylace/CursorRuler
[ruler coloring]: http://sublimetext.userecho.com/topic/93504-use-separate-colors-for-the-background-gutter-and-folder-tree/#comment_164903
[wrapLines]: http://www.sublimetext.com/docs/commands
[Cross]: https://github.com/chancedai/sublime-cross
[wrap lines]: https://github.com/icylace/CursorRuler#available-commands
[gutter coloring]: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=6161#p26904
[Semantic Versioning]: http://semver.org/
[adzenith]: https://github.com/adzenith
Expand Down
10 changes: 10 additions & 0 deletions messages/1.1.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CursorRuler 1.1.1 Release Notes
===============================

- General code improvement.
- The CursorRuler settings are now accessible from the "Preferences" -> "Package Settings" menu.
- Fix for #2: Custom user settings were not being picked up.
- Fix for #3: Default line wrapping was behaving unexpectedly. Created a new command called `CursorRuler: Wrap Lines` for doing line wrapping properly.
- Started using Package Control messages.
- Updated readme: Made more use of GitHub Flavored Markdown.
- Updated readme: Noted that one of the minor bugs is ST2-only.
4 changes: 4 additions & 0 deletions messages/install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Thank you for installing CursorRuler !

For details, please visit:
https://github.com/icylace/CursorRuler

0 comments on commit 5b0c25d

Please sign in to comment.