6 ms·
Two-finger scroll moves through time instead of space
- tomjakubowski 10y agoNeat. You could add some side-to-side swiping to visit the current node's left- or right-neighbor in the undo tree.
- deleted 10y ago[deleted]
- vmarsy 10y agoIs 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 :)
- HammondSmoking 10y agoYou can easily do that using magit in emacs [1]. [1] https://magit.vc/manual/magit/Blaming.html https://magit.vc/manual/magit/Blaming.html
- bobwaycott 10y agoAs a two-finger horizontal scroll?
- HammondSmoking 10y agoThe elisp functions to go back and forth in history are there, I'm sure it's just a matter of remapping them.
- tiglionabbit 10y agoThat was my second thought. My first thought was, doesn't Time Machine already exist?
- notamy 10y agoScrolling through a file's git history like that would be pretty freaking awesome.
- epmatsw 10y agoNot quite on scroll, but Git Time Machine for Atom is kind of close: https://atom.io/packages/git-time-machine https://atom.io/packages/git-time-machine
- melloclello 10y agoI once built a calculator app where you could two-finger swipe to undo/redo: https://appsto.re/nz/oxLx3.i 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
- deckar01 10y agoI once built a motion controlled drawing app that mapped rotating hands to scrubbing through the undo/redo stack. https://youtu.be/DM1JtYyr88k https://youtu.be/DM1JtYyr88k Skip to 0:18 to skip calibration. It would be cool to make a calculator that recognized number gestures.
- deleted 10y ago[deleted]
- anakron 10y agoRelevant xkcd - https://xkcd.com/1806/ https://xkcd.com/1806/ And don't forget the alt text!
- Cyphase 10y agoInspiring* xkcd. :) I had a feeling someone was going to implement this when I saw xkcd yesterday.
- CMay 10y agoWell, 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 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.
- smexy 10y agoRelevant relevant xkcd - http://thomaspark.co/2017/01/relevant-xkcd/ http://thomaspark.co/2017/01/relevant-xkcd/
- 10y ago
- dzhiurgis 10y agoSort of relevant, but for shell: http://www.commitstrip.com/en/2017/02/28/definitely-not-lazy/ http://www.commitstrip.com/en/2017/02/28/definitely-not-lazy...
- amelius 10y ago"Moving through time" seems to be actually a smart way to avoid branching in undo/redo histories.
- rgrau 10y agoThat's how emacs does it by default. if you want the 'branching model', there's undo-tree-mode.
- necubi 10y agoThis is just a few lines in emacs: https://www.reddit.com/r/emacs/comments/5xi92h/a_scroll_wheel_mapped_to_send_a_stream_undo_and/?st=izvwj86v&sh=abecab90 https://www.reddit.com/r/emacs/comments/5xi92h/a_scroll_whee...
- mintplant 10y agovim: " 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
- kzrdude 10y agoIt could use g- / g+ instead, to cover all undo branches.
- lokedhs 10y agoBeing 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?
- HenryBemis 10y agoAbsolute respect to XKCD!! and never forget Little Bobby Tables!!!
- ams6110 10y agoSince I remap Ctrl <-> Caps Lock on all my machines, it's especially funny to me.
- lsh 10y agoHave you ever transcended time and space? https://www.youtube.com/watch?v=xp0vr1n25u4 https://www.youtube.com/watch?v=xp0vr1n25u4