Commits
- Commit:
42215f91fcd402df2a67c3b5601c50f622cc0b47
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't decode the whole ARGV, just the pattern for cmd_find
UNICODE is subtle, better not slightly tweaks the argument unless
we really need them.
- Commit:
cb8467de96056c2bef1d9ff538e01ad72bc0506c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
decode file names in the current locale
Otherwise we output gibberish and the pattern argument to `plass
find' may not even match the entries.
Issue reported by Anton Kasimov, thank you!
- Commit:
6fd928d3ad33d035b79e6b65bf4f9f97accde929
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use File::Path' make_path instead of rolling my own
again from volker' plage.pl, thanks!
- Commit:
84eda8d652f10bd982e914388554b853a7ac299b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use extended regular expressions in `plass find'
from volker' plage.pl, thanks!
- Commit:
b458d1aa4a5cb916e7d8ce222c15f6bafd19b5f2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use foreach instead of map to print the matching entries
from volker' plage.pl
- Commit:
6b4b0a36a5899117de558c34f68cf2ab456d6db2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
missing semicolon; from volker' plage.pl
- Commit:
a0e32af22b75afa11c6fc5676a20513a16b2036a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix undefined behaviour reported by perlcritic
"return" statement followed by "sort" at line 140, column 2. Behavior
is undefined if called in scalar context. (Severity: 5)
the fix is the same as in volker' plage(1).
- Commit:
3cf28f46d454a6b95131133179393b3ae6ac7ec4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
avoid issuing unnecessary `got add'
plass always did a `got add $file' before committing changes. However,
this leads to a possibly misleading "file has unexpected status" error
being printed to stderr.
Instead, `got add $file' only when the file is new.
- Commit:
8c4930cfcef7c2310f05b7007f95750513e1fd79
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor cmd_edit
Now it always deletes the temporary file.
- Commit:
fc9fec0528e6bbd15f3b6ebbc175b3b907b52a94
- From:
- Omar Polo <op@omarpolo.com>
- Date:
plass tee: set binmode to avoid mangling binary data
- Commit:
1169deba9daca5ae8f560bf4cc3e405435a5e1e0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor cmd_tee: simplify the code
inline (with tweaks) writepass, it's redundant to have. While here also
read/write blockwise instead that of linewise.
- Commit:
77ea6ba189318aa615484e5dbcb7271af75eb89f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove handling of PLASS_GOT environment variable
There's no real reason to have this variable, there's only one `got'
usually and people are better off putting it somewhere in $PATH.
Retain PLASS_GPG as there seem to be a little issue with gpg vs gpg2 so
the knob may be useful in practice.
- Commit:
71c704e31adc9f16efb0cd55ac5abb17249bd867
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bump copyright
- Commit:
87986040c34281a3660bec9a65057f5a6aabfd1d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
plass edit: delete the temp file
File::Temp lied. it says UNLINK defaults to true but the files were
still in my /tmp. Quick workaround, needs something better that takes
care also of cleaning up on die().
- Commit:
8ce01796c68dfe0e12b6a1869be69cf3b2cf2584
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add `edit' subcommand to interactively modify an entry
It's more or less equivalent to
$ cd /tmp
$ umask 077
$ plass cat entry > tempfile
$ $EDITOR tempfile
$ plass tee entry < tempfile
$ rm tempfile
but way easier. It's also safer because it creates an unique randomly
named file set up with correct permissions.
Suggested by heph, thanks!