{"action":"opened","issue":{"url":"https://api.github.com/repos/manishrjain/into-ledger/issues/3","repository_url":"https://api.github.com/repos/manishrjain/into-ledger","labels_url":"https://api.github.com/repos/manishrjain/into-ledger/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/manishrjain/into-ledger/issues/3/comments","events_url":"https://api.github.com/repos/manishrjain/into-ledger/issues/3/events","html_url":"https://github.com/manishrjain/into-ledger/issues/3","id":186957910,"number":3,"title":"hledger journal support ?","user":{"login":"simonmichael","id":10144,"avatar_url":"https://avatars.githubusercontent.com/u/10144?v=3","gravatar_id":"","url":"https://api.github.com/users/simonmichael","html_url":"https://github.com/simonmichael","followers_url":"https://api.github.com/users/simonmichael/followers","following_url":"https://api.github.com/users/simonmichael/following{/other_user}","gists_url":"https://api.github.com/users/simonmichael/gists{/gist_id}","starred_url":"https://api.github.com/users/simonmichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonmichael/subscriptions","organizations_url":"https://api.github.com/users/simonmichael/orgs","repos_url":"https://api.github.com/users/simonmichael/repos","events_url":"https://api.github.com/users/simonmichael/events{/privacy}","received_events_url":"https://api.github.com/users/simonmichael/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-03T00:52:12Z","updated_at":"2016-11-03T00:52:12Z","closed_at":null,"body":"Given some strategy for detecting them, and a hledger executable, hledger journals could be parsed like ledger ones. Here are the corresponding CSV commands and sample output:\r\n```\r\n~/src/hledger$ ledger -f data/sample.journal csv\r\nledger -f data/sample.journal csv\r\n\"2008/01/01\",\"\",\"income\",\"assets:bank:checking\",\"$\",\"1\",\"\",\"\"\r\n\"2008/01/01\",\"\",\"income\",\"income:salary\",\"$\",\"-1\",\"\",\"\"\r\n\"2008/06/01\",\"\",\"gift\",\"assets:bank:checking\",\"$\",\"1\",\"\",\"\"\r\n\"2008/06/01\",\"\",\"gift\",\"income:gifts\",\"$\",\"-1\",\"\",\"\"\r\n\"2008/06/02\",\"\",\"save\",\"assets:bank:saving\",\"$\",\"1\",\"\",\"\"\r\n\"2008/06/02\",\"\",\"save\",\"assets:bank:checking\",\"$\",\"-1\",\"\",\"\"\r\n\"2008/06/03\",\"\",\"eat & shop\",\"expenses:food\",\"$\",\"1\",\"*\",\"\"\r\n\"2008/06/03\",\"\",\"eat & shop\",\"expenses:supplies\",\"$\",\"1\",\"*\",\"\"\r\n\"2008/06/03\",\"\",\"eat & shop\",\"assets:cash\",\"$\",\"-2\",\"*\",\"\"\r\n\"2008/12/31\",\"\",\"pay off\",\"liabilities:debts\",\"$\",\"1\",\"*\",\"\"\r\n\"2008/12/31\",\"\",\"pay off\",\"assets:bank:checking\",\"$\",\"-1\",\"*\",\"\"\r\n~/src/hledger$ hledger -f data/sample.journal print -O csv\r\nhledger -f data/sample.journal print -O csv\r\n\"txnidx\",\"date\",\"date2\",\"status\",\"code\",\"description\",\"comment\",\"account\",\"amount\",\"commodity\",\"credit\",\"debit\",\"status\",\"posting-comment\"\r\n\"1\",\"2008/01/01\",\"\",\"\",\"\",\"income\",\"\",\"assets:bank:checking\",\"1\",\"$\",\"\",\"1\",\"\",\"\"\r\n\"1\",\"2008/01/01\",\"\",\"\",\"\",\"income\",\"\",\"income:salary\",\"-1\",\"$\",\"1\",\"\",\"\",\"\"\r\n\"2\",\"2008/06/01\",\"\",\"\",\"\",\"gift\",\"\",\"assets:bank:checking\",\"1\",\"$\",\"\",\"1\",\"\",\"\"\r\n\"2\",\"2008/06/01\",\"\",\"\",\"\",\"gift\",\"\",\"income:gifts\",\"-1\",\"$\",\"1\",\"\",\"\",\"\"\r\n\"3\",\"2008/06/02\",\"\",\"\",\"\",\"save\",\"\",\"assets:bank:saving\",\"1\",\"$\",\"\",\"1\",\"\",\"\"\r\n\"3\",\"2008/06/02\",\"\",\"\",\"\",\"save\",\"\",\"assets:bank:checking\",\"-1\",\"$\",\"1\",\"\",\"\",\"\"\r\n\"4\",\"2008/06/03\",\"\",\"*\",\"\",\"eat & shop\",\"\",\"expenses:food\",\"1\",\"$\",\"\",\"1\",\"\",\"\"\r\n\"4\",\"2008/06/03\",\"\",\"*\",\"\",\"eat & shop\",\"\",\"expenses:supplies\",\"1\",\"$\",\"\",\"1\",\"\",\"\"\r\n\"4\",\"2008/06/03\",\"\",\"*\",\"\",\"eat & shop\",\"\",\"assets:cash\",\"-2\",\"$\",\"2\",\"\",\"\",\"\"\r\n\"5\",\"2008/12/31\",\"\",\"*\",\"\",\"pay off\",\"\",\"liabilities:debts\",\"1\",\"$\",\"\",\"1\",\"\",\"\"\r\n\"5\",\"2008/12/31\",\"\",\"*\",\"\",\"pay off\",\"\",\"assets:bank:checking\",\"-1\",\"$\",\"1\",\"\",\"\",\"\"\r\n```\r\n"}}
{"actor":{"display_login":"simonmichael"}}