Use the core-package fuzzy-finder instead.
A file browser in modal Panel.
apm install modal-file-manager
open <pathToFileOrDir>
(works only with mac)You could use this File Manager as lib for Packages like
atom.pickDirectory (path) ->console.log path
"modal-file-manager": "git+https://github.com/mulian/modal-file-manager.git"
npm update
{ModalFileManagerView} = require 'modal-file-manager'modalFileManagerView = new ModalFileManagerViewdeep: 0 #see SettingsfilterDir : falsefilterFile : trueshowHidden : false#change options:modalFileManagerView.setOptionsdeep: 1modalFileManagerView.open "/", (file) ->console.log "selected file-/folder name: #{file.getBaseName()}"
@modalFileManagerView.setOptionsfilterDir = falsefilterFile = true
for example:
@modalFileManagerView.setOptionsfilterDir = /.app$/
Restrict the comfirmation to comfirm only Folder with Foldername.app (usefull for mac os apps) (same with .file)
Please let me know, if you use this Project as lib.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.