You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When piping data into helix via stdin (echo "..." | hx) and the creating a new buffer via :new (without writing the first buffer), the data from the first buffer will be deleted.
I noticed that if I modify the stdin buffer before using :new it does not get deleted, I'm assuming this is because before it's modified it is wrongly considered an empty buffer, since I also noticed that :q works without prompting to save the buffer before leaving.
Reproduction Steps
I tried this:
echo "Hello, world!" | hx
:new
I expected this to happen:
A new scratch buffer is created alongside the data from stdin.
Instead, this happened:
The buffer created from stdin was deleted and a new scratch buffer replaced it.
Helix log
There was nothing written to the log during my testing.
Platform
Linux
Terminal Emulator
Konsole
Helix Version
22.12
The text was updated successfully, but these errors were encountered:
Summary
When piping data into helix via stdin (
echo "..." | hx
) and the creating a new buffer via :new (without writing the first buffer), the data from the first buffer will be deleted.I noticed that if I modify the stdin buffer before using
:new
it does not get deleted, I'm assuming this is because before it's modified it is wrongly considered an empty buffer, since I also noticed that:q
works without prompting to save the buffer before leaving.Reproduction Steps
I tried this:
echo "Hello, world!" | hx
:new
I expected this to happen:
A new scratch buffer is created alongside the data from stdin.
Instead, this happened:
The buffer created from stdin was deleted and a new scratch buffer replaced it.
Helix log
There was nothing written to the log during my testing.
Platform
Linux
Terminal Emulator
Konsole
Helix Version
22.12
The text was updated successfully, but these errors were encountered: