Skip to content

Commit

Permalink
Fix find by regex (#56)
Browse files Browse the repository at this point in the history
Use regex for selections by default
  • Loading branch information
duydao committed May 21, 2017
1 parent 18f8c7b commit 6fbf32a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Check out the [wiki](https://github.com/duydao/Text-Pastry/wiki/Examples) for ex
- Duplicate values for pasting _(1, 1, 2, 2, 3, 3, 4, 4)_ or _(a, a, a, b, b, b, c, c, c)_

## What's new ##
- 1.5.1: Bugfix release for Find by regex [#56](https://github.com/duydao/Text-Pastry/issues/56) - Thanks [@timLinscott]
- 1.5.0: [New Features!](https://github.com/duydao/Text-Pastry/blob/master/RELEASENOTES.md)
- 1.4.10: Scroll into view on search / after find [#33](https://github.com/duydao/Text-Pastry/issues/33) - Thanks again [@miusuncle](https://github.com/miusuncle)
- 1.4.9: Bugfix release for uuid x10 [#31](https://github.com/duydao/Text-Pastry/issues/31) - Thanks [@miusuncle](https://github.com/miusuncle)
Expand Down
4 changes: 4 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Release Notes 1.5.1

Fixed the ```Find by regex``` command (#56)

# Release Notes 1.5.0

I'm excited to release Text Pastry 1.5.0! We've got some new features in this release:
Expand Down
2 changes: 1 addition & 1 deletion text_pastry_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def run(self, *args, **kwargs):
if not self.window.active_view():
return
self.setup()
self.use_regex = global_settings('selection_use_regex', False)
self.use_regex = global_settings('selection_use_regex', True)
# kwargs takes precedence
self.use_regex = kwargs.get('use_regex', self.use_regex)
self.keep = kwargs.get('keep', self.keep)
Expand Down

0 comments on commit 6fbf32a

Please sign in to comment.