How to use the jrnl.util.slugify function in jrnl

To help you get started, we’ve selected a few jrnl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jrnl-org / jrnl / jrnl / exporters.py View on Github external
    make_filename = lambda entry: e.date.strftime("%Y-%m-%d_{0}.{1}".format(slugify(u(e.title)), format))
    for e in journal.entries:
github jrnl-org / jrnl / jrnl / plugins / text_exporter.py View on Github external
def make_filename(cls, entry):
        return entry.date.strftime(
            "%Y-%m-%d_{}.{}".format(slugify(str(entry.title)), cls.extension)
        )
github jrnl-org / jrnl / jrnl / export.py View on Github external
def make_filename(self, entry):
        return entry.date.strftime(
            "%Y-%m-%d_{}.{}".format(slugify(entry.title), self.extension)
        )