Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 05:35
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Nicoedit 2.3 - text editor with lots of goodies
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 3 Posts_count   Goto page: Previous 1, 2, 3 Next
Author Message
ljfr

Joined: 23 Apr 2009
Posts: 176

PostPosted: Sat 19 Sep 2009, 10:29    Post_subject: History and keyboard shortcut  

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,
Back to top
View user's profile Send_private_message 
nikobordx

Joined: 23 May 2009
Posts: 84
Location: Bordeaux, France

PostPosted: Sun 20 Sep 2009, 07:56    Post_subject:  

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.
NicoEdit.tar.gz
Description 
gz

 Download 
Filename  NicoEdit.tar.gz 
Filesize  102.49 KB 
Downloaded  916 Time(s) 
Back to top
View user's profile Send_private_message 
ttuuxxx


Joined: 05 May 2007
Posts: 10827
Location: Ontario Canada,Sydney Australia

PostPosted: Sun 20 Sep 2009, 08:34    Post_subject:  

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|
NicoEdit-2.4.pet
Description 
pet

 Download 
Filename  NicoEdit-2.4.pet 
Filesize  42.12 KB 
Downloaded  591 Time(s) 

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send_private_message Visit_website 
ljfr

Joined: 23 Apr 2009
Posts: 176

PostPosted: Mon 21 Sep 2009, 06:29    Post_subject: ... more feedback  

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:
(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.
Back to top
View user's profile Send_private_message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Mon 26 Oct 2009, 04:38    Post_subject:  

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.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send_private_message Visit_website 
nikobordx

Joined: 23 May 2009
Posts: 84
Location: Bordeaux, France

PostPosted: Mon 26 Oct 2009, 09:16    Post_subject:  

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/access_onlinetools.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.
Back to top
View user's profile Send_private_message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Mon 26 Oct 2009, 19:47    Post_subject:  

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/mas/courses/html/html1.html#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.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send_private_message Visit_website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Tue 27 Oct 2009, 12:36    Post_subject: thanks  

Thanks for this.. I love NicoEdit. Great for my PHP work! Smile
_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 887

PostPosted: Tue 27 Oct 2009, 15:28    Post_subject:  

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
Back to top
View user's profile Send_private_message 
caleb72

Joined: 15 May 2009
Posts: 57

PostPosted: Tue 27 Oct 2009, 23:46    Post_subject:  

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. Embarassed

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
Back to top
View user's profile Send_private_message 
nikobordx

Joined: 23 May 2009
Posts: 84
Location: Bordeaux, France

PostPosted: Wed 28 Oct 2009, 09:36    Post_subject:  

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 Smile ) :

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.

Edited_time_total
Back to top
View user's profile Send_private_message 
nikobordx

Joined: 23 May 2009
Posts: 84
Location: Bordeaux, France

PostPosted: Wed 28 Oct 2009, 09:39    Post_subject:  

Hi Barry,

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

See you,
Nicolas.
Back to top
View user's profile Send_private_message 
caleb72

Joined: 15 May 2009
Posts: 57

PostPosted: Thu 29 Oct 2009, 02:02    Post_subject:  

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
Back to top
View user's profile Send_private_message 
wiak

Joined: 11 Dec 2007
Posts: 59
Location: Travelling to the Philippines

PostPosted: Fri 22 Apr 2011, 02:21    Post_subject: piping text into editors  

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.
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Fri 22 Apr 2011, 03:22    Post_subject:  

you could test the gtk build of minimum profit (mp) from triptico.com (there is a qt backend too)
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 2 of 3 Posts_count   Goto page: Previous 1, 2, 3 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0978s ][ Queries: 13 (0.0061s) ][ GZIP on ]