aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode_visual.coffee
AgeCommit message (Collapse)Author
2016-09-30Remove Coffeescript 1.10 dependency.Stephen Blott
Fixes #2273. Fixes #2281. This fixes the build with Coffeescript 1.11, so we can remove the hard-wired dependency and notes.
2016-04-13Add <c-y> and <c-e> for visual mode.Stephen Blott
Fixes #2092.
2016-04-11Better visual-mode selection handling.Stephen Blott
Assume there is an existing range selection. Consider `v`, `Escape`. Previously, this had the side effect of clearing the selection. That behaviour seems odd and wrong. Here, we retain the selection if there was an existing range selection when visual mode was launched. Arguably, this removes a "feature" whereby `v`, `Escape` clears the selection. Here, we take it that the oddity above outweighs the loss of this arguably unintentional "feature".
2016-03-25Better choice of callapse on exit.Stephen Blott
The question here is where to callapse the selection to, anchor or focus? When exiting visual mode, mimic vim. When trasitioning between visual and caret modes, do what's right to keep the selection in the same place. This also adds some related tests.
2016-03-25More selective integration with the tests.Stephen Blott
This is a better way of stubing for the tests. Previously, if anything went wrong, there would actually be a visual effect for the user (the page would scroll). This way, that cannot happen.
2016-03-25Add tests for visual mode.Stephen Blott
The coverage here is far from completem but we do catch the basics.
2016-03-21Rework cisual mode; tweaks and fixes.Stephen Blott
2016-03-21Simplify singleton handling.Stephen Blott
While working on the visual-mode code, it became apparent that our current "singleton" implementation is unnecessarily complicated. This simplifies it. The keys are now required to be strings. (Previously, they could be any object; which meant we needed to gove objects an identity. All of which was complicated.)
2016-03-21Rework visual mode.Stephen Blott
- Refactor the three visual-mode modes. - Use the key-handling framework from #2022. - Strip some legacy edit-mode code. - Rename the file (the old file name was misleading). - Add "aw" and "as", previously we had the code for this from edit mode.
2016-03-21Rename visual mode file.Stephen Blott
This previous file name was chosen when we (I) had the intention of implementing edit mode too. That initiative has been abandoned, so the file name is inappropriate. Renaming now in preparation for a significant refactoring of visual mode.
2015-01-22Visual/edit modes: consolidate both modes in a single file.Stephen Blott
These modes turn out to be almost identical. So they're better off in a single file.
2015-01-22Visual/edit modes: refactor.Stephen Blott
2015-01-21Edit mode: first working visual mode.Stephen Blott
2015-01-13Modes; temporary commit.Stephen Blott
2015-01-12Modes; hint mode should be an insert-mode blocker...Stephen Blott
Also: - visual-mode template should block insert. - hint mode should exit on click.
2015-01-07Modes; Continue incorporation of comments in #1413.Stephen Blott
- Slight rework of HandlerStack. - Remove classs ExitOnEscape and ExitOnBlur - Rework InsertMode, plus trigger and blocker. - Remove StateMode. - Do no mixin options. - Lots of tidy up (including set a debug variable to Mode).
2015-01-07Modes; rename ConstrainedMode as ExitOnBlur.Stephen Blott
2015-01-06Modes; minor tweeks.Stephen Blott
2015-01-05Modes; more minor tweeks.Stephen Blott
2015-01-05Modes; simplify badge logic.Stephen Blott
2015-01-04Modes; various improvements.Stephen Blott
- Add StateMode. - PasskeysMode is a StateMode. - BadgeUpdateMode is a StateMode. - Improve badge handling. - Add push method to Mode. - Document how modes work. - Cache badge on background page to reduce the number of updates. - Remove badge restriction on document.body?.tagName.toLowerCase() == "frameset". - Add ExitOnEscape mode, use it for ConstrainedMode and FindMode. - Move PostFindMode to its own file.
2015-01-03Modes; add ConstrainedMode.Stephen Blott
2015-01-03Modes; visual-mode, add comment.Stephen Blott
2015-01-03Modes; visual-mode template.Stephen Blott
Visual mode command has been create: bound to `v`, of course. The template is in mode_visual.coffee. It shouldn't really be necessary to make changes outside of there. Let me know if you have any issues.
2015-01-03Modes; add template for visual mode.Stephen Blott