`GIT_PAGER=mdless git log` hangs
covracer opened this issue · 3 comments
covracer commented
GIT_PAGER=mdless git log
hangs. If I press control+c I get
^CTraceback (most recent call last):
6: from /usr/local/bin/mdless:23:in `<main>'
5: from /usr/local/bin/mdless:23:in `load'
4: from /var/lib/gems/2.7.0/gems/mdless-1.0.32/bin/mdless:18:in `<top (required)>'
3: from /var/lib/gems/2.7.0/gems/mdless-1.0.32/bin/mdless:18:in `new'
2: from /var/lib/gems/2.7.0/gems/mdless-1.0.32/lib/mdless/converter.rb:156:in `initialize'
1: from /var/lib/gems/2.7.0/gems/mdless-1.0.32/lib/mdless/converter.rb:623:in `convert_markdown'
/var/lib/gems/2.7.0/gems/mdless-1.0.32/lib/mdless/converter.rb:623:in `gsub!': Interrupt
Formatting a couple commits standalone works:
echo 'commit f4c228de2b75c8b435e528aef375a71b4e661891 (tag: v1.2.0, origin/main, origin/HEAD)
Author: James Braza <email@address.web>
Date: Thu Mar 23 14:24:12 2023 -0700
Fixing pandas deprecation warning (#2828)
### Background
This resolves a `pandas` `FutureWarning` deprecation warning that was
coming up.
### Changes
This PR
### Testing
- How did you verify your changes?
commit 53aded39a7ac7adb81cfd8c42d341ba191804bab
Author: Christopher Covington <email@address.web>
Date: Thu Mar 23 19:39:23 2023 +0000
Flavorful (#2825)
### Background
- It was bland
- Related links:
* https://firstlink.domain/?seek=find
* https://otherlink.domain/path
### Changes
- Add flavor' | mdless
(I've configured core.commentchar=@
in git to make including headers in commit messages easier.)
ttscoff commented
Yeah, mdless isn't designed to accept streaming input (via pipe), it
needs a Markdown file to read from.
…-Brett
On 23 Mar 2023, at 17:12, Christopher Covington wrote:
`GIT_PAGER=mdless git log` hangs. If I press control+c I get
```
^CTraceback (most recent call last):
6: from /usr/local/bin/mdless:23:in `<main>'
5: from /usr/local/bin/mdless:23:in `load'
4: from /var/lib/gems/2.7.0/gems/mdless-1.0.32/bin/mdless:18:in
`<top (required)>'
3: from /var/lib/gems/2.7.0/gems/mdless-1.0.32/bin/mdless:18:in
`new'
2: from
/var/lib/gems/2.7.0/gems/mdless-1.0.32/lib/mdless/converter.rb:156:in
`initialize'
1: from
/var/lib/gems/2.7.0/gems/mdless-1.0.32/lib/mdless/converter.rb:623:in
`convert_markdown'
/var/lib/gems/2.7.0/gems/mdless-1.0.32/lib/mdless/converter.rb:623:in
`gsub!': Interrupt
```
--
Reply to this email directly or view it on GitHub:
#83
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
ttscoff commented
Not to say it never could be, I just left off on the project before I
looked into ways to make that happen correctly…
…On 23 Mar 2023, at 17:12, Christopher Covington wrote:
`GIT_PAGER=mdless git log` hangs. If I press control+c I get
```
^CTraceback (most recent call last):
6: from /usr/local/bin/mdless:23:in `<main>'
5: from /usr/local/bin/mdless:23:in `load'
4: from /var/lib/gems/2.7.0/gems/mdless-1.0.32/bin/mdless:18:in
`<top (required)>'
3: from /var/lib/gems/2.7.0/gems/mdless-1.0.32/bin/mdless:18:in
`new'
2: from
/var/lib/gems/2.7.0/gems/mdless-1.0.32/lib/mdless/converter.rb:156:in
`initialize'
1: from
/var/lib/gems/2.7.0/gems/mdless-1.0.32/lib/mdless/converter.rb:623:in
`convert_markdown'
/var/lib/gems/2.7.0/gems/mdless-1.0.32/lib/mdless/converter.rb:623:in
`gsub!': Interrupt
```
--
Reply to this email directly or view it on GitHub:
#83
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
leder11011 commented
did you try:
GIT_PAGER=git log | mdless
I have same output piped from java to mdless and it works!