<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<?xml-stylesheet type="text/css" href="http://nanoblogger.sourceforge.net/styles/feed.css"?>
<title type="html">Filed under: tips-and-tricks | NanoBlogger</title>
<subtitle type="html">small weblog engine for the UNIX command line</subtitle>
<link rel="alternate" type="text/html" href="http://nanoblogger.sourceforge.net" />
<link rel="self" type="application/atom+xml" href="http://nanoblogger.sourceforge.net/archives/tips-and-tricks/index-atom.xml" />
<updated>2008-06-29T03:13:02-04:00</updated>
<author>
<name>n1xt3r</name>
<uri>http://nanoblogger.sourceforge.net</uri>
</author>
<id>http://nanoblogger.sourceforge.net/</id>
<generator uri="http://nanoblogger.sourceforge.net" version="3.4 RC1">NanoBlogger</generator>
<entry>
<title type="html">Save Time, Create Intermediate Previews</title>
<author>
<name>n1xt3r</name>
</author>
<link rel="alternate" type="text/html" href="http://nanoblogger.sourceforge.net/archives/2008/01/12/save_time_create_intermediate_previews/" />
<id>http://nanoblogger.sourceforge.net/archives/2008/01/12/save_time_create_intermediate_previews/</id>
<published>2008-01-12T15:27:18-04:00</published>
<updated>2008-01-12T15:27:18-04:00</updated>
<category term="tips-and-tricks" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<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>
</div>
</content>
</entry>
<entry>
<title type="html">Mutlitask</title>
<author>
<name>n1xt3r</name>
</author>
<link rel="alternate" type="text/html" href="http://nanoblogger.sourceforge.net/archives/2008/01/12/mutlitask/" />
<id>http://nanoblogger.sourceforge.net/archives/2008/01/12/mutlitask/</id>
<published>2008-01-12T14:54:37-04:00</published>
<updated>2008-01-12T14:54:37-04:00</updated>
<category term="tips-and-tricks" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<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>
</div>
</content>
</entry>
<entry>
<title type="html">Spell Checking with aspell from vim</title>
<author>
<name>n1xt3r</name>
</author>
<link rel="alternate" type="text/html" href="http://nanoblogger.sourceforge.net/archives/2004/12/08/spell_checking_with_aspell_from_vim/" />
<id>http://nanoblogger.sourceforge.net/archives/2004/12/08/spell_checking_with_aspell_from_vim/</id>
<published>2004-12-08T22:01:32-04:00</published>
<updated>2004-12-08T22:01:32-04:00</updated>
<category term="tips-and-tricks" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<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>
</div>
</content>
</entry>
</feed>
