From 3aed99f051eae1d5b127f285b65d77b781d4ac80 Mon Sep 17 00:00:00 2001 From: Yuriy Gabuev Date: Fri, 22 Oct 2021 22:40:26 +0200 Subject: [PATCH 1/4] Update config.rst This PR adds documentation for `path_sep_replace` configuration option, which is not yet present in the official docs. --- docs/reference/config.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/reference/config.rst b/docs/reference/config.rst index f041be625..636a018ed 100644 --- a/docs/reference/config.rst +++ b/docs/reference/config.rst @@ -151,6 +151,19 @@ replaced as they don't match the typewriter quote (``"``). To also strip these special characters, you can either add them to the replacement list or use the :ref:`asciify-paths` configuration option below. +.. _path-sep-replace: + +path_sep_replace +~~~~~~~~~~~~~~~~ + +A value that replaces the path separator in the filenames created by beets. +On most systems, the path separator is the forward slash (``/``). + +Note that you should never use the actual path separator as the value for this option, +otherwise it's very easy to mess up the structure of your music directory. + +Default: `_`. + .. _asciify-paths: asciify_paths From 41e5124dffc1f794f3506d76d31d7f0a2ff7f75c Mon Sep 17 00:00:00 2001 From: Yuriy Gabuev Date: Sat, 23 Oct 2021 19:34:21 +0200 Subject: [PATCH 2/4] Update config.rst --- docs/reference/config.rst | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/reference/config.rst b/docs/reference/config.rst index 636a018ed..239bf201c 100644 --- a/docs/reference/config.rst +++ b/docs/reference/config.rst @@ -156,13 +156,19 @@ special characters, you can either add them to the replacement list or use the path_sep_replace ~~~~~~~~~~~~~~~~ -A value that replaces the path separator in the filenames created by beets. -On most systems, the path separator is the forward slash (``/``). +A string that replaces the path separator (for example, the forward slash +``/`` on Linux and MacOS, and the backward slash ``\\`` on Windows) when +generating filenames with beets. +This option is related to ::red:`replace`, but is distict from it for +technical reasons. -Note that you should never use the actual path separator as the value for this option, -otherwise it's very easy to mess up the structure of your music directory. +.. warning:: + Changing this option is potentially dangerous. For example, setting + it to the actual path separator could create directories in unexpected + locations. Use caution when changing it and always try it out on a small + number of files before applying it to your whole library. -Default: `_`. +Default: ``_``. .. _asciify-paths: From 3d498113fad330564622361d437c4feedfc9514d Mon Sep 17 00:00:00 2001 From: Yuriy Gabuev Date: Mon, 25 Oct 2021 20:02:25 +0200 Subject: [PATCH 3/4] Update config.rst --- docs/reference/config.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/config.rst b/docs/reference/config.rst index 239bf201c..fa3494299 100644 --- a/docs/reference/config.rst +++ b/docs/reference/config.rst @@ -159,7 +159,7 @@ path_sep_replace A string that replaces the path separator (for example, the forward slash ``/`` on Linux and MacOS, and the backward slash ``\\`` on Windows) when generating filenames with beets. -This option is related to ::red:`replace`, but is distict from it for +This option is related to ::ref:`replace`, but is distict from it for technical reasons. .. warning:: From 638b1e740a7e91da077345981e1a7dc6b2548b64 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 26 Oct 2021 08:17:00 -0400 Subject: [PATCH 4/4] Remove duplicated : --- docs/reference/config.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/config.rst b/docs/reference/config.rst index fa3494299..642216c8f 100644 --- a/docs/reference/config.rst +++ b/docs/reference/config.rst @@ -159,7 +159,7 @@ path_sep_replace A string that replaces the path separator (for example, the forward slash ``/`` on Linux and MacOS, and the backward slash ``\\`` on Windows) when generating filenames with beets. -This option is related to ::ref:`replace`, but is distict from it for +This option is related to :ref:`replace`, but is distict from it for technical reasons. .. warning::