Thread: [Mplayerplug-in-devel] Advice for embeding an application in Firefox
Brought to you by:
kdekorte
From: Christophe-Marie D. <chm...@gm...> - 2008-07-15 11:40:39
|
Hi, This is not a question about mplayer, but more about how to embed an application in Firefox. I'd like to embed gnome-terminal in Firefox. My question is : is it possible, and do you think reading the source of mplayer-plugin could help me to do it? I'm looking for good links to read for embeding applications in Firefox, and I am also looking for examples. Could you give me some tips? If you think there is a better way to learn, please tell me. Regards, Christophe-Marie |
From: Peter M. <pet...@go...> - 2008-07-15 18:21:43
|
2008/7/15 Christophe-Marie Duquesne <chm...@gm...>: > Hi, > > This is not a question about mplayer, but more about how to embed an > application in Firefox. > > I'd like to embed gnome-terminal in Firefox. My question is : is it > possible, and do you think reading the source of mplayer-plugin could help > me to do it? I'm looking for good links to read for embeding applications in > Firefox, and I am also looking for examples. Could you give me some tips? > > If you think there is a better way to learn, please tell me. > > Regards, > Christophe-Marie > > > > Hi, i don't think the mplayerplug-in source will help you. Have a look at webmin (webmin.com), they have a terminal module. AFAIK, it's implemented as Java Applet. regards, Peter Marquardt |
From: Christophe-Marie D. <chm...@gm...> - 2008-07-16 08:12:31
|
Thank you for the answer. As I am not sure you really did understand what I want to do, I'm just going to explain a little more, in order to be sure of what to do. What I want to do is to embed a real terminal, and I would like to be able to run any application from this terminal. So I don't want an emulation, I want the real xterm, or the real gnome-terminal. I am not interested in doing a fake term, there are already lots of it in javascript. Actually, what I would like to do is to be able to replace any text field by a vim instance, so I would be able to edit it using the real vim shortcuts, and not a crappy emulation in javascript. So I think embedding a terminal would do the trick, and could be usefull to run other apps. I've been told there are nice things to do with the xembed protocol : http://standards.freedesktop.org/xembed-spec/xembed-spec-0.5.html. I was also told to look at plugger http://fredrik.hubbe.net/plugger.html. I thought (but you seem to be saying I am wrong) that embedding an application is kind of "generic", that's why I was asking on this mailing list. Considering this explanation, do you have another advice? Best Regards, Christophe-Marie On Tue, Jul 15, 2008 at 8:21 PM, Peter Marquardt < pet...@go...> wrote: > > > 2008/7/15 Christophe-Marie Duquesne <chm...@gm...>: > > Hi, >> >> This is not a question about mplayer, but more about how to embed an >> application in Firefox. >> >> I'd like to embed gnome-terminal in Firefox. My question is : is it >> possible, and do you think reading the source of mplayer-plugin could help >> me to do it? I'm looking for good links to read for embeding applications in >> Firefox, and I am also looking for examples. Could you give me some tips? >> >> If you think there is a better way to learn, please tell me. >> >> Regards, >> Christophe-Marie >> >> >> >> > Hi, > > i don't think the mplayerplug-in source will help you. Have a look at > webmin (webmin.com), they have a terminal module. AFAIK, it's implemented > as Java Applet. > > regards, > Peter Marquardt > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Mplayerplug-in-devel mailing list > Mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mplayerplug-in-devel > > -- Christophe-Marie Duquesne élève ingénieur 2A ensimag |
From: Peter M. <pet...@go...> - 2008-07-16 17:33:20
|
2008/7/16 Christophe-Marie Duquesne <chm...@gm...>: > Thank you for the answer. > > As I am not sure you really did understand what I want to do, I'm just > going to explain a little more, in order to be sure of what to do. > > What I want to do is to embed a real terminal, and I would like to be able > to run any application from this terminal. So I don't want an emulation, I > want the real xterm, or the real gnome-terminal. I am not interested in > doing a fake term, there are already lots of it in javascript. Actually, > what I would like to do is to be able to replace any text field by a vim > instance, so I would be able to edit it using the real vim shortcuts, and > not a crappy emulation in javascript. So I think embedding a terminal would > do the trick, and could be usefull to run other apps. I've been told there > are nice things to do with the xembed protocol : > http://standards.freedesktop.org/xembed-spec/xembed-spec-0.5.html. I was > also told to look at plugger http://fredrik.hubbe.net/plugger.html. > > I thought (but you seem to be saying I am wrong) that embedding an > application is kind of "generic", that's why I was asking on this mailing > list. Considering this explanation, do you have another advice? > > Best Regards, > Christophe-Marie > > > Hi, embedding a plugin is pretty generic. But that doesn't help you. Plugger is a generic way to embed application output from your local machine into a webpage for data the webpage delivered. (Like using your favorite media player to display embedded video) XEmbed uses messaging between apps, but again, all on the same machine. HTTP is designed as a one-way protocol, data comes from the server to your machine. To get your keystrokes back to the server, you need to use different means. Why don't you use ssh + x11-forwarding? Or nomachine.comnxserver? Or VNC? Except for x11, they're (mostly) platform-independent and all can be tunneld over port 80, if needed. For your idea you would need two-way realtime data flow. Unless you're eager to do some heavy apache-mod coding (i doubt even that would help), i don't see any viable way to do this. The only way this might work is, when you use mplayer to embed a x11 display and somehow pass the keystrokes etc to the app running on that display. I don't think this would work for anything than localhost (I did something similar with an embedded mplayer displaying v4l inputs, works on localhost only). I don't know if your requirements forbid ssh, if not, i'd always go that way. regards, Peter Marquardt |
From: Christophe-Marie D. <chm...@gm...> - 2008-07-17 07:18:20
|
I read carefully this answer, I am not sure I have understood everything : by embeding a terminal, I did not mean doing something serverside. What I want to do seemed simple to me (but when I read you it's not anymore :) ) : I want to run a local terminal normally, like when I run it in gnome. The only difference is that I want this terminal to be ran inside the firefox window, whereas normally it would be run in its own window. And that is really the only difference. To make a long description short : I want to replace text fields by instances of local terminals. When you say "Plugger is a generic way to embed application output from your local machine into a webpage for data the webpage delivered." I feel this is exactly what I want to do : I want to embed xterm output from my local machine into a webpage for data (the locations of text fields zones) the webpage delivered. Why would I want to use ssh? On Wed, Jul 16, 2008 at 7:33 PM, Peter Marquardt < pet...@go...> wrote: > > > 2008/7/16 Christophe-Marie Duquesne <chm...@gm...>: > >> Thank you for the answer. >> >> As I am not sure you really did understand what I want to do, I'm just >> going to explain a little more, in order to be sure of what to do. >> >> What I want to do is to embed a real terminal, and I would like to be able >> to run any application from this terminal. So I don't want an emulation, I >> want the real xterm, or the real gnome-terminal. I am not interested in >> doing a fake term, there are already lots of it in javascript. Actually, >> what I would like to do is to be able to replace any text field by a vim >> instance, so I would be able to edit it using the real vim shortcuts, and >> not a crappy emulation in javascript. So I think embedding a terminal would >> do the trick, and could be usefull to run other apps. I've been told there >> are nice things to do with the xembed protocol : >> http://standards.freedesktop.org/xembed-spec/xembed-spec-0.5.html. I was >> also told to look at plugger http://fredrik.hubbe.net/plugger.html. >> >> I thought (but you seem to be saying I am wrong) that embedding an >> application is kind of "generic", that's why I was asking on this mailing >> list. Considering this explanation, do you have another advice? >> >> Best Regards, >> Christophe-Marie >> >> >> > Hi, > > embedding a plugin is pretty generic. But that doesn't help you. Plugger is > a generic way to embed application output from your local machine into a > webpage for data the webpage delivered. (Like using your favorite media > player to display embedded video) XEmbed uses messaging between apps, but > again, all on the same machine. > HTTP is designed as a one-way protocol, data comes from the server to your > machine. To get your keystrokes back to the server, you need to use > different means. Why don't you use ssh + x11-forwarding? Or nomachine.comnxserver? Or VNC? Except for x11, they're (mostly) platform-independent and > all can be tunneld over port 80, if needed. > > For your idea you would need two-way realtime data flow. Unless you're > eager to do some heavy apache-mod coding (i doubt even that would help), i > don't see any viable way to do this. > > The only way this might work is, when you use mplayer to embed a x11 > display and somehow pass the keystrokes etc to the app running on that > display. I don't think this would work for anything than localhost (I did > something similar with an embedded mplayer displaying v4l inputs, works on > localhost only). > > I don't know if your requirements forbid ssh, if not, i'd always go that > way. > > regards, > Peter Marquardt > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Mplayerplug-in-devel mailing list > Mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mplayerplug-in-devel > > -- Christophe-Marie Duquesne élève ingénieur 2A ensimag |
From: Peter M. <pet...@go...> - 2008-07-17 14:33:43
|
2008/7/17 Christophe-Marie Duquesne <chm...@gm...>: > I read carefully this answer, I am not sure I have understood everything : > by embeding a terminal, I did not mean doing something serverside. What I > want to do seemed simple to me (but when I read you it's not anymore :) ) : > I want to run a local terminal normally, like when I run it in gnome. The > only difference is that I want this terminal to be ran inside the firefox > window, whereas normally it would be run in its own window. And that is > really the only difference. > > To make a long description short : I want to replace text fields by > instances of local terminals. > > When you say "Plugger is a generic way to embed application output from > your local machine into a webpage for data the webpage delivered." I feel > this is exactly what I want to do : I want to embed xterm output from my > local machine into a webpage for data (the locations of text fields zones) > the webpage delivered. Why would I want to use ssh? > > > Hi, ok, i misunderstood you, i thought you were trying to run a terminal session through apache over the net. I read a little about plugger, so i have to correct myself. It is only aimed at multimedia playpack, i don't know if it can be tweaked to your needs. Xembed sounds more promising here, though you probably still have to code your own browser plugin for it and you'll need a terminal, that talks Xembed and provides the neccessary controls. But from what I read so far, this is quite possible. http://multimedia.cx/diamondx/ and http://labs.trolltech.com/blogs/2005/08/10/playing-around-with-xembed/ might help you with further info. regards, Peter Marquardt |
From: Christophe-Marie D. <chm...@gm...> - 2008-07-17 15:44:56
|
thanks! I am going to read the doc carefully. Thank you for all the advices! On Thu, Jul 17, 2008 at 4:33 PM, Peter Marquardt < pet...@go...> wrote: > > > 2008/7/17 Christophe-Marie Duquesne <chm...@gm...>: > >> I read carefully this answer, I am not sure I have understood everything : >> by embeding a terminal, I did not mean doing something serverside. What I >> want to do seemed simple to me (but when I read you it's not anymore :) ) : >> I want to run a local terminal normally, like when I run it in gnome. The >> only difference is that I want this terminal to be ran inside the firefox >> window, whereas normally it would be run in its own window. And that is >> really the only difference. >> >> To make a long description short : I want to replace text fields by >> instances of local terminals. >> >> When you say "Plugger is a generic way to embed application output from >> your local machine into a webpage for data the webpage delivered." I feel >> this is exactly what I want to do : I want to embed xterm output from my >> local machine into a webpage for data (the locations of text fields zones) >> the webpage delivered. Why would I want to use ssh? >> >> >> > Hi, > > ok, i misunderstood you, i thought you were trying to run a terminal > session through apache over the net. I read a little about plugger, so i > have to correct myself. It is only aimed at multimedia playpack, i don't > know if it can be tweaked to your needs. Xembed sounds more promising here, > though you probably still have to code your own browser plugin for it and > you'll need a terminal, that talks Xembed and provides the neccessary > controls. But from what I read so far, this is quite possible. > http://multimedia.cx/diamondx/ and > http://labs.trolltech.com/blogs/2005/08/10/playing-around-with-xembed/might help you with further info. > > regards, > > Peter Marquardt > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Mplayerplug-in-devel mailing list > Mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mplayerplug-in-devel > > -- Christophe-Marie Duquesne élève ingénieur 2A ensimag |
From: Kevin D. <kde...@gm...> - 2008-07-17 15:00:55
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Peter Marquardt wrote: | | | 2008/7/17 Christophe-Marie Duquesne <chm...@gm... | <mailto:chm...@gm...>>: | | I read carefully this answer, I am not sure I have understood | everything : by embeding a terminal, I did not mean doing something | serverside. What I want to do seemed simple to me (but when I read | you it's not anymore :) ) : I want to run a local terminal normally, | like when I run it in gnome. The only difference is that I want this | terminal to be ran inside the firefox window, whereas normally it | would be run in its own window. And that is really the only difference. | | To make a long description short : I want to replace text fields by | instances of local terminals. | | When you say "Plugger is a generic way to embed application output | from your local machine into a webpage for data the webpage | delivered." I feel this is exactly what I want to do : I want to | embed xterm output from my local machine into a webpage for data | (the locations of text fields zones) the webpage delivered. Why | would I want to use ssh? | | | | Hi, | | ok, i misunderstood you, i thought you were trying to run a terminal | session through apache over the net. I read a little about plugger, so i | have to correct myself. It is only aimed at multimedia playpack, i don't | know if it can be tweaked to your needs. Xembed sounds more promising | here, though you probably still have to code your own browser plugin for | it and you'll need a terminal, that talks Xembed and provides the | neccessary controls. But from what I read so far, this is quite possible. | http://multimedia.cx/diamondx/ and | http://labs.trolltech.com/blogs/2005/08/10/playing-around-with-xembed/ | might help you with further info. | | regards, | | Peter Marquardt Peter, Even with Xembed you can't do what you want to do. Your best option would be to use a remote X term via ssh. Here is what a plugin could do. 1. You could specify a specific mimetype (application/x-term) 2. put an embed tag on your web page like <embed mimetype='application/x-term' host='myhost.com' width=400 height=300> 3. Write a plugin that handles the mimetype 4. Have the plugin read the host variable and then open an ssh connection to myhost.com 5. The plugin would need to grab the window that is opened and embed it via Xembed into the browser window, or just leave it floating on your desktop. I think the mozilla sample plugin is much easier to follow in this case. But really a shell script would be easier to maintain and easier to deploy. Kevin - -- Get my public GnuPG key from http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkh/XoAACgkQ6w2kMH0L1dG53QCfZl+BSLS5ekxeTGb09fb1J5// TW8An3MNFm+EOoCPXeNMolXdosJJk/Tx =W5MC -----END PGP SIGNATURE----- |
From: Peter M. <pet...@go...> - 2008-07-18 16:51:19
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 17.07.2008 um 17:00 schrieb Kevin DeKorte: > > Peter, > > Even with Xembed you can't do what you want to do. Your best option > would be to use a remote X term via ssh. > > Here is what a plugin could do. > > 1. You could specify a specific mimetype (application/x-term) > 2. put an embed tag on your web page like > > <embed mimetype='application/x-term' host='myhost.com' width=400 > height=300> > > 3. Write a plugin that handles the mimetype > 4. Have the plugin read the host variable and then open an ssh > connection to myhost.com > 5. The plugin would need to grab the window that is opened and > embed it > via Xembed into the browser window, or just leave it floating on your > desktop. > > I think the mozilla sample plugin is much easier to follow in this > case. > > But really a shell script would be easier to maintain and easier to > deploy. > > Kevin > > Kevin, that's exactly what i had in mind... I still can't figure, why Christophe-Marie would want to do this. I only skimmed the xembed docs, but they sound enthusiastic about being able to embed nearly any applications output into nearly any other app, so i thought this might be possible. regards, Peter Marquardt -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFIgMnyq8qXHOS9wq8RArthAJ0d826Q1RFRrfyV+tsq4IulOXS8hACfXrXg O5KUq0pEESI5t4tf2RmPzgw= =QscJ -----END PGP SIGNATURE----- |
From: Kevin D. <kde...@gm...> - 2008-07-18 17:22:59
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Peter Marquardt wrote: | | Am 17.07.2008 um 17:00 schrieb Kevin DeKorte: |> Peter, | |> Even with Xembed you can't do what you want to do. Your best option |> would be to use a remote X term via ssh. | |> Here is what a plugin could do. | |> 1. You could specify a specific mimetype (application/x-term) |> 2. put an embed tag on your web page like | |> <embed mimetype='application/x-term' host='myhost.com' width=400 |> height=300> | |> 3. Write a plugin that handles the mimetype |> 4. Have the plugin read the host variable and then open an ssh |> connection to myhost.com |> 5. The plugin would need to grab the window that is opened and |> embed it |> via Xembed into the browser window, or just leave it floating on your |> desktop. | |> I think the mozilla sample plugin is much easier to follow in this |> case. | |> But really a shell script would be easier to maintain and easier to |> deploy. | |> Kevin | | | | Kevin, | | that's exactly what i had in mind... I still can't figure, why | Christophe-Marie would want to do this. | I only skimmed the xembed docs, but they sound enthusiastic about | being able to embed nearly any applications output into nearly any | other app, so i thought this might be possible. | | regards, | Peter Marquardt Another problem he may run into if he does this, is that firefox likes to grab the keyboard and not give it to embedded applications. So that might be a problem as well. Kevin - -- Get my public GnuPG key from http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkiA0VgACgkQ6w2kMH0L1dGMIQCfS5asw7nbS5WY//NnKQsJX8Ts HrAAn22t2cUr0HGnepDBQFT7KBdCcczk =DCPi -----END PGP SIGNATURE----- |
From: Christophe-Marie D. <chm...@gm...> - 2008-07-21 06:55:45
|
:) It's true that what I want to do is odd. Do you know vimperator? http://vimperator.mozdev.org/ It's a firefox extension written in javascript for browsing the web with the vim shortcuts. If you are a vim user, you will love it. Have a look at it, if you don't know, it's really great. There is still a key feature missing in this extension, it's the ability to use vim to edit text in your browser. There have been hacky attempts to code the vim behaviour for text fields in javascript, but it is still buggy and not very enjoyable to use : for example, I think that would be great if you could use your .vimrc. You should also be able to execute external commands with ':!external_command'. And you cannot save files. That is why I believe being able to embed a terminal in place of text fields would be great, because it would allow you all those things, and much more : you could run ANY program from firefox, I find that quite exciting. So at the moment, I am just asking if that could be possible to those who have already done a good job in embeding another application. I think it is a good way to start. I'm still reading the xembed specifiaction, and I don't know where to start yet, but hopefully, as soon as I'll feel ready, I'll start something. Thanks for having answered to my questions, any remark is welcome. On Fri, Jul 18, 2008 at 7:22 PM, Kevin DeKorte <kde...@gm...> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Peter Marquardt wrote: > | > | Am 17.07.2008 um 17:00 schrieb Kevin DeKorte: > |> Peter, > | > |> Even with Xembed you can't do what you want to do. Your best option > |> would be to use a remote X term via ssh. > | > |> Here is what a plugin could do. > | > |> 1. You could specify a specific mimetype (application/x-term) > |> 2. put an embed tag on your web page like > | > |> <embed mimetype='application/x-term' host='myhost.com' width=400 > |> height=300> > | > |> 3. Write a plugin that handles the mimetype > |> 4. Have the plugin read the host variable and then open an ssh > |> connection to myhost.com > |> 5. The plugin would need to grab the window that is opened and > |> embed it > |> via Xembed into the browser window, or just leave it floating on your > |> desktop. > | > |> I think the mozilla sample plugin is much easier to follow in this > |> case. > | > |> But really a shell script would be easier to maintain and easier to > |> deploy. > | > |> Kevin > | > | > | > | Kevin, > | > | that's exactly what i had in mind... I still can't figure, why > | Christophe-Marie would want to do this. > | I only skimmed the xembed docs, but they sound enthusiastic about > | being able to embed nearly any applications output into nearly any > | other app, so i thought this might be possible. > | > | regards, > | Peter Marquardt > > Another problem he may run into if he does this, is that firefox likes > to grab the keyboard and not give it to embedded applications. So that > might be a problem as well. > > Kevin > > > - -- > Get my public GnuPG key from > http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org > > iEYEARECAAYFAkiA0VgACgkQ6w2kMH0L1dGMIQCfS5asw7nbS5WY//NnKQsJX8Ts > HrAAn22t2cUr0HGnepDBQFT7KBdCcczk > =DCPi > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Mplayerplug-in-devel mailing list > Mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mplayerplug-in-devel > -- Christophe-Marie Duquesne élève ingénieur 2A ensimag |
From: Peter M. <pet...@go...> - 2008-07-24 16:19:15
|
2008/7/21 Christophe-Marie Duquesne <chm...@gm...>: > :) It's true that what I want to do is odd. > > Do you know vimperator? http://vimperator.mozdev.org/ > It's a firefox extension written in javascript for browsing the web with > the vim shortcuts. If you are a vim user, you will love it. Have a look at > it, if you don't know, it's really great. > > There is still a key feature missing in this extension, it's the ability to > use vim to edit text in your browser. There have been hacky attempts to code > the vim behaviour for text fields in javascript, but it is still buggy and > not very enjoyable to use : for example, I think that would be great if you > could use your .vimrc. You should also be able to execute external commands > with ':!external_command'. And you cannot save files. That is why I believe > being able to embed a terminal in place of text fields would be great, > because it would allow you all those things, and much more : you could run > ANY program from firefox, I find that quite exciting. > I'm actually quite happy, that my browser doesn't do this. Being able to run any program is a huge security problem in my opinion. Which shortcuts do you miss? And what advantage would your vimrc bring you? To execute an external comand, i hit Alt-F2, though i think that's a kde-only feature. Saving files? From a text box? Copy and Paste should do the trick. Don't get me wrong, i'm not against your idea, but i'd like to understand, why you want to go through the hassle of coding a plugin with a potentially huge security risk to achieve things that can be done otherwise. > > > So at the moment, I am just asking if that could be possible to those who > have already done a good job in embeding another application. I think it is > a good way to start. I'm still reading the xembed specifiaction, and I don't > know where to start yet, but hopefully, as soon as I'll feel ready, I'll > start something. > > Thanks for having answered to my questions, any remark is welcome. > > > curiously, Peter Marquardt |
From: Kevin D. <kde...@gm...> - 2008-07-24 16:59:25
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Peter Marquardt wrote: | | | 2008/7/21 Christophe-Marie Duquesne <chm...@gm... | <mailto:chm...@gm...>>: | | :) It's true that what I want to do is odd. | | Do you know vimperator? http://vimperator.mozdev.org/ | It's a firefox extension written in javascript for browsing the web | with the vim shortcuts. If you are a vim user, you will love it. | Have a look at it, if you don't know, it's really great. | | There is still a key feature missing in this extension, it's the | ability to use vim to edit text in your browser. There have been | hacky attempts to code the vim behaviour for text fields in | javascript, but it is still buggy and not very enjoyable to use : | for example, I think that would be great if you could use your | .vimrc. You should also be able to execute external commands with | ':!external_command'. And you cannot save files. That is why I | believe being able to embed a terminal in place of text fields would | be great, because it would allow you all those things, and much more | : you could run ANY program from firefox, I find that quite exciting. | | | I'm actually quite happy, that my browser doesn't do this. Being able to | run any program is a huge security problem in my opinion. | Which shortcuts do you miss? And what advantage would your vimrc bring you? | To execute an external comand, i hit Alt-F2, though i think that's a | kde-only feature. | Saving files? From a text box? Copy and Paste should do the trick. | Don't get me wrong, i'm not against your idea, but i'd like to | understand, why you want to go through the hassle of coding a plugin | with a potentially huge security risk to achieve things that can be done | otherwise. | | | | | So at the moment, I am just asking if that could be possible to | those who have already done a good job in embeding another | application. I think it is a good way to start. I'm still reading | the xembed specifiaction, and I don't know where to start yet, but | hopefully, as soon as I'll feel ready, I'll start something. | | Thanks for having answered to my questions, any remark is welcome. | | | | curiously, | | Peter Marquardt | I know this is a low traffic list, but we are pretty far offtopic.. so lets close out this thread.. Thanks, Kevin - -- Get my public GnuPG key from http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFIiLTT6w2kMH0L1dERAo8CAJ0XPGRCYeD0d+a961YZiAW6jzYayQCghU2D c5Jc7zeC9iiuyxkxSDInvM8= =1Zor -----END PGP SIGNATURE----- |