When you switch between tabs (or close uBo/browser) the cursor automatically jump to the bottom in the filter textarea of 'My Filters' tab.
Make uBo remember/restore the cursor position in 'My Filters' tab if you switch between tabs or close uBo/browser.
I don't think this is possible. You are changing the focus on the same program, so the cursor position is gone. To my knowledge, you are asking about a feature found in real editors, not browser addons.
@Atavic It's definitely possible, CodeMirror should know both the scroll and cursor position. Ace knows them for sure.
Should be rather straightforward using LocalStorage. I can PR but I do question the usefulness of such feature.
I do question the usefulness of such feature.
I think the idea is that when working in a specific area of the filter list, most likely you want to resume work from the same point -- just like opening the dashboard auto-select the last pane used. In latest dev builds I removed the auto-scroll to the end of the list -- I ended up finding it annoying just like @SMed79 found this annoying, but to go to the last cursor position does make sense. Probably best to write to localStorage once when the pane is about to unload.
Probably best to write to localStorage once when the pane is about to unload.
Yes, that's what I meant.
resume work from the same point
Hum, I like dropping the cursor to the very end better...
Either way, I guess we need to debug https://github.com/gorhill/uBlock/issues/3701 first.
Clarification: cursor is restored to the beginning of the line.
Yes, I didn't think restoring the column would be very useful (it's how I implemented it at first).
Most helpful comment
I think the idea is that when working in a specific area of the filter list, most likely you want to resume work from the same point -- just like opening the dashboard auto-select the last pane used. In latest dev builds I removed the auto-scroll to the end of the list -- I ended up finding it annoying just like @SMed79 found this annoying, but to go to the last cursor position does make sense. Probably best to write to localStorage once when the pane is about to unload.