tpope / vim-rails

rails.vim: Ruby on Rails power tools
http://www.vim.org/scripts/script.php?script_id=1567
4.1k stars 383 forks source link

Keep jumps when jumping within schema after invoking `:R` #542

Closed sodapopcan closed 5 years ago

sodapopcan commented 5 years ago

Would it be possible to not add to the jumplist twice when calling :R on a model? I often prefer to hit <C-O> to keep the schema out of my jumplist and I currently have to hit it twice (once jumps to the top of the file and then again to get back to the model). It's a minor annoyance for sure, but wondering if you would be open to this change.

Thanks!

tpope commented 5 years ago

I think adding keepjumps to the djump invocations would probably be fine.

sodapopcan commented 5 years ago

Oh nice, that's cool :) Is that something you'd like me to make a PR for or would you prefer to do it?

tpope commented 5 years ago

Please confirm it works and make a PR.

sodapopcan commented 5 years ago

Cool, I'll run it locally for a week or then make a PR.

Thanks!