aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
AgeCommit message (Collapse)Author
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
2015-01-18Modes; refactor permanent instance.Stephen Blott
I had intended the whole Insert.permanentInstance lark to be gone before merging #1413. Somehow, this got missed. It's retained, here, but is only needed for the tests. It gives the tests a hook into the single insert-mode permanent instance, so they can test its state.
2015-01-18Give focusInput a memory (fix typo).Stephen Blott
2015-01-18Merge branch 'master' into focus-input-with-memoryStephen Blott
2015-01-18Modes; fix error for exit insert mode.Stephen Blott
We were blurring the active input element whenever we exit insert mode (my bad). It should only be blurred when we exit insert mode via Escape.
2015-01-18Give focusInput a memory; add tests.Stephen Blott
2015-01-18Give focusInput a memory.Stephen Blott
- Track the most recently-focused input. - When focusInput is launched (with a count of 1) start with the most recently focused input. This does two things: - If the user is editing an element then comes back, they end up back where they started. - It gives focusInput a memory.
2015-01-18Merge pull request #1434 from smblott-github/perform-find-in-placeStephen Blott
Fix slightly wonky perform-find-in-place
2015-01-18Merge pull request #1413 from smblott-github/modesStephen Blott
A modal-browsing framework
2015-01-18Modes; disable debugging output by default.Stephen Blott