plugins.papis.settings.search.initial_sort_by_time_added

Whether to initially sort entries by time-added.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.papis.settings.search.preview_format

Papis.nvim uses a common configuration format for defining the formatting of strings.

Sometimes – as for instance in the below preview_format option – we define a set of lines. At other times – as for instance in the results_format option – we define a single line.

Sets of lines are composed of single lines. A line can be composed of either a single element or multiple elements. The below preview_format shows an example where each line is defined by a table with just one element.

Type: null or (list of ((list of (string or list of string)) or raw lua code)) or raw lua code

Default: null

Plugin default:

[
  [
    "author"
    "%s"
    "PapisPreviewAuthor"
  ]
  [
    "year"
    "%s"
    "PapisPreviewYear"
  ]
  [
    "title"
    "%s"
    "PapisPreviewTitle"
  ]
  [
    "empty_line"
  ]
  [
    "journal"
    "%s"
    "PapisPreviewValue"
    "show_key"
    [
      "󱀁  "
      "%s: "
    ]
    "PapisPreviewKey"
  ]
  [
    "type"
    "%s"
    "PapisPreviewValue"
    "show_key"
    [
      "  "
      "%s: "
    ]
    "PapisPreviewKey"
  ]
  [
    "ref"
    "%s"
    "PapisPreviewValue"
    "show_key"
    [
      "  "
      "%s: "
    ]
    "PapisPreviewKey"
  ]
  [
    "tags"
    "%s"
    "PapisPreviewValue"
    "show_key"
    [
      "  "
      "%s: "
    ]
    "PapisPreviewKey"
  ]
  [
    "abstract"
    "%s"
    "PapisPreviewValue"
    "show_key"
    [
      "󰭷  "
      "%s: "
    ]
    "PapisPreviewKey"
  ]
]

Declared by:

plugins.papis.settings.search.results_format

The format of each line in the the results window. Here, everything is show on one line (otherwise equivalent to points 1-3 of preview_format).

The force_space value is used to force whitespace for icons (so that if e.g. a file is absent, it will show " ", ensuring that columns are aligned.)

Type: null or (list of ((list of (string or list of string)) or raw lua code)) or raw lua code

Default: null

Plugin default:

[
  [
    "files"
    [
      " "
      "F "
    ]
    "PapisResultsFiles"
    "force_space"
  ]
  [
    "notes"
    [
      "󰆈 "
      "N "
    ]
    "PapisResultsNotes"
    "force_space"
  ]
  [
    "author"
    "%s "
    "PapisResultsAuthor"
  ]
  [
    "year"
    "(%s) "
    "PapisResultsYear"
  ]
  [
    "title"
    "%s"
    "PapisResultsTitle"
  ]
]

Declared by:

plugins.papis.settings.search.search_keys

What keys to search for matches.

Type: null or (list of (string or raw lua code)) or raw lua code

Default: null

Plugin default:

[
  "author"
  "editor"
  "year"
  "title"
  "tags"
]

Declared by:

plugins.papis.settings.search.wrap

Whether to enable line wrap in the telescope previewer.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by: