How to use the memacs.lib.orgwriter.OrgOutputWriter function in memacs

To help you get started, we’ve selected a few memacs 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 novoid / Memacs / memacs / lib / memacs.py View on Github external
logging.debug("cfg: %s",
                          self.__config_parser.items(
                                        self.__use_config_parser_name))

        # handling autotagging
        autotag_dict = self.__handle_autotagfile()

        ## collect additional header lines:
        additional_headerlines = False
        if self._args.columns_header:
            additional_headerlines = '#+COLUMNS: ' + self._args.columns_header
        if self._args.custom_header:
            additional_headerlines = self._args.custom_header

        # set up orgoutputwriter
        self._writer = OrgOutputWriter(
            file_name=self._args.outputfile,
            short_description=self.__prog_short_description,
            tag=tag,
            test=test,
            append=self._args.append,
            autotag_dict=autotag_dict,
            number_entries=self._args.number_entries,
            additional_headerlines = additional_headerlines,
            timestamp_delta=self._args.timestamp_delta,
            inactive_timestamps=self._args.inactive_timestamps)