the-way icon indicating copy to clipboard operation
the-way copied to clipboard

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

Open jgarte opened this issue 3 years ago • 8 comments

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 https://github.com/out-of-cheese-error/the-way/issues/127#issuecomment-1032193663

jgarte avatar Feb 08 '22 22:02 jgarte

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 :)

Jarsop avatar Feb 09 '22 17:02 Jarsop

 λ 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)))

jgarte avatar Feb 09 '22 18:02 jgarte

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 avatar Feb 09 '22 19:02 Jarsop

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

Jarsop avatar Feb 09 '22 19:02 Jarsop

@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?

jgarte avatar Feb 10 '22 15:02 jgarte

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?

Ninjani avatar Feb 15 '22 20:02 Ninjani

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

jgarte avatar Jul 11 '22 23:07 jgarte

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

Ninjani avatar Jul 12 '22 08:07 Ninjani