Ah well. no biggy really. But there is a problem. What you sent me looks older than the packaged xpi file you have up now.
Printable View
Ah well. no biggy really. But there is a problem. What you sent me looks older than the packaged xpi file you have up now.
woot? well let me attach the XPI then...even if I am pretty sure it is the newest. But I remember that Ian had given me the wrong XPI this morning too. So I might have forgotten to add the latest after I told him. 2sec...
This is the xpi on the server now. Just change the name.
PS, add the extension here when you are finished then, so Neb can pick it up here early tomorrow. Since you won't be able to upload it to the server again???
ØØ
Its still not in sync. The overlay file doesnt match the latest package and god knows what else. I will just wait until you guys get it straightened out.
What version does it say you have in Fx? 0.2.2? If so that is what you have now, and that is what I have. :confused:
0.2.2. But what you posted here is not the same as http://noteme.com/vb_extension/vbf.xpi
I could just get the code out of that, but I don't know what changes may be in what you sent me that is not in http://noteme.com/vb_extension/vbf.xpi
Note: Looking Good :thumb:
Here. I took the xpi from your site and added my changes. Here is the jar.
The changes added are as follows:
New file: snipEdit.xul
New functions in vbf.js: mnuCodeSnips_Build() and writeSnippet()
Edited functions in vbf.js: xpcomFileRead will now try to write a missing file if its missing instead of just popup an error. This will create the snippet.vbf file the first time someone select the Code Snippets menu item.
:confused: :confused: :confused: :confused: :confused: :confused:
I want to cry..:D...for some reason the version that was the newest one had the version number 0.2.0 :confused: Just found it now, cleaned out all the redundant files. I have a bit of time on the end of the day, so I can add your stuff to the this one, so you don't have to do it again. :)
I have no idea how the download thingy worked with the wrong version number, I have to sleep on that one.
ØØ
Oh and I got to mention the overlay file has a new menu item of course.
Yeah, will add that too...soon finsihed now..Just got to make sure he didn't alter the xpcomFileRead file too, but I doubt it.
Oooppsss...must have forgotten something. I get a "you forgot to choose an option" message when I tried it. Will look over it again.
Edit: or maybe it is because of the "rights" to write and read files on my linux box...hmmm
ØØ
I am a bit lost here...:)...havn't had time to read all the code because of co workers buggin me with everything...but how does it work..:)...do we...wait a sec...
Code:If you == home:
# booooo
Ohhh...thats how it worked...:D
I was wondering how creating a file would work on Linux. hmm
Well, it looks like it worked though...let me fatch it again..:)
Code:If (you == home) then
booooo
Yup...:)
Leerrooooooooooooooooy Jeeeeennnkinsss!
Hehe....BTW if you try to press update under tools-extensions now. Does it update for you?
Yep.
updated to 0.2.3
Hehe...I noticed one error though..:D..look at the file name and path...:D
./home/noteme/.mozilla/firefox/m72jecix.default\snippets.vbf
./root/.mozilla/firefox/uofyrgct.default\snippets.vbf
Quote:
Originally Posted by Cander
Goody, well then the newest one is on the server...and just in case here it is too..:)
[Edit] This is the XPI, so just rename.
umm hmmm
You saw it? You are probably somewhere adding a \ but on linux it is /. It is probably with JS as with Python that there is a function called concatenate path, or something similar that will concatenate the path for the OS it is running on.
ØØ
Updating via Fx works nicely :thumb:
Im researching it NoteMe
BTW, should probably check before I ask, but i am too tired..:)...Isn't JS incapable of reading and writing to disk? do you write the file using XUL?
I just noticed that there is missing an M in this function in vbf.js. Won't bother to fix it now, because then I have to upload the file again 3 places to fix it. Will do it tomorrow when I add my python stuff:
Code:init: function()
{
var menu = document.getElementById('contentAreaContextMenu');
menu.addEventListener('popupshowing', vbf.showHide, false);
},
Ok want to give this a try on Linux?
and the file writing is done in javascript code but it usesd built in Firefox api's to do the writing and reading
The new function added is
Should tell if you are on windows or a nix based file system Works on Windows at least so farCode:function platformPath()
{
try
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
}
catch (e)
{
alert("Permission to save file was denied.");
}
const DIR_SERVICE = new Components.Constructor("@mozilla.org/file/directory_service;1","nsIProperties");
try
{
path=(new DIR_SERVICE()).get("ProfD", Components.interfaces.nsIFile).path;
}
catch (e)
{
alert(e);
}
// findout if linux or windows to determine path
if (path.search(/\\/) != -1)
{
return "\\";
}
else
{
return "/";
}
}
Ohhh...I had to suddnly leave work. And I am now home. 23:00...zzzzzzzzzzzzz....but I will test it in the morning. BTW I guess two more functions are edited or something? the write and the read function?
ØØ
The snipEdit.xul was edited...I assume you can just replace that unless you have done anything to it.
The mnuCodeSnips_Build() and writeSnippet() were edited in vbf.jar
I think that is it
Oh and the new function is outside the vbf class
OK...I will test that tomorrow, and if it isn't working, then I guess I can hack up something since I am on Linux and can test it in "real time"..:)
ØØ
The update thingy doesn't seem to work well... It shows that there is a new version but it won't download anything... Get working! :mad:
Ok, found out I miss something with installed-chrome (problem was not really on Firefox). This is the way I do the development with XUL. Copy the vbf folder containing the content, locale and skin folder at C:\Program Files\Mozilla Firefox\chrome. Hack installed-chrome.txt and putQuote:
Originally Posted by Cander
content,install,url,resource:/chrome/vbf/content/vbf/
locale,install,url,resource:/chrome/vbf/locale/en-US/vbf/
skin,install,url,resource:/chrome/vbf/skin/classic/vbf/
This way, firefox locates vbf extension in resource, not the jar. You can do editing any content of the extension and restart firefox to (viola) see the changes.
Don't know where to send the new package, I'll just wait for NoteMe. Got the C# highlighter looking good (of course, base from Cander's functions). TODOS, javascript highlighter and CSS highlighter, also fancy text manipulation like Console Output, etc.
about.xul. Boss Cander still has the go on who should be in list. I'll just put my name just in case. :bigyello:
i cant get the dang thing to work...what the heck am i supposed to do? i installed it to firefox..now what? i dont see anything different...
aha! you have to right click in the part where you type! *doh* hey there
Quote:
Originally Posted by |2eM!x
Smart kid...:D