Qi Xiao

Results 250 comments of Qi Xiao

It will make sense for Elvish to choose the conj implementation automatically when recognizing a specific list splicing pattern. I added `conj` both as a stopgap solution before the optimization...

@lhecker Thanks! There are some reasons why the code works like this though: - IIUC Windows's `ReadConsoleInput` is more capable in representing keys with modifiers than VT sequences (which can't...

Oops, closed this by accident. Reopening

One note: this will necessarily be a feature of the REPL instead of the language itself. There are two reasons: When executing code non-interactively, an exception will always break out...

I've decided to implement the originally proposed `with` command as well: `tmp` is technically fine, but it can sometimes feel counter-intuitive (https://github.com/elves/elvish/issues/1776#issuecomment-2245282976)

The problem with a `dedent` command is that it's not possible for the parser to check the syntax. This means that a `dedent` command either has to always accept the...

Re the original feature request in the title: I don't see a use case listed other than removing the first newline in a multi-line literal, but multi-line literals are better...

The reason `testutil.Dedent` doesn't remove the common indentation is not so much about simplicity of implementation, but because this algorithm handles mixes of tabs and spaces poorly. Consider the following...

There is no equivalent to `-x` of bash, and there isn't any debugger yet.

A tracer and an interactive debugger can be complementary. I don't use interactive debuggers a lot, and there are two things more traditional CLI debuggers tend to suffer: * They...