News for hackers. Stuff that matters.
Re:Two-finger scroll moves through time instead of space by vmarsy on Saturday March 04, 2017 @04:47PM (#13793089)
Is that doing Ctrl+Z , Ctrl+Y in the background?

Before opening the link I was thinking this was going to be a cool feature that lets you scroll through older revisions of a file in git. This, paired with a git blame GUI would be awesome.

A minority report for git repos

Sweet feature regardless :)

Re:Two-finger scroll moves through time instead of space by epmatsw on Saturday March 04, 2017 @05:43PM (#13793308)
Not quite on scroll, but Git Time Machine for Atom is kind of close: https://atom.io/packages/git-time-machine
Re:Two-finger scroll moves through time instead of space by vmarsy on Saturday March 04, 2017 @06:35PM (#13793533)
Oh pretty nice, a vscode equivalent would be awesome
Re:Two-finger scroll moves through time instead of space by dzhiurgis on Saturday March 04, 2017 @07:12PM (#13793768)
Nice! I did not like diff and history that comes with git-plus. Thank you!
Re:Two-finger scroll moves through time instead of space by HammondSmoking on Saturday March 04, 2017 @04:55PM (#13793121)
You can easily do that using magit in emacs [1].

[1] https://magit.vc/manual/magit/Blaming.html

Re:Two-finger scroll moves through time instead of space by bobwaycott on Sunday March 05, 2017 @03:33AM (#13795111)
As a two-finger horizontal scroll?
Re:Two-finger scroll moves through time instead of space by HammondSmoking on Sunday March 05, 2017 @03:38AM (#13795121)
The elisp functions to go back and forth in history are there, I'm sure it's just a matter of remapping them.
Re:Two-finger scroll moves through time instead of space by notamy on Saturday March 04, 2017 @05:38PM (#13793292)
Scrolling through a file's git history like that would be pretty freaking awesome.
Re:Two-finger scroll moves through time instead of space by melloclello on Saturday March 04, 2017 @07:27PM (#13793836)
I once built a calculator app where you could two-finger swipe to undo/redo: https://appsto.re/nz/oxLx3.i

Previous/future states simply appear adjacent to one another so you can scroll through them easily.

I absolutely believe that version control history is something that needs to be treated as a dimension like any other

Re:Two-finger scroll moves through time instead of space by deckar01 on Saturday March 04, 2017 @09:19PM (#13794242)
I once built a motion controlled drawing app that mapped rotating hands to scrubbing through the undo/redo stack.

https://youtu.be/DM1JtYyr88k

Skip to 0:18 to skip calibration.

It would be cool to make a calculator that recognized number gestures.

Re:Two-finger scroll moves through time instead of space by tiglionabbit on Saturday March 04, 2017 @05:35PM (#13793278)
That was my second thought. My first thought was, doesn't Time Machine already exist?
Re:Two-finger scroll moves through time instead of space by necubi on Saturday March 04, 2017 @06:51PM (#13793629)
Re:Two-finger scroll moves through time instead of space by lokedhs on Sunday March 05, 2017 @10:54AM (#13796468)
Being very familiar with Emacs, I would never have thought the Atom version to be much more complicated than that.

Then I looked at the code in the original link, and wow. Just... Wow. That cannot possibly be the easiest way to do this?

Perhaps there is something to the thing they say about Javacsript programmers and how they manage to reinvent technologies from a couple decades ago, badly?

Re:Two-finger scroll moves through time instead of space by mintplant on Saturday March 04, 2017 @08:37PM (#13794118)
vim:

    " scroll wheel moves through time instead of space
    " <https://xkcd.com/1806/>
    set mouse=a
    nnoremap <ScrollWheelUp> u
    nnoremap <ScrollWheelDown> <C-r>
    inoremap <ScrollWheelUp> <Esc>ui
    inoremap <ScrollWheelDown> <Esc><C-r>i
Re:Two-finger scroll moves through time instead of space by kzrdude on Sunday March 05, 2017 @06:34AM (#13795552)
It could use g- / g+ instead, to cover all undo branches.
Re:Two-finger scroll moves through time instead of space by amelius on Saturday March 04, 2017 @06:44PM (#13793585)
"Moving through time" seems to be actually a smart way to avoid branching in undo/redo histories.
Re:Two-finger scroll moves through time instead of space by rgrau on Sunday March 05, 2017 @03:37AM (#13795120)
That's how emacs does it by default. if you want the 'branching model', there's undo-tree-mode.
Re:Two-finger scroll moves through time instead of space by dzhiurgis on Saturday March 04, 2017 @07:14PM (#13793774)
Re:Two-finger scroll moves through time instead of space by lsh on Sunday March 05, 2017 @06:34AM (#13795551)
Have you ever transcended time and space? https://www.youtube.com/watch?v=xp0vr1n25u4
Re:Two-finger scroll moves through time instead of space by tomjakubowski on Saturday March 04, 2017 @04:42PM (#13793066)
Neat. You could add some side-to-side swiping to visit the current node's left- or right-neighbor in the undo tree.
Re:Two-finger scroll moves through time instead of space by anakron on Saturday March 04, 2017 @05:31PM (#13793256)
Relevant xkcd - https://xkcd.com/1806/ And don't forget the alt text!
Re:Two-finger scroll moves through time instead of space by smexy on Saturday March 04, 2017 @05:56PM (#13793355)
Re:Two-finger scroll moves through time instead of space by iamdave on Saturday March 04, 2017 @07:21PM (#13793812)
Oh that's clever, that's beautifully clever.
Re:Two-finger scroll moves through time instead of space by H4CK3RM4N on Saturday March 04, 2017 @08:48PM (#13794154)
The link only works one layer down :(
Re:Two-finger scroll moves through time instead of space by jlgaddis on Saturday March 04, 2017 @07:19PM (#13793803)
Yeah, it's linked -- twice -- right there on the page.
Re:Two-finger scroll moves through time instead of space by tedunangst on Saturday March 04, 2017 @08:55PM (#13794181)
Where's the karma in that?
Re:Two-finger scroll moves through time instead of space by powmonk on Sunday March 05, 2017 @07:12AM (#13795659)
Wait, we have karma?
Re:Two-finger scroll moves through time instead of space by Cyphase on Saturday March 04, 2017 @05:36PM (#13793281)
Inspiring* xkcd. :)

I had a feeling someone was going to implement this when I saw xkcd yesterday.

Re:Two-finger scroll moves through time instead of space by CMay on Sunday March 05, 2017 @03:56AM (#13795145)
Well, I know it has been done several times before, but it's not common.

A recent example is that some apps support this using the Surface Dial: https://youtu.be/8BJisE80wAc?t=116

Whether it's mapped to a two-finger slide, a scroll wheel, a dial, etc isn't the important part. The novel-feeling part is that as computers get faster and people improve at engineering performant software we can have the software provide results in realtime to analog inputs which makes people feel connected to the software in exciting ways.

A basic example would be a virtual DJ type app that lets you slide across an on-screen LP to scratch forward/backward. Obviously something more visually or conceptually impressive as seen in games which support time rewinding would be closer to the spirit of the post.

I would certainly like to encourage more developers to make use of scrolling/sliding input in unique ways.

Re:Two-finger scroll moves through time instead of space by HenryBemis on Saturday March 04, 2017 @07:23PM (#13793820)
Absolute respect to XKCD!! and never forget Little Bobby Tables!!!
Re:Two-finger scroll moves through time instead of space by ams6110 on Saturday March 04, 2017 @07:47PM (#13793910)
Since I remap Ctrl <-> Caps Lock on all my machines, it's especially funny to me.