---
title: "Textfile"
date: 2018-05-09T11:13:11-07:00
draft: false
weight: 210
---
Displays the contents of the specified text file in the widget.
## Source Code
```bash
wtf/textfile/
```
## Keyboard Commands
Key: `/`
Action: Open/close the widget's help window.
Key: `o`
Action: Opens the text file in whichever text editor is associated with that file type.
## Configuration
```yaml
textfile:
enabled: true
filePaths:
- "~/Desktop/notes.md"
- "~/.config/wtf/config.yml"
format: true
formatStyle: "dracula"
position:
top: 5
left: 4
height: 2
width: 1
refreshInterval: 15
```
### Attributes
`enabled`
Determines whether or not this module is executed and if its data displayed onscreen.
Values: `true`, `false`.
`filePaths`
An array of paths to the files to be displayed in the widget.
`format`
Whether or not to try and format and syntax highlight the displayedtext.
Values: `true`, `false`.
Default: `false`.
`formatStyle`
The style of syntax highlighting to format the text with.
Values: See [Chroma styles](https://github.com/alecthomas/chroma/tree/master/styles) for all
valid options.
Default: `vim`.
`position`
Defines where in the grid this module's widget will be displayed.
`refreshInterval`
How often, in seconds, this module will update its data.
Values: A positive integer, `0..n`.