How is this different from the existing goto-line (g or :)?
On Thu, 4 May 2023 at 18:30, Kyle Evans <kvan...@gmail.com> wrote: > Hi, I have a feature request for a copy mode command, "goto". This would > accept a line number and optionally [,column]. Similar to top-line, > middle-line, and bottom-line. While those are more like area codes, this > would be an address to take the cursor to anywhere. My original idea was > just to operate within the pane. But, I think to minimize errors and > maximize usefulness, this is what I came up with.... > > I'll provide a rolling example for clarity. Let's say our pane is 4x8, > small for example sake. # is the cursor. It looks better in markdown, or > fixed with. > > A positive number places the cursor on a line starting from the bottom > left corner. > ``` > | [0/9]| > | | > | # | > | | > goto 2,3 > ``` > > A +number greater than lines on display would place the cursor on the top > line and move the pane back in history to accommodate. > ``` > |# [2/9]| > | | > | | > | | > goto 6 > ``` > > +1 refers to the last line on display. > An out of bounds column number moves the cursor to the end of the line. > ``` > | [2/9]| > | | > | | > | #| > goto 1,12 > ``` > > Line 0 refers to the latest line in history. > A negative column number move the cursor relative to where it was. > ``` > | [0/9]| > | | > | | > | # | > goto 0,-3 > ``` > > A negative line number refers to the absolute history line. Maybe add some > padding for context. > ``` > | [5/9]| > | # | > | | > | | > goto -8,2 > ``` > > It might also be useful to add a +line,column addendum to the position > indicator. > Following the example, this would be @ [5/9]+3,2 > > What do you guys think? > > -- > You received this message because you are subscribed to the Google Groups > "tmux-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tmux-users+unsubscr...@googlegroups.com. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/tmux-users/CAHJdJgMthSgU2PYQC8Ceksrucb3FqVJaN1vQUdmfTxWL3EnDtg%40mail.gmail.com > <https://groups.google.com/d/msgid/tmux-users/CAHJdJgMthSgU2PYQC8Ceksrucb3FqVJaN1vQUdmfTxWL3EnDtg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/CAEdLfcG8tudac9c%3DUw9O22MD3acpuXoSa_19KhKOe98buBQ30w%40mail.gmail.com.