1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 01:50:05 +08:00

refactor(tools#mpv)!: change default musics_directory

BREAKING CHANGE: `~/Music` is standard on macOS and
also on FreeDesktop's XDG.
This commit is contained in:
Shidong Wang 2021-10-14 23:45:36 +08:00
parent 2b40c524e8
commit 56b9d14e9a
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848
4 changed files with 7 additions and 5 deletions

View File

@ -22,7 +22,8 @@
" The following options can be used with this layer: " The following options can be used with this layer:
" "
" 1. `mpv_interpreter`: set the path of `mpv`. " 1. `mpv_interpreter`: set the path of `mpv`.
" 2. `musics_directory`: set the path of directory where to store musics. " 2. `musics_directory`: set the path of directory where to store musics. The
" default directory is `~/Music`
" "
" @subsection Key bindings " @subsection Key bindings
" > " >
@ -36,7 +37,7 @@
if exists('s:musics_directory') if exists('s:musics_directory')
finish finish
else else
let s:musics_directory = '~/Musics' let s:musics_directory = '~/Music'
let s:mpv_interpreter = 'mpv' let s:mpv_interpreter = 'mpv'
let s:loop_mode = 'random' let s:loop_mode = 'random'
let s:stop_mpv = 0 let s:stop_mpv = 0

View File

@ -4573,7 +4573,8 @@ LAYER OPTIONS
The following options can be used with this layer: The following options can be used with this layer:
1. `mpv_interpreter`: set the path of `mpv`. 1. `mpv_interpreter`: set the path of `mpv`.
2. `musics_directory`: set the path of directory where to store musics. 2. `musics_directory`: set the path of directory where to store musics. The
default directory is `~/Music`
KEY BINDINGS KEY BINDINGS

View File

@ -30,7 +30,7 @@ tools#mpv 模块默认并未启用,如果需要启用该模块,需要在配
## 模块选项 ## 模块选项
- `musics_directory`: 设置音乐存放文件夹 - `musics_directory`: 设置音乐存放文件夹,默认的文件夹是`~/Music`。
- `mpv_interpreter`: mpv 可执行命令路径 - `mpv_interpreter`: mpv 可执行命令路径
- `loop_mode`: 循环模式,默认是 `random` - `loop_mode`: 循环模式,默认是 `random`

View File

@ -29,7 +29,7 @@ To use this configuration layer, add it to your `~/.SpaceVim.d/init.toml`.
## Options ## Options
- `musics_directory`: the directory of musics - `musics_directory`: the directory of musics. By default this option is `~/Music`.
- `mpv_interpreter`: mpv executable path - `mpv_interpreter`: mpv executable path
- `loop_mode`: loop mode, default is `random` - `loop_mode`: loop mode, default is `random`