neovim/runtime/lua
Justin M. Keyes 9b028bd64f
refactor(vim.iter)!: rename xxback() => rxx() #28503
Problem:
vim.iter has both `rfind()` and various `*back()` methods, which work
in "reverse" or "backwards" order. It's inconsistent to have both kinds
of names, and "back" is fairly uncommon (rust) compared to python
(rfind, rstrip, rsplit, …).

Solution:
- Remove `nthback()` and let `nth()` take a negative index.
  - Because `rnth()` looks pretty obscure, and because it's intuitive
    for a function named `nth()` to take negative indexes.
- Rename `xxback()` methods to `rxx()`.
  - This informally groups the "list-iterator" functions under a common
    `r` prefix, which helps discoverability.
- Rename `peekback()` to `pop()`, in duality with the existing `peek`.
2024-04-26 08:43:29 -07:00
..
nvim fix(healthcheck): expand vimrc variable (#28379) 2024-04-17 14:31:13 +08:00
provider fix(checkhealth): error in node.js check #28348 2024-04-15 09:23:22 -07:00
vim refactor(vim.iter)!: rename xxback() => rxx() #28503 2024-04-26 08:43:29 -07:00
_vim9script.lua refactor(lua): rename tbl_islist => islist 2024-04-21 17:08:07 +02:00
coxpcall.lua build(lua): vendor coxpcall 2023-09-10 11:43:37 +02:00
editorconfig.lua fix(editorconfig): syntax error regression 2024-03-11 10:06:57 +00:00
man.lua fix(man): pass modifiers also to :tag (#27878) 2024-03-16 09:56:58 +08:00
tohtml.lua feat(lua): deprecate vim.tbl_add_reverse_lookup 2024-03-07 10:24:34 +01:00