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

Feature request: .swiftbarignore file to specify ignored files, patterns or directories #358

Closed
dchevell opened this issue Jan 12, 2023 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@dchevell
Copy link

The two current mechanisms for ignoring files are:

  1. Start file/directory names with a dot
  2. set the hidden flag (i.e. chflags hidden <path>)

I'd like to suggest a potentially more robust method: .ignore files, a la .gitignore or .dockerignore.

It's not always possible to set up directories starting with dots - take node's node_modules or Python's __pycache__ folders. As for chflags, I can tell you that file syncing services (including iCloud) often mess these flags up, fail to sync them, or reset them. The most robust approach I can think of would be to have a .swiftbarignore file that allowed for the same kind of basic pattern matching .gitignore or .dockerignore files allow. Perhaps you would even consider shipping one with a few sane defaults to prevent the most obvious situations.

I can't contribute much in the way of swift code but I'd happily contribute docs, find some sane defaults, etc.

(let me know if I'm becoming annoying - I don't have any other pending requests/bugs though! Unless you want to add support for escaping | in menu text 😛)

@melonamin
Copy link
Contributor

Cool idea and reasoning behind it, not sure why it hadn't surfaced before.

let me know if I'm becoming annoying

You are not annoying, you are contributing in a very good way, keep it up!

Unless you want to add support for escaping | in menu text

I bet there is an obscure unicode vertical bar you can use instead 😈

melonamin added a commit that referenced this issue Apr 22, 2023
@melonamin melonamin added this to the 2.0 milestone Apr 22, 2023
@melonamin melonamin added the enhancement New feature or request label Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants