Re: Text editing in the Karaf console

2013-01-15 Thread Andreas Pieber
Definitely a BIG +1. I've done some quick editing with your patch, karaf and the editor and I must admit I REALLY like it. Although not perfect it would have been so incredible useful to have such a tool in the runtime environment from time to time I'm strongly +1 to simply include it as it and

Re: Text editing in the Karaf console

2013-01-14 Thread Ioannis Canellos
I've update issue: https://issues.apache.org/jira/browse/KARAF-2044 with 2 patches, one for trunk and one for 2.3.x. If there are no objections I'd like to commit those and maybe also for 2.2.x. -- *Ioannis Canellos* * ** Blog: http://iocanel.blogspot.com ** Twitter: iocanel *

Re: Text editing in the Karaf console

2013-01-13 Thread Ioannis Canellos
I moved the project to https://github.com/jledit/jledit and cut a first release. So we can finally add a command for editing. -- *Ioannis Canellos* * ** Blog: http://iocanel.blogspot.com ** Twitter: iocanel *

Re: Text editing in the Karaf console

2013-01-13 Thread Jean-Baptiste Onofré
Great, thanks for the update Ioannis. I gonna take a look. Regards JB On 01/13/2013 03:49 PM, Ioannis Canellos wrote: I moved the project to https://github.com/jledit/jledit and cut a first release. So we can finally add a command for editing. -- Jean-Baptiste Onofré jbono...@apache.org

Re: Text editing in the Karaf console

2013-01-08 Thread Ioannis Canellos
For now I have pushed it at: https://github.com/iocanel/vial -- *Ioannis Canellos* * ** Blog: http://iocanel.blogspot.com ** Twitter: iocanel *

Re: Text editing in the Karaf console

2013-01-06 Thread Guillaume Nodet
I also think a github project could be a good place. If the project is really tied to jline, a subproject of https://github.com/jline could be a good idea, or an individual project maybe. Anyway, I'm eager to have a look at the code and try it :-) On Thu, Jan 3, 2013 at 1:55 PM, Ioannis Canellos

Re: Text editing in the Karaf console

2013-01-03 Thread Ioannis Canellos
I am not sure if having it as part of the Karaf trunk would be a really good idea. Such editor can have a wider scope than the container itself and at its early days it could use a faster release cycle and/or contributions from other communities with similar needs that are not using karaf. Of

Re: Text editing in the Karaf console

2013-01-03 Thread Andreas Pieber
well, in that case I think a github project might be the best solution. Independently we can still include it in trunk as a reference then (which would still have my +1).. Kind regards, Andreas On Thu, Jan 3, 2013 at 1:55 PM, Ioannis Canellos ioca...@gmail.com wrote: I am not sure if having

Re: Text editing in the Karaf console

2013-01-03 Thread Jean-Baptiste Onofré
It makes sense. Why not a jline or jansi extension ? Regards JB On 01/03/2013 01:55 PM, Ioannis Canellos wrote: I am not sure if having it as part of the Karaf trunk would be a really good idea. Such editor can have a wider scope than the container itself and at its early days it could use a

Re: Text editing in the Karaf console

2012-12-28 Thread Ioannis Canellos
I took a stub at creating a console text editor written in java based on jansi and jline. The current implementation is quite simple, loads the whole file into the memory and allows simple text editing operations, scrolling and also undo/redo, paste, save etc. There is a lot of cleaning up to do

Re: Text editing in the Karaf console

2012-12-28 Thread Jean-Baptiste Onofré
Hi Ioannis, it could be awesome to have a kind of vi in Karaf shell ;) It could be very interesting to mix your text editor with internal (Karaf) commands and external (system) commands. +1 to start to take a look on that on trunk. Regards JB On 12/28/2012 04:21 PM, Ioannis Canellos wrote:

Re: Text editing in the Karaf console

2012-12-28 Thread Andreas Pieber
TBH I would neither have a problem putting this directly on trunk. +1 from my side. Kind regards, Andreas On Fri, Dec 28, 2012 at 4:24 PM, Jean-Baptiste Onofré j...@nanthrax.netwrote: Hi Ioannis, it could be awesome to have a kind of vi in Karaf shell ;) It could be very interesting to

Re: Text editing in the Karaf console

2012-12-28 Thread Achim Nierbeck
Me too, so +1 from my side also. regards, Achim 2012/12/28 Andreas Pieber anpie...@gmail.com TBH I would neither have a problem putting this directly on trunk. +1 from my side. Kind regards, Andreas On Fri, Dec 28, 2012 at 4:24 PM, Jean-Baptiste Onofré j...@nanthrax.net wrote: Hi

Text editing in the Karaf console

2012-12-02 Thread Ioannis Canellos
Hi guys, One feature I've always liked to have in the karaf console is the ability to edit text files. See https://issues.apache.org/jira/browse/KARAF-2044 I took a stub last night, to integrate existing editors that might be present in the system with the Karaf console (e.g. vi, nano or edit in

Re: Text editing in the Karaf console

2012-12-02 Thread Guillaume Nodet
Interesting. I had this in mind since a long time but had not thought about bridging a native text editor. One obvious downside is that this would kinda be unix specific ... Now, as to your questions, you're going into dark areas here. You've been warned ;-) On Sun, Dec 2, 2012 at 6:40 PM,

Re: Text editing in the Karaf console

2012-12-02 Thread Jean-Baptiste Onofré
Hi Ioannis, interesting, especially if it works with multiple platform. It could be tricky to maintain ;) but interesting for the users. Around the same area, I would like to add an escape character (like !) to execute native command directly from the Karaf shell (like !ls -l for instance).

Re: Text editing in the Karaf console

2012-12-02 Thread Andreas Pieber
@Ioannis: That's a really great idea! You'll definitely have my Kudos for that :-) @Guillaume: Why unix specifc? You've e.g. edit in windows (as Ioannis noticed). @JB Executing native commands could be kind of dangerous. For example, just because Karaf need some permissions to modify /etc/xyz