Commit graph

313 commits

Author SHA1 Message Date
Gregory
678367c495
Merge pull request #40 from eclipseo/convert_str_as_bytes
Convert str to bytes to call replacer.replace
2019-06-16 15:21:41 -04:00
Robert-André Mauchin
4e9aa7ddf2 Convert str to bytes to call replacer.replace
Fix #39

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
2019-06-16 20:55:24 +02:00
Greg
e98039ef06
(cargo-release) version 0.6.1 2019-06-16 12:34:42 -04:00
Greg
ab457f7c70
Pre-allocate proper buffer size for memmap.
Additionally:
- switch over to `std::borrow::Cow` in `replace` to avoid unnecessary allocations.
- handle all errors

Resolves #38
2019-06-16 12:31:19 -04:00
Greg
f0ae7db429
(cargo-release) version 0.6.0 2019-06-16 02:51:35 -04:00
Greg
80d92bd237
Remove smart-casing, implement full-word replace 2019-06-16 02:49:10 -04:00
Greg
7160053060
Remove smart-case util check 2019-06-16 02:48:42 -04:00
Greg
5a2094f733
Deprecate --in-place, add --preview 2019-06-16 02:48:29 -04:00
Greg
c22ce5ed58
Cleanup & upgrade dependencies 2019-06-16 02:48:18 -04:00
Greg
bbd995f022
Merge branch 'master' of github.com:chmln/sd 2019-05-26 23:29:03 -04:00
Greg
dd3fe50bdb
Upgrade dependencies 2019-05-26 23:28:57 -04:00
Gregory
c4f05d5afe
Merge pull request #32 from svenstaro/patch-1
Update Arch Linux installation instructions
2019-05-13 18:36:07 -04:00
Sven-Hendrik Haase
123423a951
Update Arch Linux installation instructions
I added `sd` to the official repos.
2019-05-13 20:05:24 +02:00
Greg
bc79c9b5ed
update patch url 2019-04-14 23:18:26 -04:00
Greg
ae77cce863
test new template 2019-04-14 23:11:07 -04:00
Greg
abe7cbcfbd
has_matches() - use quicker method 2019-04-08 23:35:25 -04:00
Greg
a8f87ccc07
Merge branch 'mmap' of github.com:chmln/sd 2019-04-07 11:34:27 -04:00
Greg
c197fc231e
input.rs - cleanup 2019-04-07 11:32:16 -04:00
Greg
a83b321960
Implement Error::log 2019-04-07 11:31:16 -04:00
Greg
c05140b3c2
rustfmt - tweak brace style 2019-04-07 11:31:02 -04:00
Greg
060b7bb8a4
mmap - rough version 2019-04-07 01:40:59 -04:00
Gregory
e788f677cf
Merge pull request #29 from vthriller/master
Briefly describe fd in the readme.
2019-04-01 09:11:09 -04:00
vthriller
a4cfa4997f Briefly describe fd in the readme.
Not everyone is familiar with modern rewrites of standard utils.
2019-04-01 15:29:22 +03:00
Greg
1fe168ee43
Add condition for tagged commits 2019-03-02 22:53:22 -05:00
Greg
f78514a029
remove redundant condition 2019-03-02 22:45:40 -05:00
Greg
10512ed3cd
Remove redundant cargo check 2019-03-02 22:35:28 -05:00
Greg
c7cb1812bf
remove circleci builds 2019-03-02 22:31:51 -05:00
Greg
aee2b5209c
Remove duplicate condition 2019-03-02 22:23:39 -05:00
Greg
36008c0434
fix template path 2019-03-02 22:19:46 -05:00
Greg
0fd9fc477e
azure pipelines - take 1 2019-03-02 22:17:44 -05:00
Greg
193e5ed158
Upgrade regex 2019-03-01 16:44:06 -05:00
Greg
3609d743c3
Preserve permissions; minor refactor
resolves #14
2019-03-01 16:43:42 -05:00
Gregory
4846439875
v0.5.0 2019-03-01 01:33:31 -05:00
Gregory
7c64a60f82
Merge pull request #19 from t6/patch-1
Add FreeBSD install instructions
2019-02-26 21:54:31 -05:00
Tobias Kortkamp
7468cae378
Add FreeBSD install instructions 2019-02-27 03:45:10 +01:00
Greg
d4f90cc500 (cargo-release) version 0.5.0 2019-02-22 17:48:44 -05:00
Greg
e7188f8be2 Upgrade regex-syntax 2019-02-22 17:47:35 -05:00
Greg
a2d8b7a9e1 Cleanup error handling 2019-02-22 17:47:06 -05:00
Gregory
6b3c95cba3
Merge pull request #17 from ErichDonGubler/windows
Add Windows support by swapping out the `atomic_write` crate with the `atomicwrites` crate
2019-02-19 22:14:40 -05:00
Erich Gubler
77a1415593 Add Windows support by swapping out the atomic_write crate with the atomicwrites crate 2019-01-23 12:53:49 -07:00
Greg
5d54793488 (cargo-release) version 0.4.3 2019-01-17 15:27:45 -05:00
Greg
c4e5871668 In-place replacement - dont halt on invalid input 2019-01-13 00:35:04 -05:00
Greg
b34c389712 Update changelog 2019-01-02 23:34:22 -05:00
Greg
5ef0af0fec (cargo-release) version 0.4.2 2019-01-02 23:24:56 -05:00
Greg
fb31a1b31b Add unescape tests + tweak literal mode behavior 2019-01-02 23:22:25 -05:00
Greg
20228b6fe3 Unescape replacement expression 2019-01-02 22:52:09 -05:00
Greg
9a8e8a5c2f Add some unit tests + tweak smart-case logic 2019-01-02 22:17:05 -05:00
Greg
e5f0cd4f7b Use regex to replace literals 2019-01-02 21:54:45 -05:00
Greg
effa0fce14 Disable unescaping 2019-01-02 20:54:54 -05:00
Greg
cddff2a977 disable unescaping + upgrade atomic-write 2019-01-02 20:54:39 -05:00