Breaking change "revert"

Single point of damage to my workflow was caused by X removal. Did anyone had success replicating old X with new behaviour?

define-command select-or-extend-lines %{
  try %{
    # At least one selection is not full, so select whole lines.
    execute-keys -draft '<a-K>\A^.+\n\z<ret>'
    execute-keys 'x'
  } catch %{
    execute-keys 'J'
  }
}

map global normal 'X' ': select-or-extend-lines<ret>'
2 Likes

perfect, thanks

I was hoping -itersel could raise to simplify the condition.

execute-keys -draft -itersel '<a-x>'