✨ Scroll and cursor position in file are lost when switching to another file and then back
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
No file or test is named in the issue. Start by reproducing the tab-switching flow in CodeEdit and trace where the open file's cursor and scroll state are handled; done means returning to a previously opened file restores both positions.
Written by the indexing model from the issue text.
Description
Description
When you navigate inside a file, then you go to another file keeping the previous one open and when you get back to the first file, the scroll position and of the cursor location in the first file are lost, so it automatically shows up the top of that file.
To Reproduce
- Open the file a.cpp and navigate through it so you go to a specific cpp function inside that file.
- Open the file b.cpp in another tab while keeping the file a.cpp open in its tab.
- When you get back to the opened tab of the file a.cpp, you are redirected to the top of the file a.cpp.
So when you are focusing much on a specific function in a.cpp and just wanted to check something related to that in b.cpp, when you get back to the open tab of a.cpp, you completely lost the position of the cursor on the function that you were working on.
Expected Behavior
The position of the cursor in the open file that you left open in a tab for a while should be the same when you get back to it.
Version Information
CodeEdit: [0.3.2]
macOS: [14.1.2 (23B92)]
Additional Context
No response
Screenshots
No response
- Dominant language
- Swift
- Stars
- 23k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CodeEditApp/CodeEdit
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
CodeEditApp/CodeEdit#2190 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 15/100
CodeEditApp/CodeEdit#2195 · 7 reactions ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
CodeEditApp/CodeEdit#2185 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
CodeEditApp/CodeEdit#2181 ·
-
creashes on starting Openbug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
CodeEditApp/CodeEdit#2180 ·
All issues in CodeEditApp/CodeEdit
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
uttrflow/uttrflow-swift#1439 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
googleapis/google-cloud-swift#1151 ·
-
`--app` focus through the daemon can pick an off-screen window and refuse with `axElementNotFound` Openclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster no-stale P1
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
code health
Difficulty 1/5 Under an hour Newbie friendliness 72/100
apple/coreai-models#288 ·