#93 switch-buffer default to lowercase

已關閉
nuclearkev6 月之前創建 · 4 條評論

Similarly to isearch, I'd like switch-buffer to compare things lowercase-only unless an uppercase character is input.

Similarly to isearch, I'd like switch-buffer to compare things lowercase-only unless an uppercase character is input.

Not sure I'm going to do this because sometimes you want it to be lowercase only and uppercase only...

Not sure I'm going to do this because sometimes you want it to be lowercase only and uppercase only...

This issue might be changed to something else. I'm not planning on adding fuzzy search. I'd like a way to list the buffers and be able to select them somehow.

This issue might be changed to something else. I'm not planning on adding fuzzy search. I'd like a way to list the buffers and be able to select them somehow.

To reduce complexity, what I don't want:

  • msgline to be expandable
  • buffer-list buffer (or other interactive buffers)
  • print the list at point
    • the issue here is that now you have to make 2 actions or even 3 actions just to select the buffer. For example, if you C-x b and couldn't find the buffer then you'd have to C-g, print it at the point, copy it or just note it mentally, delete the list, then C-x b and paste it or tab it.
  • long horizontal list in the msgline.
To reduce complexity, what I don't want: - msgline to be expandable - buffer-list buffer (or other interactive buffers) - print the list at point - the issue here is that now you have to make 2 actions or even 3 actions just to select the buffer. For example, if you `C-x b` and couldn't find the buffer then you'd have to `C-g`, print it at the point, copy it or just note it mentally, delete the list, then `C-x b` and paste it or tab it. - long horizontal list in the msgline.

I think what I've like to do is this:

When in switch-buffer, C-c will cause ait to close temporarily and display a list of all the buffers that are open with numbers by them. Then you input the number and ait will switch to that one. I think I'll still allow a switch-command flag to override this.

This keeps the code simple in ait (if I were to want a temp buffer there would have to be a way to scroll in the buffer if you had tons of buffers open) and keeps it portable without requiring pick(1) or another program while also allowing the user to make the experience how they'd like.

The downfall of this approach is the lack of "built-in" feel. But ait is designed to feel like a part of the system, not a system in itself.

I think what I've like to do is this: When in switch-buffer, `C-c` will cause ait to close temporarily and display a list of all the buffers that are open with numbers by them. Then you input the number and ait will switch to that one. I think I'll still allow a switch-command flag to override this. This keeps the code simple in ait (if I were to want a temp buffer there would have to be a way to scroll in the buffer if you had tons of buffers open) and keeps it portable without requiring pick(1) or another program while also allowing the user to make the experience how they'd like. The downfall of this approach is the lack of "built-in" feel. But ait is designed to feel like a part of the system, not a system in itself.
Kevin "The Nuclear" Bloom 在代碼提交 3 周之前 中引用了該問題
登入 才能加入這對話。
正在加載...
取消
保存
尚未有任何內容