summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-29document: Abstract out HTML snippet generation.Arun Isaac
* tissue/document.scm (document-html-snippet): New function. (document-snippet, document-sxml-snippet): Use document-html-snippet.
2022-06-29tissue: Add `tissue index' subcommand.Arun Isaac
* bin/tissue (tissue-index): New function. (print-usage): List `tissue index' subcommand. (main): Call tissue-index.
2022-06-29search: Limit number of search results.Arun Isaac
* tissue/search.scm (search-fold, search-map): Accept maximum number of search results and offset as arguments. * bin/tissue (tissue-search): Do not print number of search results. Use search-map instead of search-fold.
2022-06-29search: Accept search query as a single string.Arun Isaac
* tissue/search.scm (search-fold, search-map): Accept search query as a single string instead of a list of strings. * bin/tissue (tissue-search): Pass a single search string to search-fold. * tissue/web/server.scm (handler): Pass a single search string to search-map.
2022-06-29web: server: Add web server for search.Arun Isaac
* tissue/web/server.scm: New file. * tissue/document.scm (document-sxml-snippet): New public function. (document->sxml): New generic method. * tissue/issue.scm: Import (web uri). (document->sxml): New generic method. * bin/tissue: Import (system repl server) and (tissue web server). (address->socket-address, tissue-run-web): New function. (print-usage): List `tissue run-web' subcommand. (main): Call tissue-run-web.
2022-06-29document: Add web-uri slot to <document> class.Arun Isaac
* tissue/document.scm (<document>)[web-uri]: New slot. * bin/tissue (main): Set web-uri slot before indexing document.
2022-06-29document: Abstract out document snippet selection.Arun Isaac
* tissue/document.scm: Import (htmlprag). (document-snippet): New public function. (print): Use document-snippet. * tissue/issue.scm (print): Use document-snippet.
2022-06-28web: static: Move sanitize-string to (tissue issue).Arun Isaac
* tissue/web/static.scm (sanitize-string): Move to tissue/issue.scm.
2022-06-28document: Add slot-set utility.Arun Isaac
* tissue/document.scm (slot-set): New public function.
2022-06-28tissue: Add missing argument to format in tissue-search.Arun Isaac
* bin/tissue (tissue-search): Add missing argument to format.
2022-06-28search: Add search-map.Arun Isaac
* tissue/search.scm (search-map): New function.
2022-06-28document: Override write to print object slots and values.Arun Isaac
* tissue/document.scm: Import (srfi srfi-1). (write): New generic method.
2022-06-28bin: Separate out search into (tissue search).Arun Isaac
* bin/tissue (tissue-search): Separate out search functionality into search-fold in (tissue search). * tissue/search.scm: New file.
2022-06-28issue: Prefix ! to destructive function index-person.Arun Isaac
* tissue/issue.scm (index-person): Rename to index-person!. (document-term-generator): Update invocations of index-person.
2022-06-28issue: Deprecate unix-time->date utility.Arun Isaac
* tissue/issue.scm (unix-time->date): Delete function.
2022-06-28Migrate to GOOPS.Arun Isaac
* tissue/document.scm: Do not import (srfi srfi-9). Import (srfi srfi-19), (ice-9 match) and (oop goops). (<document>): Delete type. (<document>, <file-document>): New classes. (date->alist, alist->date, object->scm, scm->object): New functions. (document->alist, alist->document, print-document): Delete functions. (document-term-generator, document-type, document-id-term, document-text, print): New generic methods. (read-gemtext-document): Return <file-document> object. (index-document): Delete function. * tissue/issue.scm: Do not import (srfi srfi-9) and (srfi srfi-19). Import (oop goops) and (tissue document). (date->iso-8601, iso-8601->date): Move to tissue/document.scm. (<issue>, <post>): Re-implement as class. (issue->alist, post->alist, alist->issue, alist->post, index-issue): Delete functions. (print-issue): Rename to print, a generic method. (print): Use document-title and file-document-path instead of issue-title and issue-file respectively. Accept mset argument. (print-issue-to-gemtext): Use document-title instead of issue-title. (read-gemtext-issue): Return a <issue> object. (document-term-generator): New generic methods. * bin/tissue: Import (tissue document) without a prefix. (print-document, alist->document, document->text, index-document): Delete functions. (tissue-search): Use the print generic function. (main): Use the document-type, document-id-term, document-term-generator generic functions and replace-document! instead of index-document. * tissue/conditions.scm (&unknown-document-type-violation): Delete condition.
2022-06-27web: Move (tissue web) to (tissue web static).Arun Isaac
* tissue/web.scm: Rename to tissue/web/static.scm. * bin/tissue: Import (tissue web static) instead of (tissue web). * Makefile (sources): Add sources in tissue/web/.
2022-06-27issue: Move issue printing functions to (tissue issue).Arun Isaac
* bin/tissue: Do not import (srfi srfi-19). (print-issue, print-issue-to-gemtext): Move to tissue/issue.scm. (human-date-string): Move to tissue/utils.scm. * tissue/issue.scm: Import (term ansi-color). * tissue/utils.scm: Import (srfi srfi-19).
2022-06-27issue: Replace issues thunk with read-gemtext-issue reader.Arun Isaac
* tissue/issue.scm (%issue-files): Delete parameter. (issues): Delete function. (read-gemtext-issue): New public function. (file-modification-table-for-current-repository): New function. * bin/tissue (main): Do not parameterize %issue-files.
2022-06-27tissue: Generalize issue-files to indexed-documents.Arun Isaac
* tissue/tissue.scm (<tissue-configuration>)[issue-files]: Delete field. [indexed-documents]: New field. * tissue/tissue.scm (tissue-configuration): Remove issue-files argument. Add indexed-documents argument. * bin/tissue: Import (tissue document) with doc: prefix. (print-document, alist->document, document->text, index-document): New functions. (tissue-search): Display search results for generalized documents using print-document, alist->document and document->text. (main): Index generalized documents using index-document.
2022-06-27conditions: Add &unknown-document-type-violation.Arun Isaac
* tissue/conditions.scm (&unknown-document-type-violation): New condition type.
2022-06-27conditions: Suffix -error to &issue-file-not-found condition.Arun Isaac
* tissue/conditions.scm (&issue-file-not-found): Rename to &issue-file-not-found-error.
2022-06-27document: Add <document> object.Arun Isaac
* tissue/document.scm: New file.
2022-06-27bin: Deprecate rlast utility.Arun Isaac
* bin/tissue (rlast): Delete function.
2022-06-27bin: Deprecate invoke utility.Arun Isaac
* bin/tissue (invoke): Delete function.
2022-06-27bin: Add <indexed-document> type.Arun Isaac
* bin/tissue: Import (srfi srfi-9). (<indexed-document>): New type.
2022-06-27utils: Add string-remove-prefix.Arun Isaac
* tissue/utils.scm (string-remove-prefix): New public function.
2022-06-27issue: Deprecate authors function.Arun Isaac
The authors function, if required in the future, must be reimplemented using guile-git in (tissue git). * tissue/issue.scm (authors): Delete public function.
2022-06-27web: Deprecate all static issue listings.Arun Isaac
We are moving to a dynamic web interface with issue searches. Static issue listings are therefore obsolete. * tissue/web.scm: Do not import (skribilo ast), (skribilo lib), (skribilo package base), (skribilo utils keywords), (skribilo writer) and (sxml simple). (%tags-path): Delete parameter. (issue-list-item): Delete markup. (issue-listing, issue-list-item-markup-writer-action, tag-issue-lister, tag-pages): Delete functions. * bin/tissue (tissue-web): Do not parameterize %tags-path.
2022-06-27git: Optionally accept repository argument in git-tracked-files.Arun Isaac
While making the repository argument mandatory makes git-tracked-files more of a pure function, users would still prefer to implicitly refer to the current repository in their tissue.scm configuration files. * tissue/git.scm (git-tracked-files): Make repository argument optional.
2022-06-27bin: Assume is:open in queries.Arun Isaac
* bin/tissue (tissue-search): Assume is:open in queries.
2022-06-26bin: Parse type field searches in queries.Arun Isaac
* bin/tissue (tissue-search): Parse type field searches in queries.
2022-06-26issue: Index issues with type:issue.Arun Isaac
* tissue/issue.scm (issue->alist): Add (type . issue) pair. (index-issue): Index type:issue.
2022-06-26bin: Deprecate `tissue list' subcommand.Arun Isaac
* bin/tissue (tissue-list): Delete function. (print-usage): Unlist list subcommand. (main): Do not call tissue-list. Alias `tissue' to `tissue search'.
2022-06-26bin: Remove obsolete comment about highlighting keywords.Arun Isaac
* bin/tissue (print-issue): Remove obsolete comment about highlighting keywords.
2022-06-26issue: Export predicates issue? and post?.Arun Isaac
* tissue/issue.scm: Export record type predicates issue? and post?.
2022-06-25bin: Handle blank search queries as a special case.Arun Isaac
* bin/tissue (tissue-search): Handle blank search queries as a special case.
2022-06-25bin: Unbolden issue keywords and show them all on blue.Arun Isaac
Bold issue keywords are too visually distracting. They compete with highlit text in snippets. * bin/tissue (print-issue): Unbolden issue keywords and show them all on blue, instead of some on red and some on blue.
2022-06-25bin: Add search subcommand.Arun Isaac
* bin/tissue (tissue-show): New function. (print-usage): List search subcommand. (main): Call tissue-search.
2022-06-25bin: Index issues using xapian.Arun Isaac
* bin/tissue: Import (ice-9 ftw), (git), (xapian wrap) and (xapian xapian). (delete-xapian-index): New function. (%state-directory, %xapian-index): New variables. (main): Build index if it does not exist. * tissue/issue.scm: Import (xapian xapian). (index-person): New function. (index-issue): New public function.
2022-06-25bin: Print issue filename.Arun Isaac
* bin/tissue (print-issue): Print issue filename. (tissue-list): Remove newline before printing total count.
2022-06-25bin: Do not print issue number.Arun Isaac
* bin/tissue (print-issue, print-issue-to-gemtext): Do not accept issue number argument. (tissue-list): Do not pass issue number argument to print-issue and print-issue-to-gemtext.
2022-06-25bin: Underline issue title when printing.Arun Isaac
* bin/tissue (print-issue): Underline issue title.
2022-06-25bin: Deprecate `tissue edit' subcommand.Arun Isaac
* bin/tissue (tissue-edit): Delete function. (print-usage): Unlist edit subcommand. (main): Do not call tissue-edit.
2022-06-25bin: Expect filename arguments to `tissue show'.Arun Isaac
* bin/tissue (tissue-show): Expect filename arguments instead of issue numbers.
2022-06-25issue: Add serialization and deserialization functions.Arun Isaac
* tissue/issue.scm (date->iso-8601, iso-8601->date): New functions. (issue->alist, post->alist, alist->issue, alist->post): New public functions.
2022-06-25bin: Use (term ansi-color) instead of rolling our own.Arun Isaac
* bin/tissue: Import (term ansi-color). (color, bold, red, green, yellow, blue, magenta, cyan, red-background, green-background, yellow-background, blue-background, magenta-background, cyan-background): Delete functions. (print-issue, tissue-show): Use colorize-string from (term ansi-color) instead of our own functions.
2022-06-23pre-inst-env: Add pre-installation environment script.Arun Isaac
* pre-inst-env: New file.
2022-06-23Makefile: Disable auto-compile when building guile source.Arun Isaac
* Makefile (%.go): Disable auto-compile.
2022-06-23utils: Deprecate call-with-input-pipe.Arun Isaac
* tissue/utils.scm (call-with-input-pipe): Delete function.