kyledinh / journ Goto Github PK
View Code? Open in Web Editor NEWJournaling with a flat file system and markdown.
License: MIT License
Journaling with a flat file system and markdown.
License: MIT License
Feature: make the week-##.md file auto exported as .pdf files.
Look at: https://www.npmjs.com/package/markdown-pdf
might be able to use Intl routines for formatting week of year according to current locale
journ.cfg.json
in local directory, then home directory, then display gracefully error message to user with fix examplekyle@KMBP:~/code/toolkit$ journ new
===== A New Day ====
fs.js:641
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open './journ.cfg.json'
at Error (native)
at Object.fs.openSync (fs.js:641:18)
at Object.fs.readFileSync (fs.js:509:33)
at Object.module.exports.recordLog (/usr/local/lib/node_modules/journ/lib/api.js:163:29)
at Object.newDay (/usr/local/lib/node_modules/journ/journ.js:39:8)
at Object.<anonymous> (/usr/local/lib/node_modules/journ/journ.js:131:11)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
followon to #2 โ instead of USING HOMEDIR CFG
and USING LOCAL CFG
, it might be better to always print something with the full path:
config: /Users/luser/.journ.cfg.json
It's not an error, I plan to only use ~/.journ.cfg.json
regardless of what my directory is. whether the file was found as HOMEDIR
or LOCAL
is not that relevant, the distinction is more jarring.
The fs.atime maybe reading a UTM time, affecting the journ new
for seeing age of today.md
file
==== weekSummary ====
[ '/Users/kyle/journ/preamble.md',
'/Users/kyle/journ/task.md',
'/Users/kyle/journ/today.md' ]
fs.js:641
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open '/Users/kyle/journ/week-28.md'
at Error (native)
at Object.fs.openSync (fs.js:641:18)
at Object.fs.truncateSync (fs.js:847:15)
at weekSummary (/usr/local/lib/node_modules/journ/lib/api.js:117:12)
at Object.module.exports.weekSummary (/usr/local/lib/node_modules/journ/lib/api.js:137:5)
at Object.weekSummary (/usr/local/lib/node_modules/journ/journ.js:53:7)
at Object. (/usr/local/lib/node_modules/journ/journ.js:132:11)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
Look into connecting to Google GDrive
journ help
does not mention journ +
tasks.md
? journ -
?A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.