]> gitweb.factorcode.org Git - factor.git/blob - basis/editors/macvim/macvim.factor
editors: allow them to be loaded in the load-all image
[factor.git] / basis / editors / macvim / macvim.factor
1 USING: editors editors.vim io.pathnames io.standard-paths kernel
2 namespaces ;
3 IN: editors.macvim
4
5 TUPLE: macvim < vim ;
6
7 editor-class [ T{ macvim } ] initialize
8
9 : find-macvim-bundle-path ( -- path/f )
10     "org.vim.MacVim" find-native-bundle [
11         "Contents/MacOS/Vim" append-path
12     ] [
13         f
14     ] if* ;
15
16 M: macvim find-vim-path find-macvim-bundle-path ;
17
18 M: macvim vim-ui? t ;
19
20 M: macvim editor-detached? t ;