nb icon indicating copy to clipboard operation
nb copied to clipboard

Ignoring files

Open NJAldwin opened this issue 2 years ago • 3 comments

I've been trying out nb across a couple of environments and I love it so far!

I often edit my files with emacs, which leaves <filename>~ and #<filename># files lying around in directories. I have these files ignored from git with my global gitignore (ref: Emacs gitignore); however, I've noticed they're still appearing in the index files nb uses, as well as in the nb cli itself.

The current behavior makes sense -- a user might have local files that are gitignored but might still want to view/edit them in nb.

However, I'd love to be able to explicitly denylist files like these from nb. Is there any way to apply global filters? a .nbignore file somewhere, perhaps?

Apologies if this is documented somewhere, or if it's a dupe issue -- I did a quick search in both places and didn't see anything relevant. Maybe I'm the only one using emacs here 😄

NJAldwin avatar Feb 22 '22 23:02 NJAldwin

Hi @NJAldwin, I published a new version, 6.9.4, that skips common editor temp files automatically as a first iteration for this feature, which can be expanded to be more configurable. Please try upgrading and let me know if the issue is resolved.

xwmx avatar Feb 27 '22 22:02 xwmx

Seems to be working correctly now. nb with emacs org-mode is really, really good.

doolin avatar Feb 27 '22 23:02 doolin

Glad you like it! :blush:

xwmx avatar Feb 28 '22 02:02 xwmx