Page 1 of 2

History and keyboard shortcut

Posted: Sat 19 Sep 2009, 14:29
by ljfr
Hello,

few remarks:
-some files are created directly in the root folder .nicoedit.files, .NicoEdit.rc
-when opening a document, the Open file browser starts from the root directory, could it start from the folder of the latest opened document.
- when a new document is created, it does not appear in the history menu (not convenient).
-Could we have a keyboard shortcut to get directly to this history menu
(Alt+H ?).
-One nice feature of Geany that Nicoedit lacks is the notification when the active document has been modified from outside the editor (with the option to reload the new version or not).



regards,

Posted: Sun 20 Sep 2009, 11:56
by nikobordx
Hi,

I made a new version of NicoEdit (2.4)

News:
When opening a document, the file browser start from the last used directory.
When a new document is created, it appear in the history menu.
When you press F5, a dialog is opened with history menu.
When document is modified with another texteditor, NicoEdit detect the modification and propose to reload the file.
Some bugs fix.

Nicolas.

Posted: Sun 20 Sep 2009, 12:34
by ttuuxxx
I compiled Nicoedit 2.4 on puppy 4.30
NicoEdit-2.4|NicoEdit|2.4||Document|148K|pet_packages-4|NicoEdit-2.4.pet||Simple text editor|puppy|4|official|

... more feedback

Posted: Mon 21 Sep 2009, 10:29
by ljfr
Hi Nicolas,

Few remarks:
-For find and find/replace:could you use current selection as default input
-For a new line could you use the indentation of the previous line by default.
-Undo/Redo buttons do not work.
-When launched from console, I got this message:

Code: Select all

(nicoedit:26883): GtkSourceView-CRITICAL **: 
gtk_source_language_manager_get_language: assertion `id != NULL failed `
but it still runs fine, by the way ,could you print an usage details when used incorrectly.

+one extra question: How I could put the window at the top of the screen when the program starts
(currently it starts at ~30px from the top on my screen), or maximize it automatically.

Posted: Mon 26 Oct 2009, 08:38
by BarryK
Nicolas,
I running Puppy 4.3.1 and using NicoEdit 2.4.

I'm getting back into learning Genie programming, and I'm updating my Genie intro web pages as I go along.

There is a thought that occurred to me. I'm pasting example code into the web pages, but it would be really nice if I could copy and paste the code with html color syntax markup.

That would be a lovely feature for NicoEdit. In the "Edit" menu have "Copy with HTML markup" or "Copy with color markup".

Or there could be a save item to save with HTML markup.

Posted: Mon 26 Oct 2009, 13:16
by nikobordx
Hi Barry,

Your idea is not bad, but i don't really know how to make this.
I don't know about the html language, and i don't think there is an api for converting a sourceview or textview to html.

I think the most simple way is to use a parser who automatically add the color for word in html format, probably with the replace function in regex ?

Another way is to use a converter, i know adobe propose a pdf to html online converter, you can use NicoEdit to edit your source file, export as pdf and convert with this tool ?
Site is: http://www.adobe.com/products/acrobat/a ... tools.html

Another thing, on your Genie intro web pages, you can change something to avoid confusion:
Me Nicolas (nikobordx) i have created the genie code in http://code.valaide.org and the nicoedit.
The other Nicolas (gege2061) is the creator of ValaIDE and the http://code.valaide.org web site.

I also add a comment on your blog (niko33) : http://puppylinux.com/blog/?viewDetailed=01182

See you,
Nicolas.

Posted: Mon 26 Oct 2009, 23:47
by BarryK
Hey,
I didn't know there are two Nicolas's! I thought you were the same guy!

HTML color markup... it's quite simple. All you have to do is use the <font> tag around the colored text, for example:

This is <font color="red">red</font> text and this is <font color="#ff0000">red</font> again.

This page explains the available colors:

http://snowwhite.it.brighton.ac.uk/~mas ... tml#COLOUR

So a "Copy with color markup" menu item would just have to insert that <font> tag into the text wherever the text has non-default color.

Then paste it into a web page, in say Composer or whatever is being used to edit the web page, and voila, nice colored code!

But, I don't know how to read the highlighted text from the text editor window complete with its formating information.

thanks

Posted: Tue 27 Oct 2009, 16:36
by sc0ttman
Thanks for this.. I love NicoEdit. Great for my PHP work! :)

Posted: Tue 27 Oct 2009, 19:28
by seaside
Hi Nicolas,

You've made a very nice editor which I would use regularly if you could change the search box behavior so that the search starts upon keying enter.

I am so used to a search being initiated after typing in the search term and pressing "enter" that when it doesn't happen, I think the program's frozen - then I realize I have to take my hands off the keys and move the mouse to the arrow button.

Also, if the "find next" function could be mapped to Ctl-g, that would allow a seamless and mouseless user experience.

Thanks for your work,
s

Posted: Wed 28 Oct 2009, 03:46
by caleb72
Hi Nicholas,

Have you noticed that in GtkSourceview there's a few keywords for Genie that are not highlighted as such? Notably "uses" and "construct".

Just wanted to see if it's just me.

Also - just an advice thing - is auto-indenting specified within the GtkSourceview configuration or is that the responsibility of the implementer?

If it's in GtkSourceview I'm wondering how difficult it can be to tinker with the language configuration files and improve the Genie support. I like clever auto-indenting. Does GtkSourceview offer code auto-completion at all?

There's alot of things I'd like NicoEdit to do - but I realise my request ends up being that I'd like NicoEdit to be Valaide. :oops:

Actually, not that I know you can use GtkSourceview with Anjuta I wonder if that's where I should be looking because then I can mix Python, Perl, Genie and more in a fairly well-established IDE (not that I've ever used it).

Regards
Caleb

Posted: Wed 28 Oct 2009, 13:36
by nikobordx
Hi,

seaside:

The shortcut for "find next" is "F3" and F2 is for "find prev".
Ctrl-G is for "goto" line dialog.
Yes i will add enter as shorcut in next version, for the moment, after typing your word to search, press "F3".

caleb72 (I know who is behind this nickname :) ) :

The keyword "uses" is highlighted as violet, and "construct" is red, i don't know why on your computer you doesn't have this !
Auto-indenting is a function inside the Gtksourceview, i don't do anything.
Gtksourceview does not offer a code completion, i will looking the vapi for gtksourcecompletion and example available in c.

For everyone:

Remember, there was a time when NicoEdit was a tiny text reader, it merely served to open a file.
I do not think that I will include all these options, knowing that I'm not a real developer, i'm learning !
Some people want to change this small editor in true ide, which is not the purpose of starting.


If you want an ide for genie, you can wait a little while I finish my future program.
I am currently developing an IDE for genie, with code generator, it is well advanced but not enough to be published.
Using a language almost human, you can (for example):

sqlite_treeview = tree1
imagecol = Photo
stringcol = Name
stringcol = Surname
stringcol = Sex
end_sqlite_treeview

This code produces (the treeview, the treecolumns, the listestore, new row dialog, edit row dialog, and everything needed to load a sqlite database).
You will just be a little patient...

Nicolas.

Posted: Wed 28 Oct 2009, 13:39
by nikobordx
Hi Barry,

Thanks for your message.
I will try to create a parser when i have time.

See you,
Nicolas.

Posted: Thu 29 Oct 2009, 06:02
by caleb72
That's cool Nicholas - I'm also a learner - just interested where to look for things.

I'm not expecting NicoEdit to be an everything IDE - I just thought you probably have some insight on this stuff having integrated the widget in your own project. I'm trying to work out what I should be looking for in an IDE (Anjuta looks interesting as it also includes a gtksourceview widget). For the moment I'm using NicoEdit which is fine while I'm learning.

Looks like you have a good version of genie.lang, but mine had these things missing. I found the one that Jamie put together for Genie and when I get home I'll locate it and send it to Barry for inclusion into a .pet.

Regards
Caleb

piping text into editors

Posted: Fri 22 Apr 2011, 06:21
by wiak
One facility that leafpad provided was the ability to pipe text into it (for example: echo "hello" | leafpad). I'm sorely missing that facility from a GUI editor, though the console editor mp in Puppy Wary does allow that. Is there any way to do it with Nicoedit or Geany that I'm perhaps missing (an optional argument or somesuch)? I don't really want to resort to using temporary files if I can avoid it.

Posted: Fri 22 Apr 2011, 07:22
by technosaurus
you could test the gtk build of minimum profit (mp) from triptico.com (there is a qt backend too)

Posted: Fri 22 Apr 2011, 09:36
by aragon
The gtk-version of mp could be found her

http://murga-linux.com/puppy/viewtopic. ... 604526ef94

I've also compiled the actual version, will upload later...

Aragon