这是indexloc提供的服务,不要输入任何密码
Skip to content

Feature request: Automatically scroll to only show only new section #399

@jvanoli

Description

@jvanoli

Have you searched existing Github issues to see if someone has already requested this feature?
Yes

Is your feature request related to a problem? Please describe.
No. just usability request.

Describe the solution you'd like
When I create a new block using Ctrl+Shift+Enter I would like the page to scroll up showing only the new active block.
The behaviour I like can be replicated by hitting Ctrl+Shift+Enter anywhere in the buffer and then followed by a good mouse wheel up action so only the new block is visible, and its line number 1 is at the top of the window.
After this the window looks "clean" to start typing.

Describe alternatives you've considered
I'm using AutoHotKey (Windows automation tool) script to achieve the desired result:

; Define the hotkey Ctrl + Shift + N
#HotIf WinActive("ahk_exe Heynote.exe") 
^+n::
{
    ; Send Ctrl + Shift + Enter
    Send("^+{Enter}")
    
    ; Scroll down the page by emulating a mouse wheel scroll
    Loop 10
    {
        ; Each WheelDown scroll is approximately 100 pixels
        Send("{WheelDown}")
        Sleep(50) ; Add a small delay between scrolls for smoother behavior
    }
}
Return

Additional context
Also when I start typing on this new block or note, the scroll automatically moves about 5 lines down, showing the last 4 lines of the previous block, I find this to be distracting. Would like to avoid this automatic scrolling when at the begining of the block. I do understand this automatice scroll of the 4-5 lines back is useful when typing on the same large block with existing lines, so the previous lines are shown. But when the section is new and there are no lines to show, I don't think the previous block should be shown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions