Commit graph

61 commits

Author SHA1 Message Date
Philip Douglass
bcaea03298 Fully strip title and body after SENTENCE_SPLITTER search 2016-01-25 15:31:10 -05:00
Manuel Ebert
06e3f0c101 Byte encoding for getpass
Fixes #392 and #393
2016-01-11 12:08:05 -08:00
Manuel Ebert
7a0e056130 Unicode literals in util 2015-12-28 22:07:26 -08:00
Manuel Ebert
79fa9c5434 Seperation of title and entry is now purely virtual.
Fixes #360
2015-12-28 21:24:39 -08:00
Manuel Ebert
168f63c657 Fix XML export 2015-12-28 13:01:33 -08:00
Manuel Ebert
dc39a25d5c Support for templates 2015-07-01 22:23:13 -07:00
MinchinWeb
549f8501d6 [CLI] display instructions to enter an entry on the command line when no editor is set 2015-05-05 15:30:18 -06:00
MinchinWeb
78bae0476c Colorize error and warning messages 2015-05-05 15:12:02 -06:00
MinchinWeb
281b74da74 Fixes #348
Also fixes #322 on windows.
2015-05-05 11:58:15 -06:00
MinchinWeb
72cbafac55 [Util] delete old, unused code 2015-05-03 22:12:10 -06:00
Manuel Ebert
eb0af8f47c Fix for #322 2015-04-21 15:49:27 +02:00
Josh Davis
61cc792ad7 Allow editor config value to be either list or str 2015-04-20 14:45:15 +02:00
Manuel Ebert
5a3e3320a7 Merge pull request #346 from ametheus/patch-2
Fix improper charset handling in PY2 path of u(x)
2015-04-20 14:42:41 +02:00
Manuel Ebert
e88fa16bbc Remove ; 2015-04-20 14:36:53 +02:00
MinchinWeb
d17558f3c6 Fix weird character at the front of the line... 2015-04-20 14:36:35 +02:00
MinchinWeb
425ecf791d Name file handle if we're going to us it
Conflicts:
	jrnl/util.py
2015-04-20 14:36:12 +02:00
Craig Moyer
ee782cc5c5 Close temp file before deleting it. 2015-04-20 14:35:31 +02:00
MinchinWeb
f1641d8084 Removes leading 'b' on slugs in Python 3 2015-04-14 12:04:36 -06:00
Thijs van Dijk
c68a60f6dc Fix improper charset handling in PY2 path of u(x)
Knowing fully that I may have just added another layer of impropriety, the above line fixed the charset errors I was getting.

I'll illustrate this change with an example string `Charšet`, entered (e.g. through stdin) in UTF-8 encoding.
To the best of my knowledge, the previous version would first have encoded this string to `Char\xc5\xa1et` (i.e., it encoded each byte not in ascii range as a hex escape code), and then have parsed this string to `Charšet` (i.e. after "r" it sees Unicode code point U+00c5 and U+00a1).

My version simply takes this str for what it is: an UTF-8 representation of the unicode string `Charšet`.
2015-04-14 11:52:10 +02:00
Manuel Ebert
8e627b01c0 TXT extension for temp files 2015-04-05 23:55:04 +02:00
Manuel Ebert
109a11d18e Encryption reads and writes in binary mode 2015-04-05 06:14:18 +04:00
Manuel Ebert
94964dc31c Python 3 fixes :) 2015-04-05 06:05:46 +04:00
Manuel Ebert
dd79639095 Hardcoded salt to fix crypto 2015-04-04 17:50:44 +11:00
Manuel Ebert
359eabd56d Work on cryptography 2014-09-27 13:15:46 -07:00
Manuel Ebert
0a28a9807b Doc changes 2014-09-12 14:28:03 -07:00
Matthias Vogelgesang
37d3f93b8a Move and remove imports in utils 2014-09-12 14:26:22 -07:00
Manuel Ebert
9c16ad4577 YAML configs
See #184, #230, #197
2014-09-12 14:22:30 -07:00
Manuel Ebert
76710d06f7 Better unicode mock support 2014-09-12 14:21:48 -07:00
Manuel Ebert
49f67df064 Improves dateutil parsing
Closes #133
Fixes #183, #185, #228
2014-07-21 13:30:10 +09:00
Jonathon Scanes
3f4b873ec9 Printed message aborted on ctrl+c. 2014-06-27 14:01:16 +02:00
Jonathon Scanes
948d031777 Prevent printing stack trace in compose mode on ctrl+c. 2014-06-27 14:00:20 +02:00
Chris Sexton
9276a92a0b Allow parallel edits
* Wait to open the journal until after getting text
* Use mktemp so that editors like vim get separate files for editing
2014-06-26 08:29:42 -04:00
Manuel Ebert
16e09a8095 byte2int for PY3 2014-04-16 17:14:57 -04:00
Manuel Ebert
0b678ce69c Use PKCS#7 for encryption
Closes #156
2014-04-16 17:03:24 -04:00
William Minchin
ca7a804b09 Convert from local util.get_local_timezone() to tzlocal.get_localzone()
one side effect is that a `pytz` object is returned rather than a
string, and so conversion to a string must be done explicitly at run
time where needed.
2014-01-29 09:57:15 -07:00
Manuel Ebert
6c51374f08 More unicode support 2014-01-23 15:14:20 +01:00
Manuel Ebert
ab9a3b5192 Cleaned up imports to work with Python2.6 and Python 3.3 2014-01-23 14:33:14 +01:00
Manuel Ebert
6c9687110c Port slugify to Python3 2014-01-19 11:58:13 +01:00
William Minchin
447fb4d59f colorama fixes 2014-01-03 10:42:32 -07:00
Manuel Ebert
26878883dd Make editing work with templates 2014-01-03 15:52:59 +01:00
Manuel Ebert
f0aab36e19 Only install colorama on windows 2014-01-03 15:51:27 +01:00
Manuel Ebert
fcd8c4d214 Gets rid of colorama 2014-01-02 23:41:53 +01:00
Manuel Ebert
77b669aedf Touch tmpfiles before opening 2014-01-02 07:48:57 +01:00
Manuel Ebert
bc75d4031b Deleting the last entry 2013-11-30 14:55:37 -08:00
Manuel Ebert
a88459dc1c Piping data into jrnl and multiline composing 2013-11-24 11:29:45 -08:00
Manuel Ebert
421d27f021 Squash of @alapolloni 's PR
Fixes #100 and #102
2013-11-22 12:27:52 -08:00
Manuel Ebert
37fad66942 ixed a bug that caused creating encrypted journals to fail 2013-11-20 16:55:41 -08:00
Manuel Ebert
b60605567e Attempts to fix common errors in jrnl_config automatically 2013-11-03 14:38:32 -10:00
Manuel Ebert
f9f20fb4ad Better prompts for y/n questions 2013-10-21 14:36:31 -07:00
Manuel Ebert
68cd41de40 Remove tests for having password in config 2013-10-17 16:00:45 -07:00