rabbit-slide-wikimatze-cmus-and-vim 2017.01.19.pre.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rabbit +1 -0
- data/README.md +24 -0
- data/Rakefile +17 -0
- data/cmus-and-vim.md +198 -0
- data/config.yaml +19 -0
- data/images/cat.png +0 -0
- data/images/cmus_vim.png +0 -0
- data/images/end.png +0 -0
- data/images/solid.png +0 -0
- data/images/streetfighter.png +0 -0
- data/pdf/cmus-and-vim-cmus-and-vim.pdf +0 -0
- metadata +68 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: beccf50d13494b300fcfc38935ad174fb67d6fa2
|
4
|
+
data.tar.gz: 551bc452edbac7e52cd297302ca66e276ce10544
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4982c6d1d6502046511fae3bfcac08ecb93ab69bb63db80fe69abeedde2852e90d7dc6da84267219ae97ba16a80134dee6c689ef4af48f9b128490f88ee1ecf9
|
7
|
+
data.tar.gz: af3b82a1588caf70f861dc69b87056ad3ceb8e5a0fcc3165cfbe28eaee0630a275ee185c4d9693462c9e2667ad484a2f91680f27a5ce6dacc241f98093ac4f75
|
data/.rabbit
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
cmus-and-vim.md
|
data/README.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# cmus and vim
|
2
|
+
|
3
|
+
The benefits, usage and tricks with cmus + integration in vim.
|
4
|
+
|
5
|
+
## For author
|
6
|
+
|
7
|
+
### Show
|
8
|
+
|
9
|
+
rake
|
10
|
+
|
11
|
+
### Publish
|
12
|
+
|
13
|
+
rake publish
|
14
|
+
|
15
|
+
## For viewers
|
16
|
+
|
17
|
+
### Install
|
18
|
+
|
19
|
+
gem install rabbit-slide--cmus-and-vim
|
20
|
+
|
21
|
+
### Show
|
22
|
+
|
23
|
+
rabbit rabbit-slide--cmus-and-vim.gem
|
24
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require "rabbit/task/slide"
|
2
|
+
|
3
|
+
# Edit ./config.yaml to customize meta data
|
4
|
+
|
5
|
+
spec = nil
|
6
|
+
Rabbit::Task::Slide.new do |task|
|
7
|
+
spec = task.spec
|
8
|
+
# spec.files += Dir.glob("doc/**/*.*")
|
9
|
+
# spec.files -= Dir.glob("private/**/*.*")
|
10
|
+
# spec.add_runtime_dependency("YOUR THEME")
|
11
|
+
end
|
12
|
+
|
13
|
+
desc "Tag #{spec.version}"
|
14
|
+
task :tag do
|
15
|
+
sh("git", "tag", "-a", spec.version.to_s, "-m", "Publish #{spec.version}")
|
16
|
+
sh("git", "push", "--tags")
|
17
|
+
end
|
data/cmus-and-vim.md
ADDED
@@ -0,0 +1,198 @@
|
|
1
|
+
# cmus and vim
|
2
|
+
|
3
|
+
author
|
4
|
+
: Matthias Günther
|
5
|
+
|
6
|
+
# cmus
|
7
|
+
|
8
|
+
{:relative_height='100'}
|
9
|
+
|
10
|
+
{::note}(1){:/note}
|
11
|
+
|
12
|
+
|
13
|
+
# Benefits
|
14
|
+
|
15
|
+
- customizable
|
16
|
+
- instant startup, even with thousands of tracks
|
17
|
+
- easy to use directory browser
|
18
|
+
|
19
|
+
|
20
|
+
# Browse file system and add tracks
|
21
|
+
|
22
|
+
- `5` ... go into the browse mode
|
23
|
+
- `a` ... add selection to library
|
24
|
+
- `D` ... remove selection from library
|
25
|
+
|
26
|
+
|
27
|
+
# Artist view
|
28
|
+
|
29
|
+
- `1` ... go into the mode
|
30
|
+
- `<space>` ... to see albums
|
31
|
+
|
32
|
+
|
33
|
+
# Library view
|
34
|
+
|
35
|
+
- `2` ... library view (sorted)
|
36
|
+
|
37
|
+
|
38
|
+
# Play commands
|
39
|
+
|
40
|
+
{:relative_height='100'}
|
41
|
+
|
42
|
+
{::note}(2){:/note}
|
43
|
+
|
44
|
+
|
45
|
+
# Play commands I
|
46
|
+
|
47
|
+
- b ... plays next track
|
48
|
+
- z ... plays previous
|
49
|
+
- c ... pause, continue
|
50
|
+
- x ... restart track
|
51
|
+
- p/P ... change order of entries next/previous
|
52
|
+
|
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
|
+
# Play commands statuschanges I
|
62
|
+
|
63
|
+
- m ... cycle through play modus (all, album artist)
|
64
|
+
- M ... switch modes without interrupting the currently-playing song
|
65
|
+
- r ... repeat the playlist when ended (R in statusline)
|
66
|
+
|
67
|
+
|
68
|
+
# Play commands statuschanges II
|
69
|
+
|
70
|
+
- s ... shuffle (S in statusline)
|
71
|
+
- C ... toggle continue playing the next song (C in statusline)
|
72
|
+
|
73
|
+
|
74
|
+
# Fill queue and playlist
|
75
|
+
|
76
|
+
- y ... add the selected song to playlist (3)
|
77
|
+
- e ... mark the songs to the queue (4) (FIFO)
|
78
|
+
|
79
|
+
|
80
|
+
# Useful commands
|
81
|
+
|
82
|
+
{:relative_height='100'}
|
83
|
+
|
84
|
+
{::note}(3){:/note}
|
85
|
+
|
86
|
+
|
87
|
+
# Useful commands I
|
88
|
+
|
89
|
+
- `:add ~/music` ... same as 'a'
|
90
|
+
- `:colorscheme` ... will change the colorscheme
|
91
|
+
- `:clear` ... will clear the current list
|
92
|
+
|
93
|
+
|
94
|
+
# Useful commands II
|
95
|
+
|
96
|
+
- `:save ~/music/playlist.lst`
|
97
|
+
- `:load ~/music/playlist.lst`
|
98
|
+
- `:unmark` ... clean the marked songs
|
99
|
+
- `q` ... quit cmus
|
100
|
+
|
101
|
+
|
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
|
+
# vim-cmus
|
156
|
+
|
157
|
+
{:relative_height='100'}
|
158
|
+
|
159
|
+
{::note}(4){:/note}
|
160
|
+
|
161
|
+
|
162
|
+
# vim-cmus I
|
163
|
+
|
164
|
+
- `:CmusCurrent` ... shows the information of current song
|
165
|
+
- `:CmusPrevious` ... plays previous song
|
166
|
+
- `:CmusNext` ... plays next song
|
167
|
+
|
168
|
+
|
169
|
+
# vim-cmus II
|
170
|
+
|
171
|
+
- `:CmusPause` ... stop playing the current song
|
172
|
+
- `:CmusPlay` ... continue playing song
|
173
|
+
- `:CmusStop` ... stop playing and go to the beginning
|
174
|
+
|
175
|
+
|
176
|
+
# Thank you
|
177
|
+
|
178
|
+
{:relative_height='100'}
|
179
|
+
|
180
|
+
{::note}(5){:/note}
|
181
|
+
|
182
|
+
|
183
|
+
# Images I
|
184
|
+
|
185
|
+
- (1): https://twitter.com/gamesyouloved/status/817907505917554688
|
186
|
+
- (2): https://twitter.com/realretroism/status/817559073776345088
|
187
|
+
|
188
|
+
|
189
|
+
# Images II
|
190
|
+
|
191
|
+
- (3): https://twitter.com/gamesyouloved/status/816799364207218694
|
192
|
+
- (4): https://twitter.com/gamesyouloved/status/816376785529176065
|
193
|
+
|
194
|
+
|
195
|
+
# Images III
|
196
|
+
|
197
|
+
- (5): https://twitter.com/gamesyouloved/status/816225738391220224
|
198
|
+
|
data/config.yaml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
id: cmus-and-vim
|
3
|
+
base_name: cmus-and-vim
|
4
|
+
tags: []
|
5
|
+
presentation_date: 2017/01/19
|
6
|
+
version: 2017.01.19-2
|
7
|
+
licenses: []
|
8
|
+
slideshare_id: cmus-andvimcmusandvim
|
9
|
+
speaker_deck_id: cmus-and-vim
|
10
|
+
ustream_id:
|
11
|
+
vimeo_id:
|
12
|
+
youtube_id:
|
13
|
+
author:
|
14
|
+
markup_language: :markdown
|
15
|
+
name: Matthias Günther
|
16
|
+
email: matze@wikimatze.de
|
17
|
+
rubygems_user: wikimatze
|
18
|
+
slideshare_user: MatthiasGnther3
|
19
|
+
speaker_deck_user: wikimatze
|
data/images/cat.png
ADDED
Binary file
|
data/images/cmus_vim.png
ADDED
Binary file
|
data/images/end.png
ADDED
Binary file
|
data/images/solid.png
ADDED
Binary file
|
Binary file
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rabbit-slide-wikimatze-cmus-and-vim
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2017.01.19.pre.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matthias Günther
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rabbit
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.0.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.0.2
|
27
|
+
description: The benefits, usage and tricks with cmus + integration in vim.
|
28
|
+
email:
|
29
|
+
- matze@wikimatze.de
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- ".rabbit"
|
35
|
+
- README.md
|
36
|
+
- Rakefile
|
37
|
+
- cmus-and-vim.md
|
38
|
+
- config.yaml
|
39
|
+
- images/cat.png
|
40
|
+
- images/cmus_vim.png
|
41
|
+
- images/end.png
|
42
|
+
- images/solid.png
|
43
|
+
- images/streetfighter.png
|
44
|
+
- pdf/cmus-and-vim-cmus-and-vim.pdf
|
45
|
+
homepage: http://slide.rabbit-shocker.org/authors/wikimatze/cmus-and-vim/
|
46
|
+
licenses: []
|
47
|
+
metadata: {}
|
48
|
+
post_install_message:
|
49
|
+
rdoc_options: []
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.3.1
|
62
|
+
requirements: []
|
63
|
+
rubyforge_project:
|
64
|
+
rubygems_version: 2.5.1
|
65
|
+
signing_key:
|
66
|
+
specification_version: 4
|
67
|
+
summary: cmus and vim
|
68
|
+
test_files: []
|