file-tree-alternative icon indicating copy to clipboard operation
file-tree-alternative copied to clipboard

Opening note in folder with lots of notes will reset scroll position to the top

Open metronidazole opened this issue 2 years ago • 6 comments

If you have a lot of notes in a single folder, opening any note will reset the scroll position of notes back to the top.

This is a problem if you have a lot of notes in a folder as if you want to jump between notes, you have to keep scrolling back down which gets annoying fast.

Current situation

  • opening a note with file tree in a folder with lots of notes will reset the scroll position back to the top

Ideal situation

  • opening a note with file tree in a folder with lots of notes should maintain the current scroll position

metronidazole avatar Jul 13 '23 12:07 metronidazole

If you open a note in a new tab by using ctrl+click, you will notice that the file list does not scroll.

I made an modification to the main.js file in the plugin folder. I changed e=c.workspace.getLeaf(r) to e=c.workspace.getLeaf(!0), so a new tab is always created when a file is clicked.

bgwwg avatar Sep 30 '23 02:09 bgwwg

I just disabled this plugin because the file list would jump to the top when I would tap-click on a file using my Apple Trackpad. If it gets fixed, I might go back to using it.

s1011205 avatar Nov 08 '23 23:11 s1011205

Can you try if the last update helps with this issue? I changed a couple of things that should help with this issue

ozntel avatar Dec 03 '23 18:12 ozntel

Can you try if the last update helps with this issue? I changed a couple of things that should help with this issue

It's still happening (v2.4.2) but the frequency is about 50% less.

metronidazole avatar Dec 05 '23 00:12 metronidazole

@metronidazole Can you send me more details about times when it happens? Maybe some recording would be helpful so that I can identify the issue?

ozntel avatar Dec 05 '23 12:12 ozntel

Here is a video. You can see that occasionally when clicking on an item, the view will reset to the top of the folder and the item is not opened

https://github.com/ozntel/file-tree-alternative/assets/41497550/7d18b1ea-59b7-42e5-9087-07b0a69d9bdd

metronidazole avatar Dec 08 '23 21:12 metronidazole