Mitchell Ludwig
481e5f37bb
Added decaying with time, fixed powershell, fixed windows git bash, fixed jc and child directory descent
2019-09-15 00:31:32 -06:00
William Ting
bc4ea61546
Create temporary file on the same device as data.
...
One idea for why the database is occasionally purged is due to the
temporary file being on a separate device than the database. This
patch implements @lilydjwg's suggestion here:
https://github.com/wting/autojump/issues/391#issuecomment-419349650
2018-09-07 14:31:22 -07:00
William Ting
a0719f488e
(Running pre-commit) Use Yelp-style indentation.
2017-07-19 23:18:29 -07:00
William Ting
d529790278
Run pre-commit on repo.
2016-04-28 23:33:04 -07:00
William Ting
23be6ab233
Tweak Windows temp.close() comment line.
2014-08-17 16:00:08 -07:00
timotei
c889aa013e
Close the temporary file before re-opening it.
...
On Windows, we cannot reuse the temp.name to
reopen the file *unless* it has been closed
before [0].
This problem in turn made the `move_file`
request to fail, since the file was still
open at the time.
[0] https://docs.python.org/2/library/tempfile.html#tempfile.NamedTemporaryFile
2014-08-17 15:44:21 -07:00
William Ting
581b8d9617
autopep8'ed
2014-08-09 19:59:41 -07:00
William Ting
2100f993b3
formatting cleanup
2014-06-28 12:38:31 -07:00
William Ting
4826a0ef6b
Use temporary files to prevent IO race conditions.
...
Refer to #260 .
2014-03-09 19:56:13 -07:00
William Ting
4bd62e2293
minor refactor
2014-03-09 19:41:44 -07:00
William Ting
d0578b2c10
Remove accidentally creating tuples.
...
Fixes #244 .
2014-03-09 19:04:29 -07:00
William Ting
35bc63c66e
Fix encoding issues.
...
The original implementation used str.encode() on input and str.decode() on
output. However this would cause UnicodeDecodeError since certain characters
can't be encoded / decoded in ASCII.
The new solution is to use unicode() on all input strings and output UTF-8
encoded strings. This makes the assumption that the shell can handle UTF-8
strings.
2014-01-08 11:05:25 -06:00
William Ting
e5a97294ac
fix data save
2013-12-30 18:13:52 -06:00
William Ting
a59d671fb0
rename python files to prevent system wide installation collisions
2013-12-30 14:49:34 -06:00