@@ -26,7 +26,7 @@ A plugin registers using
26
26
Plugins.register(metadata, enable: fn, disable: ?fn)
27
27
```
28
28
where
29
- - ` metadata ` : For the detailed format, read the type definitions in [ plugins.ts] ( ../src/assets/ ts/plugins.ts )
29
+ - ` metadata ` : For the detailed format, read the type definitions in [ plugins.ts] ( ../src/ts/plugins.ts )
30
30
- name: string
31
31
This will be displayed to the user in options. It should not be changed!
32
32
- version: number
44
44
Plugins are generally disabled by default.
45
45
46
46
In the UI, you can enable your plugin from the plugins section of the Settings menu.
47
- You can make it enabled by default, in [ settings.ts] ( ../src/assets/ ts/settings.ts ) .
47
+ You can make it enabled by default, in [ settings.ts] ( ../src/ts/settings.ts ) .
48
48
49
49
## Using the API
50
50
@@ -74,7 +74,7 @@ Actions may optionally accept motions and do something with the motion
74
74
(e.g. move the cursor according to the movement, or delete text according to the movement).
75
75
To accept a motion, an action's mapping must have a special key '<motion >' which means any sequence for a motion.
76
76
77
- For other example usages, see the folder [ ` src/assets/ts/definitions ` ] ( ../src/assets/ ts/definitions ) , and the easy-motion plugin.
77
+ For other example usages, see the folder [ ` src/assets/ts/definitions ` ] ( ../src/ts/definitions ) , and the easy-motion plugin.
78
78
79
79
```
80
80
api.registerMode(metadata) -> mode
@@ -95,7 +95,7 @@ You can also manually call each deregister, but this is not recomended
95
95
api.deregisterDefaultMappings(mode, mappings)
96
96
```
97
97
98
- See [ ` keyDefinitions.ts ` ] ( ../src/assets/ ts/keyDefinitions.ts ) for detailed schema for the metadata of each of these.
98
+ See [ ` keyDefinitions.ts ` ] ( ../src/ts/keyDefinitions.ts ) for detailed schema for the metadata of each of these.
99
99
100
100
#### vimflowy internals
101
101
0 commit comments