Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't do anything #3

Open
hced opened this issue Mar 12, 2013 · 15 comments
Open

Doesn't do anything #3

hced opened this issue Mar 12, 2013 · 15 comments

Comments

@hced
Copy link

hced commented Mar 12, 2013

I know the issue was opened before but now closed. To be sure this gets read, I just wanted to confirm what the other user mentioned/asked:

This plugin doesn't seem to do anything in my case. (Installed it via Package Control in Sublime Text 2.0.1 build 2217 on OS X 10.8.)

Scrolling around, placing cursor here and there and then hitting Super+Alt+Ctr+Left or Right doesn't do anything.

Older thread

@timjrobinson
Copy link
Owner

I'll try it on OS X tonight and see what's going on. Thanks for letting me know.

@Torvin
Copy link

Torvin commented Mar 17, 2013

I use Sublime Text 3 build 3021 and it also doesn't seem to do anything. Sometimes, when i press ctrl+alt+right, it opens blank tab titled "None".

@timjrobinson
Copy link
Owner

@hced - Could you try the following to help me figure out what's going on please. Could you bring up the console and enter:

sublime.log_commands(True)

And then hit super+ctrl+alt+left and it should say something like:

command: navigation_history_back

If it doesn't let me know. If it does say that could you try opening up a large document then hitting page down and page up and then using the navigation history back button and see if it navigates you back.

@Torvin - What OS are you using? Also Navigation history has been natively integrated into ST3 via the new "jump back" and "jump forward" commands so is no longer needed. I'll add this to the readme.

@Torvin
Copy link

Torvin commented Mar 17, 2013

Oooh, thanks! You are right, native commands work! I wasn't aware of that.
I'm using XP though.

@hced
Copy link
Author

hced commented Mar 17, 2013

@timjrobinson I'd love to check this out but I deleted it some day ago and now I can't find it in Package Control. Is this just me? Package Control > Install Package > (searching for Sublime Navigation History) gives no result anymore.

@timjrobinson
Copy link
Owner

Hmm yea I'm seeing the same thing, it was there when I commented 12 hours ago as I re-installed sublime and installed it from package control to test, it's still in the repositories.json file so I'm not sure what happened to it...

@albertmatyi
Copy link

I know it's an older thread but:
If you're using Linux beware that ctrl + alt + left/right are mapped to "move workspace left/right", so either you have to delete those mappings from Settings > Keyboard > Shortcuts, or define yourself another set of key combinations for the plugin

Cheers

@timoreimann
Copy link

Let me revive this old issue as I am experiencing the same problem. I'm running ST2 version 2.0.2 / build 2221, and version 2014.06.12.06.30.28 of the package. My OS is Mac OS X 10.9.5.

The key combos do not do anything for me either. Per @timjrobinson suggestion, I enabled logging and did the following in sequence:

  1. Scrolled down a full page three times.
  2. Scrolled up a full page three times.
  3. Traversed backwards once in history (Cmd + Alt + Ctrl + Left).
  4. Traversed forward once in history (Cmd + Alt + Ctrl + Right).

This is what the log said:

command: move {"by": "pages", "forward": true}
command: move {"by": "pages", "forward": true}
command: move {"by": "pages", "forward": true}
command: move {"by": "pages", "forward": false}
command: move {"by": "pages", "forward": false}
command: move {"by": "pages", "forward": false}
command: back_to_python_definition
command: navigation_history_forward

Please let me know if I can provide any additional information to help debug the issue.

@zxxmmm321
Copy link

it's cannot work for me

@timoreimann
Copy link

Any chance this issue still receives some love?

@timjrobinson
Copy link
Owner

Sorry I keep forgetting to look into this. Happy to accept PR's if anyone else can look into it. Will try and find the time to fix in the next week or to.

@timjrobinson
Copy link
Owner

@timoreimann I just tested on OSX and it's working fine for me. Did you actually place the cursor around the files or just scroll? Because this plugin goes based of cursor placements, it jumps back to the code you were editing previously. Caching your scroll position would be way harder to do.

@timjrobinson
Copy link
Owner

@hced @zxxmmm321 - Did you guys get this working for you? If not can you try doing sublime.log_commands(True) in your console and report the log here.

@timoreimann
Copy link

@timjrobinson Curiously, I does work for me now. I had given it another try just before I updated this thread a few days ago, and it did not work at the time. After you reported back to me, I did a bit of general Sublime package cleanup, removed Navigation History, and reinstalled it. Surprisingly, things are working now.

Apparently there was some kind of interference happening on my end, so apologies for the noise. Let's see what the other reporters have to say, but as far as it concerns me I'm happy to see this bug closed.

Thanks again!

@victorchoy
Copy link

Saddly, the default hot key on my Mac cannot work as well. OS X 10.9.4, ST 2.0.2 2221. I dont kown why. However, i change the default hot key. it works! And i like the back and forward way (super+alt) like chrome. So i modify the ST switch file hot key to SublimeNavigationHistory。

{ "keys": ["ctrl+super+left"], "command": "next_view" },
{ "keys": ["ctrl+super+right"], "command": "prev_view" },

{ "keys": ["super+alt+left"], "command": "navigation_history_back"},
{ "keys": ["super+alt+right"], "command": "navigation_history_forward"}

Now it's perfect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants