Ethan P.

Results 138 comments of Ethan P.

> https://github.com/sharkdp/fd/blob/0335cc362b2c830c24b957504a7cb1f7cd623a44/src/filesystem.rs#L12-L34 I adapted it to work in the Rust playground, and it works for everything except parent directories: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=2e03fcb23e87920e543cd54d300d207c ``` "/test" -> "/test" "test" -> "/some/example/pwd/test" "./test" -> "/some/example/pwd/test"...

After some testing, it doesn't seem like it handles Windows paths. It would also require a slight amount of boilerplate, too. I'm going to look into finding a crate dedicated...

Unfortunately, `less` isn't aware of the file that `bat` is reading. It would be possible to manually add the file name to the `less` prompt, though: ``` less -M -PM'some_file\.txt...

A side note to this: I've been experimenting with a way to generalize the `StyleComponent` struct. I came up with a way to do that, but it involves making a...

> As for the implementation, I'm not sure I can follow why we would even need a fn provides(&self) -> &[Self] function. This was just my experimenting, but my idea...

I would absolutely love to have Typora as a plugin for VSCode. The built-in editor only does split view, and the existing alternatives are either only WYSIWYG or have some...

Huh, interesting. This seems like a pretty useful feature! I might take a crack at it once my finals are over for the semester if I have the time :)

Another potential solution: #2444. Support for `LESSOPEN`/`LESSCLOSE` is not yet included in release bilds by default, but if/when it is, it would be possible to use it to run pretty...

I'm going to try and tackle this issue, since ANSI escape sequences (and the parsing of) is my domain of expertise :) > Our code for ANSI escape passthrough is...

Fixed in #2856: ![image](https://github.com/sharkdp/bat/assets/32112321/5310b661-7be0-427c-9ab7-27d3b1ad1dd5) It actually *should* have been fixed in #2544, but I didn't account for SGR sequences that combine text attributes with colors, so it ended up grouping...