Skip to content

tnker/vim-sencha-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-sencha-util

sencha vim plugin

attention

  • require python 2.7+
  • require projects made with Sencha Command

install

NeoBundle 'tnker/vim-sencha-util'

faetrue

  • MVVM file toggle switch
  • Jump to the corresponding file from the classpath
  • Jump to the corresponding handler has been written with the view controller
  • Jump to the xtype name file

Example Application Code

app/
├ model/
├ store/
├ view/
| └ main/
|  ├ MainController.js
|  | ├ onClickButton()
|  | └ onConfirm()
|  ├ MainModel.js
|  └ Main.js
└ Application.js

MVVM file toggle switch

image

:SenchaMVVMToggle

Toggle filename rule

View name as a prefix searches for each file.

[Hoge].js
[Hoge]Model.js
[Hoge]Controller.js

Jump to the corresponding file from the classpath

image

:SenchaParserReadCurrentLine

Support format

  • Ext.xxx.xxx
    • Search for standard class package.
  • Xxx.xxx.xxx
    • Find the package that you created yourself.(under the app directory)

Jump to the corresponding handler has been written with the view controller

image

:SenchaParserReadCurrentLine

Jump to the xtype name file

image

:SenchaParserReadCurrentLine

support version

  • Sencha Touch 2.x
  • Sencha Ext JS 5.x
  • Sencha Ext JS 6.x (In the response)

setting sample

map <silent> <C-@> :SenchaMVVMToggle<CR>
map <silent> <C-f> :SenchaParserReadCurrentLine<CR>

About

sencha vim plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published