Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore files and folders #70

Closed
SpartanJ opened this issue Sep 2, 2014 · 7 comments
Closed

Ignore files and folders #70

SpartanJ opened this issue Sep 2, 2014 · 7 comments
Labels
enhancement New feature or request major

Comments

@SpartanJ
Copy link
Owner

SpartanJ commented Sep 2, 2014

Original report by Yash pal (Bitbucket: codeyash, GitHub: codeyash).


Is there any function which supports adding files or folders in ignore list.

Like in a folder we want to leave particular folder by adding in ignore list.

Practically like .DS_Store should not be reported for modification or if we can add in ignore list.
DIR ( "/Users/yashpal/Documents/Projects/www/ivertis/" ) FILE ( ".DS_Store" ) has event Modified

@SpartanJ
Copy link
Owner Author

SpartanJ commented Sep 2, 2014

Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).


No, there isn't.
Since this can be done in many ways, i think this should be managed by the user. For example, you can filter to ignore or to accept the files, you can filter with wildcards or with regexps, it can be case sensitive or not. There too many options to cover and it's easy to implement. I don't thinks it should be part of the library.

@SpartanJ
Copy link
Owner Author

SpartanJ commented Sep 2, 2014

Original comment by Yash pal (Bitbucket: codeyash, GitHub: codeyash).


Its a very simple feature to build and very helpful and required in almost all projects.

Please don't reject. Open it for votes. Let's see how many needs this.

@SpartanJ
Copy link
Owner Author

SpartanJ commented Sep 2, 2014

Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).


Ok, i'll reopen it.

Now what i want is a implementation example of what you'll love to see in the library, how to filter, what to, etc.

@SpartanJ
Copy link
Owner Author

SpartanJ commented Sep 2, 2014

Original comment by Yash pal (Bitbucket: codeyash, GitHub: codeyash).


It should be simple

Part 1

Add Ignore list

  1. File
  2. Folder
  3. Regex based File/folder

addIgnore(QString name, bool isDir)

Where name can be 1-3

bool isDir is optional either take input from user or do it internally.

Part 2

ignoreOsFiles()

Also I've noted in Ubuntu and Mac there are some internal dir and file that reported for change like .DS_STORE , ubuntu folder ( need to research more to get exact names)

@SpartanJ
Copy link
Owner Author

SpartanJ commented Sep 3, 2014

Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).


Ok, maybe i'll add something like that in the near future. I'll think the simplest implementation possible, probably without regex, i don't want to use C++11 or add any dependency to the library, so, i'll think a simpler solution ( wildcards or just starts with, ends with, and some other filters ).

Part 2 is too specific, it's not necessary.

@SpartanJ
Copy link
Owner Author

SpartanJ commented Sep 3, 2014

Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).


I'll put this on hold until i decide how to implement it.

@SpartanJ
Copy link
Owner Author

Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).


Too much time passed and still i lack the interest to implement it.

@SpartanJ SpartanJ added major enhancement New feature or request labels Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request major
Projects
None yet
Development

No branches or pull requests

1 participant