Skip to content

Settings

ransome edited this page Mar 16, 2024 · 7 revisions

This page documents settings in sleek, which are not accessible in the user interface. These settings must be set in sleek's config file.

excludeLinesWithPrefix

  • Default: null
  • Expects: Array
  • Introduced: v2.0.10

This attribute can be used to exclude lines in the todo.txt file from being parsed. If you utilize comments in your todo.txt file, you can make sure these will not be parsed in sleek. An example for a todo.txt file with comments:

## commented line, which must not be parsed by sleek
(A) An actual todo, which should be +parsed

To exclude the first line set "excludeLinesWithPrefix"# : ['##']

File watcher

fileWatcherAtomic

  • Default: 1000
  • Expects: integer
  • Introduced: v2.0.12

fileWatcherPolling

  • Default: false
  • Expects: boolean
  • Introduced: v2.0.12

fileWatcherPollingInterval

  • Default: 100
  • Expects: integer
  • Introduced: v2.0.12

In certain cases, when files are synchronized using tools like Syncthing or Dropbox, the synchronization process may erroneously appear as a file deletion. You have the option to raise this number to identify a threshold that avoids encountering this problem in your specific environment. sleek is incorporating chokidar. To learn how and when to change these settings, please to this documentation.