1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Make openFileUtil configurable

Let user configure the command/utility to use to open a file or URL from within a WTF widget
This commit is contained in:
Anand Sudhir Prayaga
2018-07-24 12:59:21 +02:00
parent a7fe8207d0
commit 4ae8de8bdd
5 changed files with 12 additions and 3 deletions

View File

@@ -24,6 +24,7 @@ wtf:
# that support ten line of text, one of three lines, and one of four
rows: [10, 10, 10, 10, 10, 3, 4]
# The app redraws itself once a second
openFileUtil: open
refreshInterval: 1
term: "xterm-256color"
```
@@ -65,6 +66,9 @@ An array that defines the heights of all the rows. <br />
Values: See <a href="https://github.com/rivo/tview/wiki/Grid">tview's
Grid</a> for details.
`openFileUtil` <br />
Command to use to open a file or URL
`refreshInterval` <br />
How often, in seconds, the UI refreshes itself. <br />
**Note:** This implementation is probably wrong and buggy and likely to