Ok, is there anyway to make tmux go to a line number that is shown on the 
screen? It seems that goto-line only works for lines that are not visible. 
For example, in Vim you can enter the command ":7" which will move the 
cursor to line 7. Based on the tmux manual, that's what I thought the 
goto-line function did.

On Sunday, December 15, 2024 at 4:37:33 AM UTC-5 Nicholas Marriott wrote:

> goto-line will be from the start of the history, you can probably work if 
> out with scroll_position and/or history_lines as well.
>
> On Sun, 15 Dec 2024, 09:35 Trevor Avant, <trevo...@gmail.com> wrote:
>
>> That would work if there is a way to return to that line number later 
>> (something like "goto-cursor-y"). The only thing I know about is goto-line, 
>> which seems to reference a line numbering system different than 
>> copy_cursor_y (on my computer, it seems to reference the hidden lines that 
>> do not appear on the screen).
>>
>> On Sunday, December 15, 2024 at 1:48:51 AM UTC-5 Nicholas Marriott wrote:
>>
>>> How about copy_cursor_y?
>>>
>>> On Sun, 15 Dec 2024, 06:43 Trevor Avant, <trevo...@gmail.com> wrote:
>>>
>>>> I would like to get the line number the cursor is on. I believe that 
>>>> tmux keeps track of this information as it has the goto-line function. 
>>>> Ultimately I would like to use this information to get the line number 
>>>> after a search-backward command, or get the line number after 
>>>> double-clicking the line. 
>>>>
>>>> -- 
>>>> 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+...@googlegroups.com.
>>>> To view this discussion, visit 
>>>> https://groups.google.com/d/msgid/tmux-users/10adf3fd-8323-41ab-bd72-8e4274c46b10n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/tmux-users/10adf3fd-8323-41ab-bd72-8e4274c46b10n%40googlegroups.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+...@googlegroups.com.
>>
> To view this discussion, visit 
>> https://groups.google.com/d/msgid/tmux-users/c1711584-4ccf-4f2d-91a1-6af014affe3bn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tmux-users/c1711584-4ccf-4f2d-91a1-6af014affe3bn%40googlegroups.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, visit 
https://groups.google.com/d/msgid/tmux-users/35cde814-aec3-4fe4-89cd-23cca45d448an%40googlegroups.com.

Reply via email to