jrnl/export.html
2014-01-26 12:05:46 +01:00

143 lines
No EOL
7 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Import and Export &mdash; jrnl 1.7.6 documentation</title>
<link rel="stylesheet" href="_static/css/jrnl.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '1.7.6',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="jrnl 1.7.6 documentation" href="index.html" />
<link rel="next" title="Advanced Usage" href="advanced.html" />
<link rel="prev" title="Encryption" href="encryption.html" />
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
<link rel="apple-touch-icon-precomposed" href="_static/img/favicon-152.png">
<link rel="shortcut icon" href="_static/img/favicon.ico">
</head>
<body>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="import-and-export">
<span id="export"></span><h1>Import and Export<a class="headerlink" href="#import-and-export" title="Permalink to this headline"></a></h1>
<div class="section" id="tag-export">
<h2>Tag export<a class="headerlink" href="#tag-export" title="Permalink to this headline"></a></h2>
<p>With:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">jrnl</span> <span class="o">--</span><span class="n">tags</span>
</pre></div>
</div>
<p>you&#8217;ll get a list of all tags you used in your journal, sorted by most frequent. Tags occurring several times in the same entry are only counted as one.</p>
</div>
<div class="section" id="list-of-all-entries">
<h2>List of all entries<a class="headerlink" href="#list-of-all-entries" title="Permalink to this headline"></a></h2>
<div class="highlight-python"><div class="highlight"><pre><span class="n">jrnl</span> <span class="o">--</span><span class="n">short</span>
</pre></div>
</div>
<p>Will only display the date and title of each entry.</p>
</div>
<div class="section" id="json-export">
<h2>JSON export<a class="headerlink" href="#json-export" title="Permalink to this headline"></a></h2>
<p>Can do:</p>
<div class="highlight-python"><pre>jrnl --export json</pre>
</div>
<p>Why not create a <a class="reference external" href="http://timeline.verite.co/">beautiful timeline</a> of your journal?</p>
</div>
<div class="section" id="markdown-export">
<h2>Markdown export<a class="headerlink" href="#markdown-export" title="Permalink to this headline"></a></h2>
<p>Use:</p>
<div class="highlight-python"><pre>jrnl --export markdown</pre>
</div>
<p>Markdown is a simple markup language that is human readable and can be used to be rendered to other formats (html, pdf). This README for example is formatted in markdown and github makes it look nice.</p>
</div>
<div class="section" id="text-export">
<h2>Text export<a class="headerlink" href="#text-export" title="Permalink to this headline"></a></h2>
<div class="highlight-python"><pre>jrnl --export text</pre>
</div>
<p>Pretty-prints your entire journal.</p>
</div>
<div class="section" id="export-to-files">
<h2>Export to files<a class="headerlink" href="#export-to-files" title="Permalink to this headline"></a></h2>
<p>You can specify the output file of your exported journal using the <cite>-o</cite> argument:</p>
<div class="highlight-python"><pre>jrnl --export md -o journal.md</pre>
</div>
<p>The above command will generate a file named <cite>journal.md</cite>. If the <cite>-o</cite> argument is a directory, jrnl will export each entry into an individual file:</p>
<div class="highlight-python"><pre>jrnl --export json -o my_entries/</pre>
</div>
<p>The contents of <cite>my_entries/</cite> will then look like this:</p>
<div class="highlight-output"><pre>my_entries/
|- 2013_06_03_a-beautiful-day.json
|- 2013_06_07_dinner-with-gabriel.json
|- ...</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<aside>
<a href="index.html" id="logolink" title="jrnl"><img class="logo" src="_static/img/logo.png" width="90px" height="98px" title="jrnl"/></a>
<h2>Documentation</h2>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="overview.html">Overview</a></li>
<li class="toctree-l1"><a class="reference internal" href="installation.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="usage.html">Basic Usage</a></li>
<li class="toctree-l1"><a class="reference internal" href="encryption.html">Encryption</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="">Import and Export</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#tag-export">Tag export</a></li>
<li class="toctree-l2"><a class="reference internal" href="#list-of-all-entries">List of all entries</a></li>
<li class="toctree-l2"><a class="reference internal" href="#json-export">JSON export</a></li>
<li class="toctree-l2"><a class="reference internal" href="#markdown-export">Markdown export</a></li>
<li class="toctree-l2"><a class="reference internal" href="#text-export">Text export</a></li>
<li class="toctree-l2"><a class="reference internal" href="#export-to-files">Export to files</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="advanced.html">Advanced Usage</a></li>
<li class="toctree-l1"><a class="reference internal" href="recipes.html">FAQ</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</aside>
<div class="clearer"></div>
</div>
<div class="footer">
Journal is made with love by <a href="http://www.1450.me">Manuel Ebert</a> and <a href="https://github.com/maebert/jrnl/graphs/contributors" title="Contributtors">other fabulous people</a>. If you need help, tweet to <a href="https://twitter.com/maebert" title="Follow @maebert on twitter">@maebert</a> or <a href="https://github.com/maebert/jrnl/issues/new" title="Open a new issue on Github">submit an issue</a> on Github.
</div>
</body>
</html>