Giter Club home page Giter Club logo

finderjs's People

Contributors

debloper avatar jaipradeesh avatar kumarrishav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

finderjs's Issues

Write tests for log method

  • console.log should only print if this.debugmode is true
  • Method should take 2 arguments.
  • Both argument should be printed in console.log.

`hidden: false` should hide hidden folders as well

As of now, passing hidden: false in constructor options hide only hidden files, i.e. files whose names begin with a dot. But this includes files from trash directories and other hidden directories that are intended for caching, e.g. /sdcard1/.TRASH-1000/.

So, the checkhidden method should also include folder names and check if any portion of the path begins with a dot.

Add tests

Add unit tests or I will start screaming soon.

Searching in a folder

Hello,
I working on an App for KaiOs.
How to restrict the search to a folder?

Cheers John

Write tests for checkhidden method

Write a separate spec for checkhidden method.

It should test if checkhidden:

  • always returns boolean
  • always returns false if this.hidden = false
  • returns false if filename begins with a dot.
  • returns false if file is inside a hidden directory (whose name begins with a dot)
  • always returns true if this.hidden = true

Put these tests in a new specfile at tests/methodSpec.js.

Method to set up a specific path

Is it possible to add a functionality that will allow to preset a specific path into FinderJS view? I mean, suppose we have the following "directory tree" (i.e. object):

+ root
     |
     + -- dir1
     + -- dir2
           |
           + -- file.txt

Then, we can do something like:

var finder = createFinderJS();
finder.navigate('/dir2/file.txt');

And FinderJS will navigate to this path like if one do it manually using mouse or keyboard. Or, if it is not planned, could you please give a tip how to introduce this functionality manually?

Picker images search all files with .jpg (images)

I want use FinderJs for pick/choose image in app in FirefoxOS. But i dont understand how i can find all files of images type(jpg) If I understand(I find here:http://stackoverflow.com/questions/23527190/file-picker-on-firefox-os and on this github) its depend on argument searchterm: finder.search(searchterm);. I try "." but result in debug was empty or searchComplete Array [ ".", 0 ] If I try search exist image (in firefox profile fake-card) How i show/write all images in device?
Tahnks

Write tests for matchname method

  • Method should return true if searchkey matches and this.checkhidden() is true.
  • Method should return false if searchkey matches and this.checkhidden() is false.
  • Name matching should be case sensitive if this.casesensitive is true.
  • Name matching should not be case sensitive if this.casesensitive is false.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.