modal-file-manager

A file browser in modal Panel.

mulian

1,725

2

0.3.1

MIT

GitHub

Depreciated

Use the core-package fuzzy-finder instead.

modal-file-manager package

A file browser in modal Panel.

A screenshot of modal file manager v0.1.0

Install & Open

  1. Install
  1. Open

Navigate

Settings

Use the Modal File Manager as lib

You could use this File Manager as lib for Packages like

  atom.pickDirectory (path) ->
    console.log path

Use Steps

  1. add following to your package.json in dependencies:
    "modal-file-manager": "git+https://github.com/mulian/modal-file-manager.git"
  1. in your Project root: npm update
  2. Use the ModalFileManagerView:
{ModalFileManagerView} = require 'modal-file-manager'
modalFileManagerView = new ModalFileManagerView
  deep: 0 #see Settings
  filterDir : false
  filterFile : true
  showHidden : false

#change options:
modalFileManagerView.setOptions
  deep: 1

modalFileManagerView.open "/", (file) ->
  console.log "selected file-/folder name: #{file.getBaseName()}"

Comfirmation Filter example

@modalFileManagerView.setOptions
  filterDir = false
  filterFile = true

Regular Expression

for example:

@modalFileManagerView.setOptions
  filterDir = /.app$/

Restrict the comfirmation to comfirm only Folder with Foldername.app (usefull for mac os apps) (same with .file)

Other

Please let me know, if you use this Project as lib.