mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Textfile module now supports multiple text files
This commit is contained in:
2
docs/index.json
vendored
2
docs/index.json
vendored
@@ -249,7 +249,7 @@
|
||||
"title": "Textfile",
|
||||
"tags": [],
|
||||
"description": "",
|
||||
"content": " Displays the contents of the specified text file in the widget.\nSource Code wtf/textfile/ Keyboard Commands Key: / Action: Open/close the widget\u0026rsquo;s help window.\nKey: o Action: Opens the text file in whichever text editor is associated with that file type.\nConfiguration textfile:enabled:truefilePath:\u0026#34;~/Desktop/notes.md\u0026#34;format:trueformatStyle:\u0026#34;dracula\u0026#34;position:top:5left:4height:2width:1refreshInterval:15 Attributes enabled Determines whether or not this module is executed and if its data displayed onscreen. Values: true, false.\nfilePath The path to the file to be displayed in the widget. format Whether or not to try and format and syntax highlight the displayedtext. Values: true, false. Default: false.\nformatStyle The style of syntax highlighting to format the text with. Values: See Chroma styles for all valid options. Default: vim.\nposition Defines where in the grid this module\u0026rsquo;s widget will be displayed. refreshInterval How often, in seconds, this module will update its data. Values: A positive integer, 0..n.\n"
|
||||
"content": " Displays the contents of the specified text file in the widget.\nSource Code wtf/textfile/ Keyboard Commands Key: / Action: Open/close the widget\u0026rsquo;s help window.\nKey: o Action: Opens the text file in whichever text editor is associated with that file type.\nConfiguration textfile:enabled:truefilePaths:-\u0026#34;~/Desktop/notes.md\u0026#34;-\u0026#34;~/.config/wtf/config.yml\u0026#34;format:trueformatStyle:\u0026#34;dracula\u0026#34;position:top:5left:4height:2width:1refreshInterval:15 Attributes enabled Determines whether or not this module is executed and if its data displayed onscreen. Values: true, false.\nfilePaths 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.\nformatStyle The style of syntax highlighting to format the text with. Values: See Chroma styles for all valid options. Default: vim.\nposition Defines where in the grid this module\u0026rsquo;s widget will be displayed. refreshInterval How often, in seconds, this module will update its data. Values: A positive integer, 0..n.\n"
|
||||
},
|
||||
{
|
||||
"uri": "https://wtfutil.com/modules/todo/",
|
||||
|
||||
4
docs/index.xml
vendored
4
docs/index.xml
vendored
@@ -419,8 +419,8 @@ Wifi Network The name of the current network Whether or not the network uses enc
|
||||
<description>Displays the contents of the specified text file in the widget.
|
||||
Source Code wtf/textfile/ Keyboard Commands Key: / Action: Open/close the widget&rsquo;s help window.
|
||||
Key: o Action: Opens the text file in whichever text editor is associated with that file type.
|
||||
Configuration textfile:enabled:truefilePath:&#34;~/Desktop/notes.md&#34;format:trueformatStyle:&#34;dracula&#34;position:top:5left:4height:2width:1refreshInterval:15 Attributes enabled Determines whether or not this module is executed and if its data displayed onscreen. Values: true, false.
|
||||
filePath The path to the file to be displayed in the widget.</description>
|
||||
Configuration textfile:enabled:truefilePaths:-&#34;~/Desktop/notes.md&#34;-&#34;~/.config/wtf/config.yml&#34;format:trueformatStyle:&#34;dracula&#34;position:top:5left:4height:2width:1refreshInterval: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.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
||||
@@ -411,13 +411,25 @@
|
||||
<option value="/modules/circleci/" >- CircleCI</option>
|
||||
<option value="/modules/clocks/" >- Clocks</option>
|
||||
<option value="/modules/cmdrunner/" >- CmdRunner</option>
|
||||
<option value="/modules/cryptocurrencies/" >
|
||||
-
|
||||
Crypo Currencies</option>
|
||||
<option value="/modules/datadog/" >- Datadog</option>
|
||||
<option value="/modules/gerrit/" >- Gerrit</option>
|
||||
<option value="/modules/git/" >- Git</option>
|
||||
<option value="/modules/github/" >- GitHub</option>
|
||||
<option value="/modules/gitlab/" >- GitLab</option>
|
||||
<option value="/modules/gitter/" >- Gitter</option>
|
||||
<option value="/modules/google/" >
|
||||
-
|
||||
Google Apps</option>
|
||||
<option value="/modules/google/gcal/" >-- Google Calendar</option>
|
||||
<option value="/modules/google/gspreadsheet/" selected>-- Google Spreadsheets</option>
|
||||
|
||||
<option value="/modules/hackernews/" >- Hacker News</option>
|
||||
<option value="/modules/ipaddress/" >
|
||||
-
|
||||
IP Addresses</option>
|
||||
<option value="/modules/jenkins/" >- Jenkins</option>
|
||||
<option value="/modules/jira/" >- Jira</option>
|
||||
<option value="/modules/logger/" >- Logger</option>
|
||||
@@ -431,6 +443,9 @@
|
||||
<option value="/modules/travisci/" >- TravisCI</option>
|
||||
<option value="/modules/trello/" >- Trello</option>
|
||||
<option value="/modules/twitter/" >- Twitter</option>
|
||||
<option value="/modules/weather_services/" >
|
||||
-
|
||||
Weather Services</option>
|
||||
<option value="/modules/zendesk/" >- Zendesk</option>
|
||||
|
||||
|
||||
|
||||
@@ -269,8 +269,8 @@ Wifi Network The name of the current network Whether or not the network uses enc
|
||||
<description>Displays the contents of the specified text file in the widget.
|
||||
Source Code wtf/textfile/ Keyboard Commands Key: / Action: Open/close the widget&rsquo;s help window.
|
||||
Key: o Action: Opens the text file in whichever text editor is associated with that file type.
|
||||
Configuration textfile:enabled:truefilePath:&#34;~/Desktop/notes.md&#34;format:trueformatStyle:&#34;dracula&#34;position:top:5left:4height:2width:1refreshInterval:15 Attributes enabled Determines whether or not this module is executed and if its data displayed onscreen. Values: true, false.
|
||||
filePath The path to the file to be displayed in the widget.</description>
|
||||
Configuration textfile:enabled:truefilePaths:-&#34;~/Desktop/notes.md&#34;-&#34;~/.config/wtf/config.yml&#34;format:trueformatStyle:&#34;dracula&#34;position:top:5left:4height:2width:1refreshInterval: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.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
||||
@@ -489,7 +489,9 @@
|
||||
<h2 id="configuration">Configuration</h2>
|
||||
<div class="highlight"><pre class="chroma"><code class="language-yaml" data-lang="yaml">textfile<span class="p">:</span><span class="w">
|
||||
</span><span class="w"> </span>enabled<span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="w">
|
||||
</span><span class="w"> </span>filePath<span class="p">:</span><span class="w"> </span><span class="s2">"~/Desktop/notes.md"</span><span class="w">
|
||||
</span><span class="w"> </span>filePaths<span class="p">:</span><span class="w">
|
||||
</span><span class="w"> </span>-<span class="w"> </span><span class="s2">"~/Desktop/notes.md"</span><span class="w">
|
||||
</span><span class="w"> </span>-<span class="w"> </span><span class="s2">"~/.config/wtf/config.yml"</span><span class="w">
|
||||
</span><span class="w"> </span>format<span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="w">
|
||||
</span><span class="w"> </span>formatStyle<span class="p">:</span><span class="w"> </span><span class="s2">"dracula"</span><span class="w">
|
||||
</span><span class="w"> </span>position<span class="p">:</span><span class="w">
|
||||
@@ -504,8 +506,8 @@
|
||||
Determines whether or not this module is executed and if its data displayed onscreen. <br />
|
||||
Values: <code>true</code>, <code>false</code>.</p>
|
||||
|
||||
<p><code>filePath</code> <br />
|
||||
The path to the file to be displayed in the widget. <br /></p>
|
||||
<p><code>filePaths</code> <br />
|
||||
An array of paths to the files to be displayed in the widget. <br /></p>
|
||||
|
||||
<p><code>format</code> <br />
|
||||
Whether or not to try and format and syntax highlight the displayedtext. <br />
|
||||
|
||||
@@ -410,13 +410,22 @@
|
||||
<option value="/modules/circleci/" >- CircleCI</option>
|
||||
<option value="/modules/clocks/" >- Clocks</option>
|
||||
<option value="/modules/cmdrunner/" >- CmdRunner</option>
|
||||
<option value="/modules/cryptocurrencies/" >
|
||||
-
|
||||
Crypo Currencies</option>
|
||||
<option value="/modules/datadog/" >- Datadog</option>
|
||||
<option value="/modules/gerrit/" >- Gerrit</option>
|
||||
<option value="/modules/git/" >- Git</option>
|
||||
<option value="/modules/github/" >- GitHub</option>
|
||||
<option value="/modules/gitlab/" >- GitLab</option>
|
||||
<option value="/modules/gitter/" >- Gitter</option>
|
||||
<option value="/modules/google/" >
|
||||
-
|
||||
Google Apps</option>
|
||||
<option value="/modules/hackernews/" >- Hacker News</option>
|
||||
<option value="/modules/ipaddress/" >
|
||||
-
|
||||
IP Addresses</option>
|
||||
<option value="/modules/jenkins/" >- Jenkins</option>
|
||||
<option value="/modules/jira/" >- Jira</option>
|
||||
<option value="/modules/logger/" >- Logger</option>
|
||||
@@ -430,6 +439,9 @@
|
||||
<option value="/modules/travisci/" >- TravisCI</option>
|
||||
<option value="/modules/trello/" >- Trello</option>
|
||||
<option value="/modules/twitter/" >- Twitter</option>
|
||||
<option value="/modules/weather_services/" >
|
||||
-
|
||||
Weather Services</option>
|
||||
<option value="/modules/zendesk/" >- Zendesk</option>
|
||||
|
||||
|
||||
|
||||
@@ -411,13 +411,22 @@
|
||||
<option value="/modules/circleci/" >- CircleCI</option>
|
||||
<option value="/modules/clocks/" >- Clocks</option>
|
||||
<option value="/modules/cmdrunner/" >- CmdRunner</option>
|
||||
<option value="/modules/cryptocurrencies/" >
|
||||
-
|
||||
Crypo Currencies</option>
|
||||
<option value="/modules/datadog/" >- Datadog</option>
|
||||
<option value="/modules/gerrit/" >- Gerrit</option>
|
||||
<option value="/modules/git/" >- Git</option>
|
||||
<option value="/modules/github/" >- GitHub</option>
|
||||
<option value="/modules/gitlab/" >- GitLab</option>
|
||||
<option value="/modules/gitter/" >- Gitter</option>
|
||||
<option value="/modules/google/" >
|
||||
-
|
||||
Google Apps</option>
|
||||
<option value="/modules/hackernews/" >- Hacker News</option>
|
||||
<option value="/modules/ipaddress/" >
|
||||
-
|
||||
IP Addresses</option>
|
||||
<option value="/modules/jenkins/" >- Jenkins</option>
|
||||
<option value="/modules/jira/" >- Jira</option>
|
||||
<option value="/modules/logger/" >- Logger</option>
|
||||
@@ -431,6 +440,12 @@
|
||||
<option value="/modules/travisci/" >- TravisCI</option>
|
||||
<option value="/modules/trello/" >- Trello</option>
|
||||
<option value="/modules/twitter/" >- Twitter</option>
|
||||
<option value="/modules/weather_services/" >
|
||||
-
|
||||
Weather Services</option>
|
||||
<option value="/modules/weather_services/prettyweather/" >-- Pretty Weather</option>
|
||||
<option value="/modules/weather_services/weather/" selected>-- Weather</option>
|
||||
|
||||
<option value="/modules/zendesk/" >- Zendesk</option>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user