Updated docs from master

This commit is contained in:
Manuel Ebert 2014-04-10 18:00:45 -04:00
parent df03996934
commit 3b752597ed
41 changed files with 121 additions and 69 deletions

Binary file not shown.

View file

@ -280,7 +280,7 @@ class Journal(object):
raw = raw.replace('\\n ', '\n').replace('\\n', '\n')
starred = False
# Split raw text into title and body
sep = re.search("\n|[\?!.]+ *", raw)
sep = re.search("\n|[\?!.]+ *\n?", raw)
title, body = (raw[:sep.end()], raw[sep.end():]) if sep else (raw, "")
starred = False
if not date:

Binary file not shown.

View file

@ -8,7 +8,7 @@ jrnl is a simple journal application for your command line.
from __future__ import absolute_import
__title__ = 'jrnl'
__version__ = '1.7.17'
__version__ = '1.7.19'
__author__ = 'Manuel Ebert'
__license__ = 'MIT License'
__copyright__ = 'Copyright 2013 - 2014 Manuel Ebert'

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -81,6 +81,12 @@ def install_jrnl(config_path='~/.jrnl_config'):
password = None
print("PyCrypto not found. To encrypt your journal, install the PyCrypto package from http://www.pycrypto.org or with 'pip install pycrypto' and run 'jrnl --encrypt'. For now, your journal will be stored in plain text.")
path = os.path.split(default_config['journals']['default'])[0] # If the folder doesn't exist, create it
try:
os.makedirs(path)
except OSError:
pass
open(default_config['journals']['default'], 'a').close() # Touch to make sure it's there
# Write config to ~/.jrnl_conf

Binary file not shown.

Binary file not shown.