22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# File 'lib/micro/menu/configurations.rb', line 22
def init(path = nil)
path ||= CONFIGURATION_PATHS.first
return if File.exist?(path)
File.write(path, <<~CONFIG)
---
version: 0.1
title: apps
settings:
editor: 'nvim'
options:
- name: 'DuckDuckGo /Search'
value: duckduckgo
type: link
execute: 'https://duckduckgo.com'
- name: '{{github}} Github'
value: github
type: link
execute: 'https://github.com'
- name: '{{github}} Github /Pull Requests'
value: github_pulls
type: link
execute: 'https://github.com/pulls?q=is%3Apr+is%3Aopen+author%3A%40me+archived%3Afalse+sort%3Aupdated-desc'
- name: '{{github}} Github /Issues'
value: github_issues
type: link
execute: 'https://github.com/issues?q=is%3Aissue+is%3Aopen+author%3A%40me+archived%3Afalse+sort%3Aupdated-desc'
- name: '{{github}} Github /Profile'
value: github_profile
type: link
execute: 'https://github.com/dvinciguerra'
- name: 'Rubygems'
value: rubygems
type: link
execute: 'https://rubygems.org'
- name: 'File Explorer'
value: files
type: command
execute: 'ranger ${pwd}'
- name: 'Tmux'
value: tmux
type: command
execute: 'tmux'
- name: 'Tmux /New Window'
value: tmux_new_window
type: command
execute: 'tmux new-window'
- name: 'Tmux /Kill Window'
value: tmux_kill_window
type: command
execute: 'tmux kill-window'
CONFIG
end
|