rabbit-slide-wikimatze-cmus-and-vim 2017.01.19.pre.2 → 2017.01.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cmus-and-vim.md +3 -63
- data/config.yaml +1 -1
- data/pdf/cmus-and-vim-cmus-and-vim.pdf +0 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03981cd06b5ce60a7fec9aebee00abe8d0e5ff03
|
4
|
+
data.tar.gz: 142c00c21eb79d308e15751f341592ed031397c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8758603e62d760ed5c8cd29dd412a933c026f39c0e4aa3b9c0aa966a22af68db9bc7f745d896f5cb578afa273eda4274613686cabae73ea8d4d5eca2277a7248
|
7
|
+
data.tar.gz: e297e4a93946e78e667405c79335273ea99100b4fefc49bdc8fb9186d982eeec5de6c89767fcabe843788c74bd35c0f2c0fe60dd6ada33ddb3d8539dc9ac9284
|
data/cmus-and-vim.md
CHANGED
@@ -42,7 +42,7 @@ author
|
|
42
42
|
{::note}(2){:/note}
|
43
43
|
|
44
44
|
|
45
|
-
# Play commands
|
45
|
+
# Play commands
|
46
46
|
|
47
47
|
- b ... plays next track
|
48
48
|
- z ... plays previous
|
@@ -51,16 +51,9 @@ author
|
|
51
51
|
- p/P ... change order of entries next/previous
|
52
52
|
|
53
53
|
|
54
|
-
# Play commands II
|
55
|
-
|
56
|
-
- `+|-` ... increase, decrease sound
|
57
|
-
- `C-f|C-b` ... page-down,page-up
|
58
|
-
- `C-r` ... repeat current track
|
59
|
-
|
60
|
-
|
61
54
|
# Play commands statuschanges I
|
62
55
|
|
63
|
-
- m ... cycle through play
|
56
|
+
- m ... cycle through play modi (all, album artist)
|
64
57
|
- M ... switch modes without interrupting the currently-playing song
|
65
58
|
- r ... repeat the playlist when ended (R in statusline)
|
66
59
|
|
@@ -68,7 +61,7 @@ author
|
|
68
61
|
# Play commands statuschanges II
|
69
62
|
|
70
63
|
- s ... shuffle (S in statusline)
|
71
|
-
- C ...
|
64
|
+
- C ... shuffle continue playing the next song (C in statusline)
|
72
65
|
|
73
66
|
|
74
67
|
# Fill queue and playlist
|
@@ -99,59 +92,6 @@ author
|
|
99
92
|
- `q` ... quit cmus
|
100
93
|
|
101
94
|
|
102
|
-
# Useful commands III
|
103
|
-
|
104
|
-
- `:invert` ... select all tracks which are not marked
|
105
|
-
- `:prev-view` ... toggle the last two views
|
106
|
-
|
107
|
-
|
108
|
-
# config cmus
|
109
|
-
|
110
|
-
- in `~/.config/cmus`
|
111
|
-
- `rc` ... configuration
|
112
|
-
- `autosave` ...
|
113
|
-
|
114
|
-
|
115
|
-
# My config
|
116
|
-
|
117
|
-
|
118
|
-
unbind -f common E
|
119
|
-
bind common E run easytag {}
|
120
|
-
|
121
|
-
unbind -f common +
|
122
|
-
bind common + vol +5%
|
123
|
-
|
124
|
-
unbind -f common -
|
125
|
-
bind common - vol -5%
|
126
|
-
|
127
|
-
# Vim like shortcuts to jump to the next/prev section
|
128
|
-
unbind -f common ^N
|
129
|
-
bind common ^N player-next
|
130
|
-
unbind -f common ^P
|
131
|
-
bind common ^P player-prev
|
132
|
-
{: lang="shell"}
|
133
|
-
|
134
|
-
|
135
|
-
# Get the cover
|
136
|
-
|
137
|
-
ALBUM_PATH=/$(cmus-remote -Q | grep file | cut -d'/' --complement -s -f1 | rev | \
|
138
|
-
cut -d'/' --complement -s -f1 | rev | sed -e 's/\s/\\ /g' | \
|
139
|
-
sed -e 's/(/\\(/g' | sed -e 's/)/\\)/g')/cover.jpg
|
140
|
-
ALBUM_NAME=$(cmus-remote -Q | grep -w 'tag album' | cut -d'~' --complement -f1 | \
|
141
|
-
cut -d' ' --complement -s -f1 | sed -e 's/\s/-/g')
|
142
|
-
|
143
|
-
eval notify-send -i $ALBUM_PATH $ALBUM_NAME
|
144
|
-
{: lang="shell"}
|
145
|
-
|
146
|
-
|
147
|
-
And the shortcut
|
148
|
-
|
149
|
-
unbind -f common I
|
150
|
-
bind common I shell bash ~/.config/cmus/album.sh
|
151
|
-
|
152
|
-
{: lang="shell"}
|
153
|
-
|
154
|
-
|
155
95
|
# vim-cmus
|
156
96
|
|
157
97
|
![](images/cmus_vim.png){:relative_height='100'}
|
data/config.yaml
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabbit-slide-wikimatze-cmus-and-vim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2017.01.19
|
4
|
+
version: 2017.01.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthias Günther
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rabbit
|
@@ -56,9 +56,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
56
|
version: '0'
|
57
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '0'
|
62
62
|
requirements: []
|
63
63
|
rubyforge_project:
|
64
64
|
rubygems_version: 2.5.1
|