Questions tagged «plugin-ctrlp»


2
如何使ctrlp更好地匹配文件名?
我的项目有以下文件: $ find . -type f -and -name 'peop*' ./app/assets/stylesheets/admin/sections/people.css.sass ./app/controllers/admin/people_controller.rb 当我厌倦了打字时:e app/assets/stylesheets/admin/sections/people.css.sass,我认为ctrlp可能是保存某些打字的好方法。但是,我无法以一种我认为理智的方式来匹配文件。 首先,我使用<C-p>和键入peop,这给了我这些结果(“第一”匹配在底部): > app/models/attribute_group.rb > app/models/contract_template.rb > app/policies/contract_policy.rb > app/uploaders/photo_uploader.rb > app/policies/invoice_policy.rb > app/views/layouts/pdf.pdf.haml > app/uploaders/logo_uploader.rb > app/models/property_object.rb > app/policies/person_policy.rb > app/policies/photo_policy.rb >>> peop_ 这些结果是可怕的。peop它们中都没有文件。即使我将其扩展为people: > app/policies/contract_template_policy.rb > app/models/concerns/exportable.rb > app/models/contract_template.rb > app/uploaders/photo_uploader.rb > app/uploaders/logo_uploader.rb > app/views/admin/people/_show.html.haml > …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.