forked from marktext/marktext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactions.js
More file actions
33 lines (25 loc) · 772 Bytes
/
Copy pathactions.js
File metadata and controls
33 lines (25 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import bus from '../../bus'
export const newFile = (menuItem, browserWindow) => {
bus.$emit('SIDEBAR::new', 'file')
}
export const newDirectory = (menuItem, browserWindow) => {
bus.$emit('SIDEBAR::new', 'directory')
}
export const copy = (menuItem, browserWindow) => {
bus.$emit('SIDEBAR::copy-cut', 'copy')
}
export const cut = (menuItem, browserWindow) => {
bus.$emit('SIDEBAR::copy-cut', 'cut')
}
export const paste = (menuItem, browserWindow) => {
bus.$emit('SIDEBAR::paste')
}
export const rename = (menuItem, browserWindow) => {
bus.$emit('SIDEBAR::rename')
}
export const remove = (menuItem, browserWindow) => {
bus.$emit('SIDEBAR::remove')
}
export const showInFolder = (menuItem, browserWindow) => {
bus.$emit('SIDEBAR::show-in-folder')
}