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

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

Open
jgarte opened this issue Feb 8, 2022 · 8 comments

Comments

@jgarte
Copy link
Contributor

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.

Originally posted by @jgarte in #127 (comment)

@jgarte jgarte changed the title > Some of these, specifically those with [serde crates](https://serde.rs/#data-formats), are easy to add as both import/export formats. I tried the-way view 14 but my cursor gets stuck. When I press Ctrl+d it kills the whole terminal: Feb 8, 2022
@jgarte jgarte changed the title I tried the-way view 14 but my cursor gets stuck. When I press Ctrl+d it kills the whole terminal: I tried the-way view 14 but my cursor gets stuck. When I press Ctrl+d it kills the whole terminal. Feb 8, 2022
@Jarsop
Copy link
Contributor

Jarsop commented Feb 9, 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.

Originally posted by @jgarte in #127 (comment)

Please can you provide the snippet which raise that issue (as code block or gist) ? This can be useful to reproduce the problem :)

@jgarte
Copy link
Contributor Author

jgarte commented Feb 9, 2022

 λ the-way view 14

■ #14. guix package template | scheme :guix:package:

(define-public XXX
  (package
    (name "XXX")
    (version "XXX")
    (source
      (origin XXX))
    (build-system XXX)
    (home-page "XXX")
    (synopsis "XXX")
    (description "XXX")
    (license XXX)))

@Jarsop
Copy link
Contributor

Jarsop commented Feb 9, 2022

I tried your snippet and I can't reproduce your problem. Can you provide us more information about your environment as:

  • shell (bash, zsh, fish etc)
  • terminal (gnome-terminal, xterm, alacritty etc)
  • Do you use a terminal multiplexer (as tmux) ?
  • Any relevant info (as a custom theme for the-way)

@Jarsop
Copy link
Contributor

Jarsop commented Feb 9, 2022

Maybe you use Windows with cmder (I saw the lambda symbol at end of your prompt)

@jgarte
Copy link
Contributor Author

jgarte commented Feb 10, 2022

@Jarsop

shell is bash
terminal is st
no terminal multiplexer when I tested that
I was using this Guix package that I made.

Maybe there is a version mismatch in the Guix package that is causing the bug?

Ninjani added a commit that referenced this issue Feb 15, 2022
@Ninjani
Copy link
Member

Ninjani commented Feb 15, 2022

Does this happen with all of your snippets or just this one? One possibility is that something's going wrong with the ANSI codes. I've made a branch that clear ANSI styling at the end of each highlighted line - could you test this out?

@jgarte
Copy link
Contributor Author

jgarte commented Jul 11, 2022

Hi, sorry I'm late on this. Do you still have that branch I can test with?

Could you also provide the steps for testing?

Thanks

@Ninjani
Copy link
Member

Ninjani commented Jul 12, 2022

This has been merged to main now, is the issue still happening with the latest release?

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

3 participants