Sublime Forum

[BUG] Jump Forward

#1

I can’t tell if I’ve found a bug or if I just don’t understand this feature correctly. When I click around in a text file (move the cursor) and then hit alt+minus, the cursor goes back as expected, but then when I hit alt+shift+minus, nothing happens and “Already at the newest position” appears in the status bar below.

Steps to Reproduce:

  • Open a text file.
  • Left click to different positions in the file.
  • Note where the cursor is.
  • Press “Jump Back” once.
  • Press “Jump Forward” once.

What happens:

  • Cursor does not move. “Already at the newest position” displays in status bar.

What is expected:

  • Cursor will move to position it was at previous to pressing “Jump Back”.

Sublime Text build 3062 (and 3073). I’ve found this while editing a .js file on Ubuntu 14.

Perhaps I’m misunderstanding this feature, so I’ve tried to get “Jump Forward” to work in any scenario, but everyone I’ve tried the cursor just stays put and “Already at newest position” displays in the status bar.

Is this a bug or am I misunderstanding how to use this? My expectation is that when you Jump Forward, the cursor will do the opposite of what a Jump Back keypress would do, as long as there hasn’t been any user initiated cursor moves in between.

0 Likes

#2

Works for me.

Open file = cursor is at 0,0
Click somewhere in the middle.
Press ALT± = Cursor jumps to 0,0
Press ALT+SHIFT± Cursor jumps to middle of the file.

ST 3062 - Windows 7

command: jump_back
command: jump_forward

0 Likes

#3

I can confirm that this works as expected in Windows 7, ST 3062.

Behaviour is the same as described in ST 3062 in Ubuntu 14.04.

0 Likes

#4

Hi

I can confirm that this doesn’t work for me as well.
I am on build 3059 on Ubuntu 14.04
This bug has been a pet peeve of mine while using Sublime.

0 Likes

#5

Just and update. I’ve tested this on the 3067 build on Ubuntu 14.04 and it is still occurring as reported.

0 Likes

#6

Another update. This bug occurs as reported in build 3073.

0 Likes

#7

What command do you see if you enable command logging?
View -> show Console, then paste this:

sublime.log_commands(True)

0 Likes

#8

This is the console output from the latest build (3079).

I open a file, click around 5 or 6 times (all different lines) then hit the jump back (which works), then every time I hit jump forward, it shows “Already at the newest position” in the panel beneath the console in the lower left. In the log, every call to “jump_forward” results in “Already at the newest position”, no call to it ever moves the caret.

DPI scale: 1
startup, version: 3079 linux x64 channel: dev
executable: /opt/sublime_text/sublime_text
working dir: /
packages path: /home/justin/.config/sublime-text-3/Packages
state path: /home/justin/.config/sublime-text-3/Local
zip path: /opt/sublime_text/Packages
zip path: /home/justin/.config/sublime-text-3/Installed Packages
ignored_packages: "Vintage"]
generating syntax summary
generating meta info summary
pre session restore time: 0.143283
startup time: 0.221207
first paint time: 0.443682
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.quick_panel
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.01-ssl-linux
Linux SSL: successfully loaded _ssl module for libssl.so.1.0.0
reloading plugin 0_package_control_loader.02-bz2
reloading plugin Package Control.Package Control
reloading plugin Package Control.bootstrap
reloading plugin Pretty JSON.PrettyJson
[Errno 2] No such file or directory: 'jq'
plugins loaded
Package Control: Skipping automatic upgrade, last run at 2015-03-20 12:25:41, next run at 2015-03-20 13:25:41 or after
>>> sublime.log_commands(True)
command: drag_select {"event": {"button": 1, "x": 541.5, "y": 288.5}}
command: drag_select {"event": {"button": 1, "x": 332.5, "y": 220.5}}
command: drag_select {"event": {"button": 1, "x": 332.5, "y": 191.5}}
command: drag_select {"event": {"button": 1, "x": 393.5, "y": 181.5}}
command: drag_select {"event": {"button": 1, "x": 386.5, "y": 160.5}}
command: drag_select {"event": {"button": 1, "x": 379.5, "y": 147.5}}
command: jump_back
command: jump_back
command: jump_back
command: jump_forward
command: jump_forward
command: jump_forward
0 Likes

#9

Just want to confirm that I have the same problem as OP.

I can go backwards in cursor history but going forwards does nothing. There is a message at at the bottom-left reading: “Already at the newest position.”

This occurred on both .js and .py files.

If there might be a solution I can implement, please mention it :smile:

Running 3083 on Ubuntu 14.04

0 Likes

#10

I’m still seeing this in Build 3103 under Ubuntu 15.04.

0 Likes

#11

Same here, … bug has been around forever. Argh, this shouldn’t be this hard to fix.

0 Likes

#12

Likewise, Build 3114 with Ubuntu 16.04

Only just discovered this feature so I I can’t say if it was working before - but I’m guessing it’s a longstanding issue with linux builds.

0 Likes

#14

Same here! Build 3114 with Ubuntu 16.04

sublime.log_commands(True)
command: jump_back
command: jump_forward
command: jump_forward
command: jump_forward

jump_back works as well
but nothing happens with jump_forward

0 Likes

#15

Any updates?? Very annoying!

0 Likes

#16

Bump! Very useful feature! Please check

0 Likes

#17

I have the same Problem on Build 3126 in Ubuntu 16.04

Starting at the beginning of the document, going to the center, then jump back followed immediately by jump forward gives the following commands:

command: drag_select {“event”: {“button”: 1, “x”: 641.5, “y”: 1112.5}}
command: jump_back
command: jump_forward

but the jump_forwards command says ‘already at the newest position’.

0 Likes

#18

feel free to investigate the code in the Packages/Default/history_list.py file to debug where it is going wrong and suggest a patch

0 Likes

#19

Simple Bug still open 3 years later…
Build 3143 Ubuntu 14.04

1 Like

#20

Yeah, this is really bugging me. please fix

0 Likes

#21

The same bug on Ubuntu 16.04. Hope it will be fixed finally.

0 Likes