Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Cursor position forgotten between tabs #6662

Closed
atom/tabs
#150

Description

@adamreisnz

When you are working in multiple files and going back and forth between the file tabs, the cursor position for that tab is forgotten and you can't type text right away.

This is rather frustrating behaviour, as it forces you to grab your mouse and click somewhere in the code before you can start typing.

Sublime remembers the cursor position per tab/file, so that when you go back to a tab, the cursor is at the position where you left off, and you can start typing right away.

Can this be enabled for Atom as well? I couldn't find a package that does it.

Activity

  1. veloxy commented on May 6, 2015

    @veloxy

    👍

    I just switched to atom and I agree that it is very annoying that the cursor isn't remembered when switching tabs. (OSX)

  2. lee-dohm commented on May 6, 2015

    @lee-dohm
    Contributor

    I can't reproduce this behavior using Atom v0.197.0-3c6e6e4 on Mac OS X 10.10.3. I have four tabs open (each with a cursor at a specific different position) and when I use Ctrl+Tab to switch between them, the cursor is always in the position where I left it for that tab.

    Can you give a specific set of steps to reproduce the issue?

  3. mnquintana commented on May 6, 2015

    @mnquintana
    Contributor

    I can reproduce this in Atom 0.197.0-3c6e6e4 in safe mode on OS X 10.10.3 – basically, when you switch between tabs with Ctrl-Tab or clicking on a tab, the row where you left your cursor will be highlighted, but there will be no visible cursor, and trying to move the cursor with the arrow keys won't work.

    I think this might actually be a fairly straightforward fix – looks like it's because switching tabs doesn't refocus the editor element.

  4. veloxy commented on May 6, 2015

    @veloxy

    @mnquintana That is the issue I have, except it occurs when clicking the tabs, ctrl+tab works fine. (OSX 10.10.3, Atom 0.196.0)

    6jjjs6qgnd

  5. mnquintana commented on May 6, 2015

    @mnquintana
    Contributor

    @veloxy or @andya9 Would you mind posting a screencap with Ctrl-Tab? I do get the same issue with Ctrl-Tab so I want to get a better idea of what it looks like for you.

  6. veloxy commented on May 6, 2015

    @veloxy

    This is the behavior with Ctrl-Tab, the cursor keeps its position and i can just start typing after ctrl-tabbing to a different tab.

    atom-ctrl-tab

    The issue with clicking also occurs on Windows 8.1

  7. self-assigned this
    on May 6, 2015
  8. 10 remaining items

  9. adamreisnz commented on Jun 10, 2015

    @adamreisnz
    Author

    Cheers thanks

  10. inancgumus commented on Jun 2, 2016

    @inancgumus

    @nathansobo is it fixed? still continues here with os x el capitan.

  11. adamreisnz commented on Jun 2, 2016

    @adamreisnz
    Author

    @DeeperX Since this was fixed last year, I haven't run into this issue anymore.
    Not experiencing it now either, on OS X 10.11.5 with Atom 1.9.0-dev-7253514

  12. pcnate commented on Aug 2, 2016

    @pcnate

    I just upgraded 1.9 on Debian 8.5 and I have been having the issue.... Did not seem to have the issue on Win 7 at work today on atom 1.9.

    If I start typing after ctrl+tab I get an "enter new path prompt". Maybe a different issue.

  13. rmbaad commented on Mar 1, 2017

    @rmbaad

    I have this issue on OSX El Capitan and Atom 1.14.3

  14. laradevitt commented on Mar 6, 2017

    @laradevitt

    @rmbaad - Works for me on OSX El Capitan and Atom 1.14.4 (just installed today). I can cycle through tabs by clicking or CMD-SHIFT-] or CMD-SHIFT-[ and the cursor position is remembered and in focus. If I could test CTRL-TAB I would but I have so far been unable to get this shortcut working for me. :(

  15. inancgumus commented on Mar 7, 2017

    @inancgumus

    Looks like it's been fixed. At least I see the correct behaviour in Atom 1.12.8 and OS X 10.12.3 (Sierra).

  16. adamreisnz commented on Mar 7, 2017

    @adamreisnz
    Author

    Still working for me in Atom 1.16.0

  17. ContentLabs commented on Mar 22, 2017

    @ContentLabs

    Still not working for me: When clicking on tabs the cursor position is kept, using the keyboard, the fosus is set on the tree view. Atom 1.15 on Windows 10.

  18. Ben3eeE commented on Mar 22, 2017

    @Ben3eeE
    Contributor

    @ContentLabs That can be a different issue atom/tree-view#858. Try disabling Focus On Reveal in the tree-view package settings.

  19. ContentLabs commented on Mar 22, 2017

    @ContentLabs

    @Ben3eeE Wow, thank you, that fixed it for me!

  20. lonelyelk commented on Jul 9, 2017

    @lonelyelk

    This bug still exists in atom 1.18.0 x64 macOS Sierra 10.12.5 if another pane is cursor-less. For example, open a text file to edit and then open Atom > About Atom pane. Switching from text file to the "About" pane with keyboard Cmd-Shift-[ or Cmd-Alt-Arrow looses cursor position. Switching with mouse click on the pane name doesn't.

  21. lee-dohm commented on Jul 10, 2017

    @lee-dohm
    Contributor

    @lonelyelk Please open a new issue and fill in all of the required information.

  22. lock commented on Mar 31, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  23. locked and limited conversation to collaborators on Mar 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions