Skip to content

Commit 1912515

Browse files
committed
Multiple issues addressed
- Issue #66: Add backreferences in regex for quoting uppercase and lowercase. - Issue #65: Use mmap files to keep from reading entire large files into memory at once. - Issue #64: Use chardet for encoding detection. - Issue #61: Move user files in OSX to new location. - Issue #57: Improve performance by moving to a single thread, changing update routine in GUI, adjusting char detection, and various other improvments - Issue #20: Add replace feature. - Check for python file encoding strings in header - Create new force encoding feature and retire all utf8 feature. - Remove debug console from non-debug mode. - Update unittests - Remove irrelevant ‘extras’ - Fix windows status bar icon panel growing to large - Update gitattributes - Fix super tooltip monkey patch
1 parent f6e0b75 commit 1912515

28 files changed

+4089
-1705
lines changed

.gitattributes

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain

.travis.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
language: python
22
env:
3+
- TOXENV=py27-unittests
4+
- TOXENV=py34-unittests
35
- TOXENV=lint
46
install:
57
- pip install tox
6-
# - pip install codecov
8+
- pip install codecov
79
# - pip install coveralls
810
script:
911
- tox
10-
# after_success:
12+
after_success:
13+
- codecov
1114
# - coveralls
12-
# - codecov

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ Please see the [Wiki](https://github.com/facelessuser/Rummage/wiki/Rummage-Docum
1111

1212
For help and support, or to see what is planned next, see the the [Issues](https://github.com/facelessuser/Rummage/issues?state=open) page.
1313

14-
Screenshots
15-
=======
14+
## Note on Replacing
15+
Rummage will back up a file when replacing in `<your file name>.rum-bak`. If the copy fails, it shouldn't replace. You can disable backups if you like, but know there are greater risks associated with this. Replace should work without issues, but remember, this is free software, and things can go wrong. If you disable backups, there is a greater risk if something goes wrong. Even with backups, something *could* go wrong. I am not responsible for files corrupted or lost. You have been warned.
16+
17+
Large files, really large files, can possibly cause an issue and may error out as, currently, the entire file will be read into memory for a replace. Depending on your pattern on just searches, a lot can also be read into memory. If you are doing really large files, know that it may error out or get really slow. Remember this is done in Python, if you are doing massive GB files, maybe you are using the wrong tool for the job.
18+
19+
## Screenshots
1620

1721
<img src="http://dl.dropboxusercontent.com/u/342698/Rummage/rummage_osx.png" border="0">
1822

extra/Sublime/Context.sublime-menu

-4
This file was deleted.

extra/Sublime/Default.sublime-commands

-6
This file was deleted.

extra/Sublime/Side Bar.sublime-menu

-3
This file was deleted.

extra/Sublime/rummage.py

-102
This file was deleted.

extra/Sublime/rummage.sublime-settings

-6
This file was deleted.

requirements/project.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
gntp>=1.0.2
2+
chardet>=2.3.0

rummage/__main__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def parse_arguments():
3232
parser = argparse.ArgumentParser(prog=version.__app__, description='A python grep like tool.')
3333
# Flag arguments
3434
parser.add_argument('--version', action='version', version=('%(prog)s ' + version.__version__))
35-
parser.add_argument('--show_log', '-l', action='store_true', default=False, help="Open log on startup")
35+
parser.add_argument('--debug', '-d', action='store_true', default=False, help=argparse.SUPPRESS)
3636
parser.add_argument('--searchpath', '-s', nargs=1, default=None, help="Path to search.")
3737
parser.add_argument('--regextool', '-r', action='store_true', default=False, help="Open just the regex tester.")
3838
return parser.parse_args()
@@ -44,7 +44,7 @@ def run():
4444
Settings.load_settings()
4545

4646
args = parse_arguments()
47-
if args.show_log:
47+
if args.debug:
4848
set_debug_mode(True)
4949

5050
if Settings.get_single_instance():
@@ -59,7 +59,7 @@ def run():
5959
RummageFrame(
6060
None,
6161
args.searchpath[0] if args.searchpath is not None else None,
62-
open_debug=args.show_log
62+
debug_mode=args.debug
6363
).Show()
6464
app.MainLoop()
6565

0 commit comments

Comments
 (0)