From 381ce71902e176f8f0d76f8330e74c871cbd46b3 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 29 Jan 2017 22:51:26 +0100 Subject: Document templates --- docs/getting_started_command_line.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs') diff --git a/docs/getting_started_command_line.rst b/docs/getting_started_command_line.rst index 2c79701..c5dc007 100644 --- a/docs/getting_started_command_line.rst +++ b/docs/getting_started_command_line.rst @@ -47,3 +47,15 @@ open them with ``lesana edit``. If you're using git, don't forget to add and commit the entries you've added (i.e. the files under ``items``). + +Search results are limited by default to 12 matches; to get all results +for your query you can use the option ``--all``. This is especially +useful when passing the results to a template:: + + lesana search --template templates/my_report.html --all \ + some search terms \ + > some_search_terms-report.html + +will generate an html file based on the jinja2 template +``templates/my_report.html`` with all the entries found for those search +terms. -- cgit v1.2.3