aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
AgeCommit message (Collapse)Author
2015-01-29Visual/edit modes: fix w movement for contentEditable.Stephen Blott
It turns out we need to check different properties of the selection in order to correctly detect when the selection has changed in contentEditable elements.
2015-01-28Visual/edit modes: fix some movements...Stephen Blott
Also, change how vim's "w" is implemented. Also some code-review/cleanup. Better dd and yy for gmail.
2015-01-28Visual/edit modes: yet more minor changes.Stephen Blott
- Use a has for singletons (as it was previously), but with a distinct identity generated by Utils.getIdentity. - Fix counts not be using in a number of places.
2015-01-28Visual/edit modes: minor changes...Stephen Blott
- Minor refactoring. - Better selection of entity for "daw" an friends. - dd uses count, and works for empty lines. - Count for daw, etc. - Fix bug whereby selection cleared when changing tabs.
2015-01-27Visual/edit modes: minor changes.Stephen Blott
- Minor changes. - Deactivate modes on inputs from focusInput().
2015-01-27Visual/edit modes: self code review.Stephen Blott
2015-01-27Visual/edit modes: miscellaneous changes.Stephen Blott
- Various argument forms for runMovement. - Better visual line mode line selection. - Include preceding white space for "daw" and friends. - Vim-like handling of "2d3w" - count is six".
2015-01-27Visual/edit modes: better word-movement/"w".Stephen Blott
2015-01-27Visual/edit modes: minor changes.Stephen Blott
2015-01-26Visual/edit modes: "P" and "p" to copy-and-go.Stephen Blott
2015-01-26Visual/edit modes: minor improvements.Stephen Blott
2015-01-26Visual/edit modes: fix problem resuming entering visual line mode.Stephen Blott
2015-01-26Visual/edit modes: fix problem resuming insert mode.Stephen Blott
2015-01-26Visual/edit modes: better recovery after focus change.Stephen Blott
If we're in edit mode and the user changes tab, we lose the focus. That causes edit mode (and any sub mode like visual mode) to exit. When we return, we're in insert mode! With this commit, we save the state, and restore it when appropriate.
2015-01-26Visual/edit modes: minor changes.Stephen Blott
2015-01-26Visual/edit modes: "x" and entity moves ("daw", "cas", etc.)Stephen Blott
2015-01-25Visual/edit modes: miscellaneous improvements.Stephen Blott
2015-01-25Visual/edit modes: enter insert mode directly.Stephen Blott
2015-01-25Visual/edit modes: establish an initial selection.Stephen Blott
2015-01-25Visual/edit modes: miscellaneous changes.Stephen Blott
2015-01-25Visual/edit modes: better mode changes on blur/focus.Stephen Blott
2015-01-25Visual/edit modes: implement "V" in visual mode.Stephen Blott
2015-01-25Visual/edit modes: experimental "x" implementation.Stephen Blott
2015-01-25Visual/edit modes: better reverseSelection().Stephen Blott
There's an efficient way to implement reverseSelection, and an inefficient way. Unfortunately, the efficient way does not work for text inputs like textareas. So we fall back to the inefficient method in that case.
2015-01-25Visual/edit modes: find (experimental).Stephen Blott
The UX around find in visual mode can be a bit weird. It may be better to remove it.
2015-01-25Visual/edit modes: visual line mode.Stephen Blott
2015-01-24Visual/edit modes: implement "yy".Stephen Blott
2015-01-24Visual/edit modes: for "$", advance to real end of line.Stephen Blott
2015-01-24Visual/edit modes: minor changes.Stephen Blott
2015-01-24Visual/edit modes: more edit-mode commands.Stephen Blott
- "dw", "3dw", "d3w" - "dc", "3dc", "d3c" - "D" - "C" Also refactor enterInsertMode. Also major refactor of interface between edit and visual modes.
2015-01-24Visual/edit modes: miscellaneous improvements.Stephen Blott
2015-01-23Visual/edit modes: more (and better) commands.Stephen Blott
2015-01-23Visual/edit modes: develop edit mode.Stephen Blott
- implement "i", "a". - fix "w" for edit mode. - try out "e" for enter edit mode. - initial implementation "o", "O" - Suppress backspace and delete. - Scroll in text areas.
2015-01-22Visual/edit modes: revert to slow "o".Stephen Blott
There are cases where the faster approach gets the wrong answer.
2015-01-22Visual/edit modes: faster "o" implementation.Stephen Blott
2015-01-22Visual/edit modes: further development.Stephen Blott
- Better abstraction. - Add HUD message on yank. - Require initial selection for visual mode. - Try to start with a visible selection. - Scroll the active end of the selection into view (with smooth scrolling, if enabled).
2015-01-22Visual/edit modes: initial "w" and "W" commands.Stephen Blott
2015-01-22Visual/edit modes: continued development...Stephen Blott
- Some better comments. - More commands. - The "o" command for visual mode (the implementation is poor, there has to be a better way).
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-21Edit mode: initial framework.Stephen Blott
2015-01-20Rework focus input so it can be better included in tests.Stephen Blott
focusInput was getting its focus events from the handler stack. When the handler stack was reset during tests, we lost focusInput's handler. So we couldn't test the feature whereby focusInput has a memory (#1438). Instead, here focusInput adds its listener directly to the window, and we add the approriate test.
2015-01-20Rework DOM tests (clean up).Stephen Blott
2015-01-20Rework DOM tests.Stephen Blott
- Set up modes such that they can be re-initialised. - Move initialisation of BadgeMode to general initialisation function. - Add reset() method for handlerStack. - Consistently use initializeModeState() in all tests' setup(). - Refactor focusInput tests. - Add some more tests. - Simplify some other tests. Note: Clean-up of the inputFocus overlay now happens when the exit() method is called in Mode.reset(). This eliminates most needs to artificially bubble a keyboard event to clear the overlay.
2015-01-20Merge pull request #1438 from smblott-github/focus-input-with-memoryStephen Blott
Give focusInput (gi) a memory
2015-01-19Fix bug in mode_passkeys.Stephen Blott
Caught this while working on the dom_tests infrastructure. Testing works!
2015-01-18Give focusInput a memory (refactor).Stephen Blott
This makes the diff look big, but that's mainly due to a change in the indentation.
2015-01-18Give focusInput a memory (fix typo).Stephen Blott
2015-01-18Merge branch 'master' into focus-input-with-memoryStephen Blott