Commit graph

860 commits

Author SHA1 Message Date
Jonathan Wren
aae55aa193 Update Travis caching to speed up builds (#871) 2020-04-10 11:51:56 -07:00
Jonathan Wren
0471402183 Create FUNDING.yml (#861)
Test out using Github sponsors
2020-04-10 11:51:56 -07:00
Jrnl Bot
bc35c356a9 Incrementing version to v2.3 [ci skip] 2020-04-10 11:51:56 -07:00
Jrnl Bot
3a72ea4af1 Updating changelog [ci skip] 2020-04-10 11:51:56 -07:00
Nathan Genetzky
327af80997 docs: Update url for "beautiful timeline" in export.md (#879)
The previous URL was invalid. Used way back time machine, and at least at some point a redirect was setup to this site.
2020-04-10 11:51:56 -07:00
Jonathan Wren
2a4f5ca5c9 fix up remnants of merge conflicts 2020-04-10 11:51:56 -07:00
Jrnl Bot
507914ff3c Updating changelog [ci skip] 2020-04-10 11:51:56 -07:00
Jonathan Wren
cd437e8c8f Update stalebot emoji to 📌 instead of
The pushpin better reflects the functionality (stops the issue from
staling).
2020-04-10 11:51:56 -07:00
Jonathan Wren
302d353c4d Fix up tests and related issues
Upgrade poetry if already installed
Get rid of test function that was causing windows problems
2020-04-10 11:51:56 -07:00
Aaron Lichtman
9e5d160bbd Pretty print journal entries (#692)
* Pretty print journal entry titles and dates.

Changes appearance of all jrnl viewing commands, such as $ jrnl --short and
$ jrnl -n {NUM}.

Fix #508

* Removed extra newline at end of title

* Use ansiwrap to properly wrap strings with ANSI escapes

* Add ansiwrap to pyproject.toml

* Allow configuration of colors

- Replaced raw escapes with colorama
- Added colors key to config
- Add checks for validity of color values

* Add color configuration documentation

* Fix broken tests due to config change

* Add tests for colors in configs

- Identifying invalid color configs
- Upgrading config from no colors -> colors

* Add colorama dependency for all platforms

* Allow users to disable colorization of output

* Update poetry.lock

* Add tag and body color customization options

* Fix colorization of tags in title and body

* Updated tests to use no color by default

* Change pass to continue in verify_config()

* Better style in Entry.py

* Reduce code duplication for tag highlighting

- Breaks "unreadable date" regression test for unknown reason

* Properly colorize tags and print body

* Reformatting and clean up

* Replace list comprehension with generator

* Handle invalid colors by not using a color

* Process ANSI escapes properly with behave

* Fixed the 'spaces after tags directly next to punctuation' bug

Broke processing of tags next to any punctuation at all

* Closer to working tag colorization but not perfect

* Add tests printing for multiline journals

Fix #717

* Correctly indent first line of multiline entry

* Add test for multiline entries with tags

* Remove redundant UNICODE flag

* Progress towards proper tag colorization and body formatting

* Fix newline colorization bug

Debug code left intact since there are more bugs to fix :/

* And now the space just ends up before the tag instead of after it

* Fix assertion syntax warning

* Moved tag test to tagging.feature file

* Strip out debug code and clean up

* Bold datetimes in title

* Bold all titles

Fix #720

* Remove PY2 and PY3 constants

* Fix regression in features/steps/core.py

* Fix tag_regex

* Remove redundant re.UNICODE flag

* Remove extraneous code
2020-04-10 11:51:56 -07:00
Micah Jerome Ellison
6985de2844 Add support to save journals to multiple files in a directory
Update FolderJournal reference to entry __unicode__ method to __str__
Remove DayOne test made obsolete by FolderJournal
Fix FolderJournal path tests for Windows paths
Apply Black linting
2020-04-10 11:51:56 -07:00
Craig Moyer
a3c81d46fe Add support for folder base journal.
Adds feature for issue #170 (and #398) where you configure your journal to
be a directory and entries are added as sub-directories and files:
yyyy/mm/dd.txt. Multiple entries in a day will go in the same file, but a
new entry for a specific day will create a new file (and directory
structure).

Fix failed test scenarios for folder journal.
2020-04-10 11:51:56 -07:00
Manuel Ebert
a3afa112ab Clean up shortcut for Limit
This piece of code has bothered me for more than 6 years! (See #131) - this moves parsing arguments to where it belongs.
2020-04-10 11:51:56 -07:00
Aurélien Ooms
1b3d2961a1 docs: Fix fish history instructions.
Use `--add` flag in fish `abbr` command.
2020-04-10 11:51:56 -07:00
Leroy van Logchem
55eff3b777 Update recipes.md
Fixed links to various documentation files
2020-04-10 11:51:56 -07:00
Jrnl Bot
cbea259648 Updating changelog [ci skip] 2020-04-10 11:51:56 -07:00
Jrnl Bot
7cf71c19a9 Updating changelog [ci skip] 2020-04-10 11:51:56 -07:00
Jrnl Bot
5e6517ef75 Updating changelog [ci skip] 2020-04-10 11:51:56 -07:00
Micah Jerome Ellison
32bd4a2b71 Restore emoji test now that it works in Windows Travis builds 2020-04-10 11:51:56 -07:00
Jonathan Wren
480b881bda Put back build lines in poetry config (#838)
Taking out these lines earlier fixed the homebrew release, but broke
other things. So, I'm putting them back for now until we can find a
better solution.
2020-04-10 11:51:56 -07:00
Jonathan Wren
db6b0aa56c Don't re-run tests on deployment (#839)
By the time we get to the deployment step, we've already run these tests
dozens of times. We don't need to run them yet again at deploy time.
2020-04-10 11:51:56 -07:00
Jonathan Wren
4190494a4f Get rid of dumb sex joke (#840)
These kinds of jokes make us look bad, and have gotten this project bad
PR on social media. It's best to get rid of them. We can still be super
glib and funny without crass jokes.
2020-04-10 11:51:56 -07:00
Jonathan Wren
5135f6a4b3 Update site description (#841)
Don't know why this was what it was. Maybe an old joke I don't get?
Either way, new description makes more sense.
2020-04-10 11:51:56 -07:00
Jonathan Wren
9acdba1ec7 Update old links (#844)
Since we moved the core repo to jrnl-org, the old links no longer work.
2020-04-10 11:51:56 -07:00
Jonathan Wren
bafe7a19ae get rid of debug code 2020-04-10 11:51:56 -07:00
Jonathan Wren
bae53267bf Stop multipe changelog generators from crashing into each other 2020-04-10 11:51:56 -07:00
Jrnl Bot
864df9906a Updating changelog [ci skip] 2020-04-10 11:51:56 -07:00
Micah Jerome Ellison
3e1061df5f Fix crashing unicode Travis tests on Windows and fail build if Windows tests fail (#836) 2020-04-10 11:51:56 -07:00
Jrnl Bot
4757deee66 Updating changelog [ci skip] 2020-04-10 11:51:56 -07:00
MinchinWeb
cec0beff9a Listing all entries in DayOne Classic journal throws IndexError (#786)
* Reproduce bug in #780
🎵 I have no body, no body to love me... 🎵
The bug is cause by a DayOne entry that has to entry body.

* Deal with empty bodies
Close #780.

* [Travis-CI] add "tree" command to debug missing files
* Fix file location
I have no idea why, but it ran locally fine without issue. Travis is more particular...
2020-04-10 11:51:56 -07:00
Jrnl Bot
06aa8b50d0 Updating changelog [ci skip] 2020-04-10 11:51:56 -07:00
Aurélien Ooms
839ce7d42d Fix typo in encryption docs (#812)
* Explain how fish can be configured to exclude jrnl commands from history by default
* Fix typo in encryption docs
2020-04-10 11:51:56 -07:00
MinchinWeb
66027e7746 Add UTC support for failing DayOne tests (#785)
* [Dayone] don't break if the system timezone is UTC
* [DayOne] re-enable tests that were failing on Travis
* [DayOne] change as per code review to avoid `except: pass`
2020-04-10 11:51:56 -07:00
Stav Shamir
8b7ebe2dcd Add test scenarios for the export feature (#824)
* Fix behave keyword "and" to correct case "And"
* Extract export_steps module
* Add scenario for XML export
* Add scenario for tags export
* Add scenario for fancy export
* Add scenario for yaml export
* Remove unused module export.py
* Run `make format`
* Fix `create_directory` step
2020-04-10 11:51:56 -07:00
Jonathan Wren
aacc245dc8 Small fixes to changelog 2020-04-10 11:51:56 -07:00
Jrnl Bot
a4da8f49e9 Updating changelog [ci skip] 2020-04-10 11:51:56 -07:00
Jrnl Bot
252ab7256b Incrementing version to v2.2.1-beta2 [ci skip]
Update changelog
2020-04-10 11:51:56 -07:00
Jonathan Wren
f83f486659 Take out build system from pyproject config #781
We don't use it, and it breaks the homebrew install.
2020-04-10 11:51:56 -07:00
Jrnl Bot
4d0a73dab2 Incrementing version to v2.2 [ci skip]
Update changelog
2020-04-10 11:51:56 -07:00
Jrnl Bot
c3d5878a31 Incrementing version to v2.2-beta2 [ci skip]
Update changelog
2020-04-10 11:51:56 -07:00
Jonathan Wren
416fe4d208 update poetry version 2020-04-10 11:51:56 -07:00
Jonathan Wren
5de0027f3b add maintainer field to config 2020-04-10 11:51:56 -07:00
Jonathan Wren
9a354a95d0 fix poetry warning 2020-04-10 11:51:56 -07:00
Jonathan Wren
64340727f1 add version file to repo 2020-04-10 11:51:56 -07:00
Jonathan Wren
e048d1bdf1 unpin poetry version in requirments 2020-04-10 11:51:56 -07:00
Aurélien Ooms
17ce55e031 Explain how fish can be configured to exclude jrnl commands from history by default 2020-04-10 11:51:56 -07:00
Jrnl Bot
36076de64f Updating changelog [ci skip] 2020-04-10 11:51:56 -07:00
Jrnl Bot
4c6c58c929 Updating changelog [ci skip] 2020-04-10 11:51:56 -07:00
heymajor
7a1ee99863 Updating/expanding template explanation
Smoothing out formatting issues
2020-04-10 11:51:56 -07:00
Jrnl Bot
9b80d478c2 Updating changelog [ci skip] 2020-04-10 11:51:56 -07:00