leehblue / texpander

Text expander for linux
GNU General Public License v3.0
251 stars 45 forks source link

Ignore hidden . files in texpander directory #36

Open MyriaCore opened 5 years ago

MyriaCore commented 5 years ago

I'm unsure if this is intended behavior, but files and folders of the form ~/.texpander/.* are still indexed by the script.

I have a ~/.texpander/.config/ folder, where I have a json file and a bash script that reads from the json file and writes to the ~/.texpander/ directory. They're all currently being indexed, dispite the fact that .config should be hidden.

I would think intended behavior would be that those files aren't available in the zenity window. I never used textexpander though, so I don't know how that handles it either.

MyriaCore commented 5 years ago

I did a quick fix for this by adding -not -path "${base_dir}/\.*" in the call to find. I'm gonna make a PR if anyone's interested.

MyriaCore commented 5 years ago

NVM, I totally didn't do the PR branching correctly. I'll fix it and re-do the request!