Omnikar

Results 93 comments of Omnikar

@extrawurst I could try to implement it, what keybind should it have?

Yeah sorry, I've been busy. I should have time now.

How do I get the keybind to appear in this bar at the bottom?

Actually, I feel like we should instead be marking buffers created from stdin as modified, since they contain unsaved content and should be protected from being lost, right?

> I'm not sure how useful it would be (for example for undoing) but it's intuitive to me that the text from stdin would be a revision in the history...

How should I go about marking stdin scratch buffers as modified? Create them as an empty scratch buffer then add the text given by stdin as a change?

In the `new_file_from_stdin` function in `helix_view::editor`, creating an empty `Document` using `Document::default()` rather than the current document creation via `Document::from` does not take the `encoding` value, and the `.set_encoding` method...

> I think you should just be able to use `doc.line_ending = encoding`, no? `encoding` is of type `&encoding::Encoding`. `Document::set_encoding` takes type `&str`. `Document::line_ending` is of type `helix_core::line_ending::LineEnding`.