<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://nanoblogger.sourceforge.net/styles/feed.css"?>
<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Filed under: tips-and-tricks | NanoBlogger</title>
<atom:link href="http://nanoblogger.sourceforge.net/archives/tips-and-tricks/index-rss.xml" rel="self" type="application/rss+xml" />
<link>http://nanoblogger.sourceforge.net</link>
<description>small weblog engine for the UNIX command line</description>
<dc:language>en-us</dc:language>
<dc:creator>n1xt3r</dc:creator>
<dc:date>2008-06-29T03:13:21-04:00</dc:date>
<admin:generatorAgent rdf:resource="http://nanoblogger.sourceforge.net" />
<item>
<link>http://nanoblogger.sourceforge.net/archives/2008/01/12/save_time_create_intermediate_previews/</link>
<guid isPermaLink="true">http://nanoblogger.sourceforge.net/archives/2008/01/12/save_time_create_intermediate_previews/</guid>
<title>Save Time, Create Intermediate Previews</title>
<dc:date>2008-01-12T15:27:18-04:00</dc:date>
<dc:creator>n1xt3r</dc:creator>
<dc:subject>tips-and-tricks</dc:subject>
<description>
<![CDATA[<p>You don't have to wait for the entire update process to finish before you can
preview your work. Use the <em>draft</em> and <em>make-page</em> actions to create an
intermediate preview of your work.</p>

<ol>
<li><p>Create the new entry or article with <em>draft</em>.</p>

<pre><code>nb draft preview.txt
</code></pre></li>
<li><p>Create the preview with <em>make-page</em>.</p>

<pre><code>nb make-page preview.txt preview.html
</code></pre></li>
<li><p>When you're satisfied with the preview, initiate the update sequence.</p>

<p>for an entry:</p>

<pre><code>nb file preview.txt add entry
</code></pre>

<p>for an article (from the <em>articles</em> directory):</p>

<pre><code>nb query main update
</code></pre></li>
</ol>]]>
</description>
</item>
<item>
<link>http://nanoblogger.sourceforge.net/archives/2008/01/12/mutlitask/</link>
<guid isPermaLink="true">http://nanoblogger.sourceforge.net/archives/2008/01/12/mutlitask/</guid>
<title>Mutlitask</title>
<dc:date>2008-01-12T14:54:37-04:00</dc:date>
<dc:creator>n1xt3r</dc:creator>
<dc:subject>tips-and-tricks</dc:subject>
<description>
<![CDATA[<p>Did you know that NanoBlogger can multitask?</p>

<ol>
<li><p>Apply changes immediately after changing configuration.</p>

<pre><code>nb configure query all update
</code></pre></li>
<li><p>Edit a new article and have it generated immediately.</p>

<pre><code>nb draft [blog_dir]articles/example.txt query main update
</code></pre></li>
<li><p>Publish changes immediately after an edit or delete action.</p>

<pre><code>nb edit entry n publish
nb delete entry n publish
</code></pre></li>
<li><p>Combining preview and publish (when "add" is not invoked).</p>

<pre><code>nb edit entry n preview publish
nb draft [blog_dir]articles/example.txt query main update preview publish
</code></pre></li>
</ol>

<p>Some notes:</p>

<ul>
<li>As of this writing, both "preview" and "publish" are already ran
automatically whenever the "add" action is invoked.</li>
<li>You can use the "--interactive 0" option to prevent NanoBlogger from
stopping and asking a lot of questions.</li>
</ul>]]>
</description>
</item>
<item>
<link>http://nanoblogger.sourceforge.net/archives/2004/12/08/spell_checking_with_aspell_from_vim/</link>
<guid isPermaLink="true">http://nanoblogger.sourceforge.net/archives/2004/12/08/spell_checking_with_aspell_from_vim/</guid>
<title>Spell Checking with aspell from vim</title>
<dc:date>2004-12-08T22:01:32-04:00</dc:date>
<dc:creator>n1xt3r</dc:creator>
<dc:subject>tips-and-tricks</dc:subject>
<description>
<![CDATA[<p>My favorite editor is a clone of vi, called <a href="http://www.vim.org/">vim</a>.  Spell checking in vim is made possible with the use of <a href="http://aspell.net">aspell</a>.</p>

<p>Just follow these three simple vim commands:</p>

<pre>
:w!
:!aspell -c %
:w %
</pre>]]>
</description>
</item>
</channel>
</rss>
