Skip to content

Commit

Permalink
new tagline, show sync status in index (grey background), better url …
Browse files Browse the repository at this point in the history
…regex
  • Loading branch information
shatting committed Apr 28, 2011
1 parent 05e2011 commit a289ef0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion javascripts/lib/codemirror2/mode/simplenote/simplenote.js
@@ -1,9 +1,13 @@
CodeMirror.defineMode("simplenote", function() {
return {
token: function(stream) {
var url;
var url;
var urlRe = /^https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?/;
var urlRe = /^https?:\/\/[^:\/\s]+\.[^\s\(\)\[\]]*/;
var urlRe = /^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?[^\s\(\)\[\]\.]/;
//var urlRe = new RegExp();
//urlRe.compile("^[A-Za-z]+://[A-Za-z0-9-_]+\\.[A-Za-z0-9-_%&\?\/.=]+");
//var urlRe = /^(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|]/;

if (stream.peek() == "h") {
url = stream.match(urlRe, true);
Expand Down
4 changes: 4 additions & 0 deletions javascripts/popup.js
Expand Up @@ -421,6 +421,10 @@ function indexFillNoteReqComplete(note) {
});
});
}

if (note._syncNote)
$noterow.css("background","#ccc");

//$noterow.hover(maximize,minimize);

// check new inview, might have changed due to reflow
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
@@ -1,7 +1,7 @@
{
"name": "Simplenote+",
"version": "1.4.9",
"description": "Access your Simplenote notes right from your chrome extension bar.",
"version": "1.4.9.9",
"description": "An easy way to keep notes, lists, ideas and more. Syncs automatically with your devices and other apps.",
"icons": {
"96": "imanges/logo_96.png",
"128": "images/logo_128.png",
Expand Down

0 comments on commit a289ef0

Please sign in to comment.