aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/marks.coffee
AgeCommit message (Collapse)Author
2016-03-26Rework global mark activation.Stephen Blott
There were two problems, both stemming from the fact that the notification was being displayed in the top frame, even if the mark was triggered in another frame: 1. That looks odd, because we close the HUD in one frame then open it in another. 2. As a side effect, we were moving the focus to the top frame. Here, we work out what's going to happen before sending the message to the background page. This allows us to display the message in the HUD in the frame which generated it.
2016-03-26This parameter wasn't being used.Stephen Blott
2015-06-05Global marks; always treat ` and ' as local marks.Stephen Blott
On some keyboards (who knows?) "`" or "'" could be shift keys. In this case, with the previous implementation, these would be treated as global marks and `` would be unusable. This commit fixes that problem.
2015-06-05Global marks; global marks are always recorded for the top frame only.Stephen Blott
With global marks, we may later create a new tab when the mark is used. When doing so, we should always be using the URL and scroll position of the top frame within the tab. For example, if a global mark is created from within the Hangouts frame of Google's Inbox and the mark is later used, then we should create a new tab for Inbox's URL and scroll position, not for the Hangout's URL and scroll position.
2015-06-05Global marks; fix indentation.Stephen Blott
2015-06-04Use only ' and ` for jumping to previous position.Stephen Blott
As suggested by @mrmr1993 in #1716.
2015-06-04Exit marks modes on escape.Stephen Blott
2015-06-03Add mark commands to README, more simple refactoring.Stephen Blott
2015-06-03Add mark commands to README, simple refactoring.Stephen Blott
2015-06-03Refactor (to setPreviousPosition) to clarify Marks logic.Stephen Blott
2015-06-03Re-implement Marks, incl `` binding.Stephen Blott
2015-06-03Refactor to avoid having to cover all keyboard event cases.Stephen Blott
It's pretty common that we want to suppress all keyboard events, so let's support that in modes.coffee, thereby simplifying handlers elsewhere.
2015-06-03Fix marks (incl. global marks)...Stephen Blott
Fixes #1712: - Make global marks work. - Add mode indicator. - Don't fail for global marks on background page if mark is not set. - Give HUD warning for global marks if global mark is not set. (The diff is big but, which the exception of infrastructure refactoring, the main change is to not exit on <Shift>, thereby fixing #1712).
2013-09-12Changed deprecated chrome.extension on chrome.runtime in all files and fix testsMaksim Ryzhikov
2013-05-25Replace `sendRequest()` calls with `sendMessage()` ones in marks.coffeesainaen
Fixing incomplete commit 9403692e51, replacing old API calls with the new ones in two more files: `background/marks.coffee` and `content_scripts/marks.coffee`.
2012-10-29Implement marks.Jez Ng