Skip to content

symplasma/postview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostView

A quick file viewer for the Symplasma ecosystem.

Why

Some files need processing before they can be viewed by a human e.g. aichat session files are stored as yaml containing snippets of markdown. They are much more readable if rendered directly into a single markdown stream.

Secondarily, this is a testbed for features that we might want to integrate into the preview pane of Retsyn. The current plan is to turn this into an egui widget so it can be used directly in Retsyn.

Features

  • Processing files to make them suitable for viewing
  • Markdown rendering
    • Standard markdown elements
    • Nested lists
    • Task lists
    • Partially completed task list items
  • Search highlighting
  • Showing a count of matches
  • Moving forward and backward between search matches
  • Automatically scroll the first match into view
  • Automatically scroll nearest match into view when the query changes
  • Toggle-able search options
    • Ignoring stopwords
    • Substring vs whole word matching
    • Phrase based matching
    • Matching on word stems
    • Fuzzy matching with adjustable threshold
    • Vector/embedding matches, probably for whole phrases, maybe for individual words i.e. synonyms
    • Find equivalent hits in other languages
  • Keybindings
    • Pressing Esc once clears the current query
    • Pressing Esc with an empty query exits the app
    • Ctrl-q/Ctrl-w should exit the app
    • Ctrl-n should move to the next file
    • Ctrl-p should move to the previous file
    • Ctrl-g highlights the next match
    • Ctrl-Shift-g highlights the previous match
    • PageDown should scroll the document contents down
    • PageUp should scroll the document contents up
    • Home should move to the top of the document
    • End should move to the bottom of the document

About

A quick file viewer for the Symplasma ecosystem.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors