Skip to content

Commit 8a67e53

Browse files
authored
Merge pull request newsboat#909 from newsboat/feature/44-paths-followup
Docs: stop listing full paths in files
2 parents 91c48e3 + 668d05e commit 8a67e53

12 files changed

+72
-92
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ doc/xhtml/newsboat.html: doc/newsboat.asciidoc doc/chapter-firststeps.asciidoc \
177177
doc/chapter-tagging.asciidoc doc/chapter-snownews.asciidoc \
178178
doc/chapter-cmdline.asciidoc doc/chapter-podcasts.asciidoc \
179179
doc/podboat-cmds-linked.dsv doc/chapter-password.asciidoc \
180-
doc/chapter-environment-variables.asciidoc
180+
doc/chapter-environment-variables.asciidoc \
181+
doc/chapter-files.asciidoc
181182
$(MKDIR) doc/xhtml
182183
$(ASCIIDOCTOR) --backend=html5 --destination-dir=doc/xhtml doc/newsboat.asciidoc
183184

@@ -201,15 +202,17 @@ doc/$(NEWSBOAT).1: doc/manpage-newsboat.asciidoc doc/chapter-firststeps.asciidoc
201202
doc/newsboat-cfgcmds.asciidoc doc/newsboat-keycmds.asciidoc \
202203
doc/chapter-tagging.asciidoc doc/chapter-snownews.asciidoc \
203204
doc/chapter-cmdline.asciidoc \
204-
doc/chapter-environment-variables.asciidoc
205+
doc/chapter-environment-variables.asciidoc \
206+
doc/chapter-files.asciidoc
205207
$(ASCIIDOCTOR) --backend=manpage doc/manpage-newsboat.asciidoc
206208

207209
doc/podboat-cfgcmds.asciidoc: doc/generate doc/podboat-cmds.dsv
208210
doc/generate doc/podboat-cmds.dsv 'pb-' > doc/podboat-cfgcmds.asciidoc
209211

210212
doc/$(PODBOAT).1: doc/manpage-podboat.asciidoc doc/chapter-podcasts.asciidoc \
211213
doc/podboat-cfgcmds.asciidoc \
212-
doc/chapter-environment-variables.asciidoc
214+
doc/chapter-environment-variables.asciidoc \
215+
doc/chapter-files.asciidoc
213216
$(ASCIIDOCTOR) --backend=manpage doc/manpage-podboat.asciidoc
214217

215218
doc/gen-example-config: doc/gen-example-config.cpp doc/split.h

doc/chapter-cmdline.asciidoc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ the screen, similar to tools like vi(m) or mutt. You can now enter commands.
88
Pressing the "Enter" key executes the command (possibly giving feedback to the
99
user) and closes the commandline. You can cancel entering commands by pressing
1010
the "Esc" key. The history of all the commands that you enter will be saved to
11-
_~/.newsboat/history.cmdline_. The backlog is limited to 100 entries by default,
12-
but can be influenced by setting the <<history-limit,`history-limit`>> configuration variable.
13-
To disable history saving, set the `history-limit` to `0`.
11+
the _history.cmdline_ file, stored next to the _cache.db_ file. The backlog is
12+
limited to 100 entries by default, but can be influenced by setting the
13+
<<history-limit,`history-limit`>> configuration variable. To disable history
14+
saving, set the `history-limit` to `0`.
1415

1516
The commandline provides you with some help if you can't remember the full
1617
names of commandline commands. By pressing the "Tab" key, newsboat will try to
@@ -26,11 +27,11 @@ clear the whole line) and "Ctrl-W" (to delete the word before the current cursor
2627
position) were added.
2728

2829
Please be aware that the input history of both the command line and the search
29-
functions are saved to the filesystems, to the files
30-
_~/.newsboat/history.cmdline_ resp. _~/.newsboat/history.search_. By default,
31-
the last 100 entries are saved, but this can be configured (configuration
32-
variable <<history-limit,`history-limit`>>) and also totally disabled (by setting said variable to
33-
`0`).
30+
functions are saved to the filesystems, to the files _history.cmdline_ resp.
31+
_history.search_ (stored next to the _cache.db_ file). By default, the last 100
32+
entries are saved, but this can be configured (configuration variable
33+
<<history-limit,`history-limit`>>) and also totally disabled (by setting said
34+
variable to `0`).
3435

3536
Currently, the following command line commands are available:
3637

doc/chapter-files.asciidoc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
By default, Newsboat stores all the files in a traditional Unix fashion, i.e.
2+
in the "dotdir" located at _~/.newsboat_. However, it also supports a modern
3+
way,
4+
https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html[XDG Base Directory Specification],
5+
which splits the files between the following locations:
6+
7+
- _~/.local/share/newsboat/_
8+
- _~/.config/newsboat/_
9+
10+
If these directories exist or the environment variables `$XDG_CONFIG_HOME` and
11+
`$XDG_DATA_HOME` are set, newsboat will use these directories, otherwise it
12+
will default to _~/.newsboat_ as its configuration directory.
13+
14+
If you're currently using _~/.newsboat/_ but wish to migrate to XDG
15+
directories, you should move the files as follows:
16+
17+
_config_, _urls_::
18+
to _$HOME/.config/newsboat/_
19+
20+
_cache.db_, _history.search_, _history.cmdline_, _queue_::
21+
to _$HOME/.local/share/newsboat/_
22+

doc/chapter-firststeps.asciidoc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ need to write it as _%40_ instead so that it can be distinguished from the _@_
4848
that separates the username/password part from the hostname part.
4949

5050
You can also configure local files as feeds, by prefixing the local path with
51-
`file://` and adding it to the _$HOME/.newsboat/urls_ file:
51+
`file://` and adding it to the _urls_ file:
5252

5353
file:///var/log/rss_eventlog.xml
5454

@@ -88,12 +88,12 @@ Conditional HTTP downloading can be optionally disabled per feed by using the
8888
<<always-download,`always-download`>> configuration command.
8989

9090
Several aspects of newsboat's behaviour can be configured via a configuration
91-
file, by default _$HOME/.newsboat/config_. This configuration file contains
92-
lines in the form `<config-command> <arg1> ...`. The configuration file can
93-
also contain comments, which start with the `+#+` character and go as far as
94-
the end of line. If you need to enter a configuration argument that contains
95-
spaces, use quotes (`"`) around the whole argument. It's even possible to
96-
integrate the output of external commands into the configuration. The text
91+
file _config_, which is stored next to the _urls_ file. This configuration file
92+
contains lines in the form `<config-command> <arg1> ...`. The configuration
93+
file can also contain comments, which start with the `+#+` character and go as
94+
far as the end of line. If you need to enter a configuration argument that
95+
contains spaces, use quotes (`"`) around the whole argument. It's even possible
96+
to integrate the output of external commands into the configuration. The text
9797
between two backticks (`{backtick}`) is evaluated as shell command, and its
9898
output is put on its place instead. This works like backtick evaluation in
9999
Bourne-compatible shells and allows users to use external information from the
@@ -109,8 +109,8 @@ all feeds will be searched. When you do a search from the article list of a
109109
feed, only the articles of the currently viewed feed are searched. When opening
110110
an article from a search result dialog, the search phrase is highlighted.
111111

112-
The history of all your searches is saved to the filesystem, to
113-
_~/.newsboat/history.search_. By default, the last 100 search phrases are
114-
stored, but this limited can be influenced through the <<history-limit,`history-limit`>>
115-
configuration variable. To disable search history saving, simply set the
116-
`history-limit` to `0`.
112+
The history of all your searches is saved to the filesystem, to the
113+
_history.search_ file (stored next to the _cache.db_ file). By default, the
114+
last 100 search phrases are stored, but this limited can be influenced through
115+
the <<history-limit,`history-limit`>> configuration variable. To disable search
116+
history saving, simply set the `history-limit` to `0`.

doc/chapter-podcasts.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ information for every podcast item it finds in an RSS feed. Since version 2.0,
99
it also recognizes and handles the Yahoo Media RSS extensions. What the user
1010
then can do is to add the podcast download URL to a download queue.
1111
Alternatively, newsboat can be configured to automatically do that. This
12-
queue is stored in the file _$HOME/.newsboat/queue_.
12+
queue is stored in the _queue_ file next to the _cache.db_ file.
1313

1414
The user can then use the download manager `podboat` to download these files
1515
to a directory on the local filesystem. Podboat comes with the newsboat

doc/chapter-snownews.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ An "execurl" script can be any program that gets executed and whose output is
77
interpreted as RSS feed, while "filter" scripts are fed with the content of a
88
configured URL and whose output is interpreted as RSS feed.
99

10-
The configuration is simple and straight-forward. Just add to your
11-
_~/.newsboat/urls_ file configuration lines like the following ones:
10+
The configuration is simple and straight-forward. Just add to your _urls_ file
11+
configuration lines like the following ones:
1212

1313
exec:~/bin/execurl-script
1414
filter:~/bin/filter-script:https://some.test/url

doc/chapter-tagging.asciidoc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ RSS feeds. Every RSS feed can be assigned 0 or more tags. Within newsboat, you
33
can then select to only show RSS feeds that match a certain tag. That makes it
44
easy to categorize your feeds in a flexible and powerful way.
55

6-
Usually, the _~/.newsboat/urls_ file contains one RSS feed URL per line. To
7-
assign a tag to an RSS feed, simply attach it as a single word, separated by
8-
blanks such as space or tab. If the tag needs to contain spaces, you must use
9-
quotes (`"`) around the tag (see example below). An example _~/.newsboat/urls_
10-
file may look like this:
6+
Usually, the _urls_ file contains one RSS feed URL per line. To assign a tag to
7+
an RSS feed, simply attach it as a single word, separated by blanks such as
8+
space or tab. If the tag needs to contain spaces, you must use quotes (`"`)
9+
around the tag (see example below). An example _urls_ file may look like this:
1110

1211
https://blog.fefe.de/rss.xml?html interesting conspiracy news "cool stuff"
1312
https://rss.orf.at/news.xml news orf

doc/configcommands.dsv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ bookmark-autopilot||[yes/no]||no||If set to `yes`, the configured bookmark comma
99
bookmark-cmd||<command>||""||If set, then <command> will be used as bookmarking plugin. See the documentation on bookmarking for further information.||bookmark-cmd "~/bin/delicious-bookmark.sh"
1010
bookmark-interactive||[yes/no]||no||If set to `yes`, then the configured bookmark command is an interactive program.||bookmark-interactive yes
1111
browser||<command>||%BROWSER, otherwise lynx||Set the browser command to use when opening an article in the browser. If BROWSER environment variable is set, it will be used as the default browser, otherwise lynx will be used. Any occurrences of `%u` in <command> will be replaced by a URL in single quotes.||browser "w3m %u"
12-
cache-file||<path>||"~/.newsboat/cache.db"||This configuration option sets the cache file. This is especially useful if the filesystem of your home directory doesn't support proper locking (e.g. NFS).||cache-file "/tmp/testcache.db"
12+
cache-file||<path>||"~/.newsboat/cache.db" or "~/.local/share/cache.db" (see "Files" section)||This configuration option sets the cache file. This is especially useful if the filesystem of your home directory doesn't support proper locking (e.g. NFS).||cache-file "/tmp/testcache.db"
1313
cleanup-on-quit||[yes/no]||yes||If set to `yes`, then the cache gets locked and superfluous feeds and items are removed, such as feeds that can't be found in the urls configuration file anymore.||cleanup-on-quit no
1414
color||<element> <fgcolor> <bgcolor> [<attribute> ...]||n/a||Set the foreground color, background color and optional attributes for a certain element.||color background white black
1515
confirm-exit||[yes/no]||no||If set to `yes`, then newsboat will ask for confirmation whether the user really wants to quit newsboat.||confirm-exit yes
@@ -129,7 +129,7 @@ ttrss-passwordfile||<path>||""||A more secure alternative to the above, by stori
129129
ttrss-passwordeval||<command>||""||Another secure alternative, is providing your password from an external command that is evaluated during login. This can be used to read your password from a gpg encrypted file or your system keyring.||ttrss-passwordeval "gpg --decrypt ~/.newsboat/ttrss-password.gpg"
130130
ttrss-url||<url>||""||Configures the URL where the Tiny Tiny RSS installation you want to use resides.||ttrss-url "https://example.com/ttrss/"
131131
unbind-key||<key> [<dialog>]||n/a||Unbind key <key>. This means that no operation is called when <key> is pressed. If you provide "-a" as <key>, all currently bound keys will become unbound. Optionally, you can specify a dialog (for a list of available dialogs, see `bind-key` above). If you specify one, the key binding will only be unbound for the specified dialog.||unbind-key R
132-
urls-source||<source>||"local"||This configuration command sets the source where URLs shall be retrieved from. By default, this is ~/.newsboat/urls. Alternatively, you can set it to `opml`, which enables newsboat's OPML online subscription mode, to `ttrss` which enables newsboat's Tiny Tiny RSS support, to `oldreader`, which enables newsboat's The Old Reader support, to `newsblur`, which enables NewsBlur support, or `feedhq` for FeedHQ support, or `ocnews` for ownCloud News support, or `inoreader` for Inoreader support. Query feed specifications will be read from the local urls file regardless of this setting.||urls-source "oldreader"
132+
urls-source||<source>||"local"||This configuration command sets the source where URLs shall be retrieved from. By default, this is the _urls_ file. Alternatively, you can set it to `opml`, which enables newsboat's OPML online subscription mode, to `ttrss` which enables newsboat's Tiny Tiny RSS support, to `oldreader`, which enables newsboat's The Old Reader support, to `newsblur`, which enables NewsBlur support, or `feedhq` for FeedHQ support, or `ocnews` for ownCloud News support, or `inoreader` for Inoreader support. Query feed specifications will be read from the local urls file regardless of this setting.||urls-source "oldreader"
133133
urlview-title-format||<format>||"%N %V - URLs"||Format of the title in URL view. See "Format Strings" section of Newsboat manual for details on available formats.||urlview-title-format "URLs"
134134
use-proxy||[yes/no]||no||If set to `yes`, then the configured proxy will be used for downloading the RSS feeds.||use-proxy yes
135135
user-agent||<string>||""||If set to a non-zero-length string, this value will be used as HTTP User-Agent header for all HTTP requests.||user-agent "Lynx/2.8.5rel.1 libwww-FM/2.14"

doc/faq.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Convert octal numbers to decimal, and drop the leading zero. For example,
1717
== I want to have a feed that contains all unread articles of all feeds
1818

1919
This is supported since Newsbeuter 0.7. All you need to do is add the following
20-
line to your +~/.newsboat/urls+ file:
20+
line to your _urls_ file:
2121

2222
"query:Unread Articles:unread = \"yes\""
2323

doc/manpage-newsboat.asciidoc

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -128,26 +128,10 @@ _<number>_::
128128
Jump to the <number>th entry in the current dialog
129129

130130

131-
== XDG Base Directory Support
132-
133-
Newsboat defaults to storing everything in _$HOME/.newsboat_ directory. If
134-
you prefer XDG, create _$HOME/.config/newsboat_ and
135-
_$HOME/.local/share/newsboat_ directories, and Newsboat will use them
136-
from there on.
137-
138-
If you already have some files in _$HOME/.newsboat/_, move them as follows:
139-
140-
_config_, _urls_::
141-
to _$HOME/.config/newsboat/_
142-
143-
_cache.db_, _history.search_, _history.cmdline_::
144-
to _$HOME/.local/share/newsboat/_
145-
146-
See also a corresponding section in podboat(1).
147-
148-
149131
== FILES
150132

133+
include::chapter-files.asciidoc[]
134+
151135
dotfiles::
152136
_$HOME/.newsboat/config_
153137
+

0 commit comments

Comments
 (0)