Coder Social home page Coder Social logo

journ's People

Contributors

kyledinh avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

srl295

journ's Issues

help on tasks?

  • journ help does not mention journ +
  • How do I mark a task completed? Edit tasks.md? journ - ?

improve notice for CFG file

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.

Gracefully handle when journ.cfg.json not found in directory

  • Maybe it should search for journ.cfg.json in local directory, then home directory, then display gracefully error message to user with fix example
kyle@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)

"journ new" needs to ensure new week-##.md file is created.

==== 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.