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

Support more export formats #127

Open
jgarte opened this issue Feb 7, 2022 · 3 comments
Open

Support more export formats #127

jgarte opened this issue Feb 7, 2022 · 3 comments

Comments

@jgarte
Copy link
Contributor

jgarte commented Feb 7, 2022

Here are some formats that might be relevant taken from jrnl for inspiration:

  --format TYPE         Display selected entries in an alternate format.
                        TYPE can be: boxed, dates, fancy, json, markdown, md,
                        pretty, short, tags, text, txt, xml, or yaml.
                        Optional parameters:

Not all apply but having yaml, markdown, xml, and plain text output of all or a selected range of snippets might be useful.

WDYT?

@Ninjani
Copy link
Member

Ninjani commented Feb 7, 2022

Some of these, specifically those with serde crates, are easy to add as both import/export formats.

plaintext / markdown would be difficult to support as an import format, but easier for export. What would be the difference between plaintext and running the-way view?

@jgarte
Copy link
Contributor Author

jgarte commented Feb 8, 2022

Some of these, specifically those with serde crates, are easy to add as both import/export formats.

I primarily would like to have markdown and plaintext export.

sexps would be awesome too!

plaintext / markdown would be difficult to support as an import format, but easier for export. What would be the difference between plaintext and running the-way view?

It requires an index so I would need to write a for loop to get all the snippets out. I'd prefer to be able to just dump all the snippets to stdout or to dump snippets to stdout filtered by tags, etc... from the CLI directly.

I tried the-way view 14 but my cursor gets stuck. When I press Ctrl+d it kills the whole terminal:

2022-02-07-231638_1573x876_scrot

I'm running the-way 0.15.0.

@Ninjani
Copy link
Member

Ninjani commented Feb 8, 2022

It requires an index so I would need to write a for loop to get all the snippets out. I'd prefer to be able to just dump all the snippets to stdout or to dump snippets to stdout filtered by tags, etc... from the CLI directly.

Ah oops I meant the-way list which has filtering options.

I tried the-way view 14 but my cursor gets stuck. When I press Ctrl+d it kills the whole terminal:

This shouldn't happen as it's just a print statement - could you file this as a separate issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants