NicoEdit 1.6
June 27, 2009 —
BarryK
This is so exciting! Nicolas has fixed the problems that I mentioned in my previous blog post:
http://bkhome.org/archive/blog2/200906/nicoedit-text-editor.html
http://bkhome.org/archive/blog2/200906/nicedit-text-editor.html
Here is the snapshot again:
Nicolas left the version number at 1.5, the same as before, so I bumped it up to 1.6. The PET package 'nicoedit-1.6-pup4.pet' will be uploaded to ibiblio soon.
As before, the PET package has 'bk_compile' script to compile the source, and the source is included in the PET package.
NicoEdit is looking really good, and I was wondering what else it needs to replace Geany and Medit and become the only builtin text editor in Puppy. Perhaps this:
1. Optional line wrapping (remembered in .NicoEdit.rc).
2. Tabs.
Comments
NicoEdit bugsUsername: dogone
Barry, please check the followin before "signing-off" on NicoEdit 1.6. Under 415, NicoEdit 1.5: 1. Ignores CTRL-S. 2. Prompts that the file "not registered" when closed with unsaved edits. 3. Strips the executable flag from scripts when they are saved. Otherwise, it's great!
Suggestions
Username: Pizzasgood
"I haven't had a chance to try it myself, sorry (maybe tomorrow), but from the screenshots it doesn't look like it has one of those nice integrated find-boxes like in Geany. Same for the jump-to-line box. I find those pretty useful. Really annoying to have to open a separate window/box/toolbar just to search or jump to a line-number. Other features I like a lot in Geany are code-collapsing, indenting multiple lines at once by selecting them all and pressing tab, and the block-select (hold CTRL and select, and it works in a block rather than line-based). That last one is extremely handy in certain situations. Another neat feature that it may already have, not sure, is highlighting the matching bracket/paren when the cursor is next to one. I also like when the status-bar tells me which column I'm in. It looks nice and clean, though the toolbar is taller than I prefer. And if that isn't already customizable, it should be easy to make it so. I've never seen any point in having cut/copy/paste buttons, for example, and like to use small icons with no text to leave more space for viewing things. But that's just me.
NicoEdit
Username: Nicolas
"Hi All Version 2 beta ! News: Correct some bugs Added new goto line function Added new search function (click on the search button on toolbar) Added "choose tab width" Download it here: http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=19605 I read all your messages, and i don't exacly what you want, do you want a simple text editor, an ide or both ? Nicolas.
NicoEdit v2beta
Username: bee
"1) Is regex possible? In the works? 2) Save should not move the cursor 3) keyboard shortcuts, preferably user selectable
Help! I miss my lifebuoy!
Username: Visitor
"Wouldn't it be possible to retain Leafpad (73k)? It's like a lifebuoy for any newbie in the frightening "world of vi". If Leafpad is doomed, my greatest wish would be that "Open As Text" in ROX-Filer would mean literally that, not "Open with NicoEdit". In other words, it would be nice to have a "dumb" mode in the default text editor.
Version 2 Beta 2 !
Username: Nicolas
"Hi All, Version 2 beta 2 ! News: Added possibility to choose the style of the toolbar, Added keyboard shortcuts in menus, Added a progress bar when preview or export as pdf, Added "show line and col number" when edit text, Fix: when save a file, do not move cursor at first line. Download it here: http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=19628 Nicolas.
Version 2 Beta 3 !
Username: Nicolas
"Hi, Version 2 beta 3 ! News: Search in text is now fully working Added "signal for search and gotoline, when you type text to search or line to go, just press enter ! " Added "F11 shortcut for fullscreen/unfullscreen" Added "Auto-indent, Indent-on-Tab, Indent-Width" Added "When you click on change font, the font dialog remember the last selection" Deleted the "big" search box ! Donwload it here: http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=19652 Nicolas.
Re: NicoEdit
Username: BarryK
"Nicolas, That code I put in to test the "shebang" line in a file, I think it has some problems. 1. I opened the file for reading, but that probably isn't necessary, as it would already be opened? 2. A 4096 character buffer is assigned, but if the first line is longer than that then NicoEdit will crash with a segmentation fault. Is there any way to just read a fixed number of bytes from the beginning of the file?
Re: NicoEdit
Username: Nicolas
"Hi Barry, I don't know what is a "shebang", can you send me a "shebang" file ? Send at: nikobordx@hotmail.com Nicolas.
Shebang!
Username: Pizzasgood
"The shebang is the first line in many scripts that tells the shell what interpreter to run. They start with a #! followed by the path to the interpreter, and sometimes also options to pass to the interpreter. Example: #!/bin/sh More info: http://en.wikipedia.org/wiki/Shebang_%28Unix%29
Shebang
Username: Nicolas
"Thanks pizzasgood ! I have no problem opening this kind of file ! Probably you are using older version ! For the "crash", i know this problem, it come from the recent menu manager ! I take a look tomorrow to try to correct this ! Nicolas.
NicoEdit
Username: Nicolas
"Hi Barry and other, There is a new version "Little Pumping Version" This version is a little bugged ! Now you can use normal menu and toolbar or use themed version ! See the screenshot here: http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=19718 And of course download it here: http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=19719 So what do you think ? Nicolas. PS: when you change the look in the View menu, restart NicoEdit to take effect !
New version of NicoEdit
Username: Nicolas
"Hi All, New version of NicoEdit. News: Added: Close the find bar if the user presses Esc Added: Close the goto line bar if the user presses Esc Added: When the cursor is inside the find-bar, put back into the text area by pressing the up key Added: F3 keyboard shortcut for 'find-next' Added: Control-f put the cursor into the find-bar's box Added: Ask user to restart NicoEdit when select Normal or Themed view Fix: The line/column display in the statusbar auto-update when the cursor is moved around Fix: Pressing Control-f work when you are in full-screen Download it here: http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=19759 Please test it and let me know if you like it ! Nicolas.
New version of NicoEdit
Username: bee
"I tried to compile the new version 20090704. ./waf configure 'configure' finished successfully (0.937s) ./waf build nicoedit.gs:858.32-858.35: warning: Argument 1: Cannot pass null to non-null parameter type ...snip ~240 lines of errors... default/src/application-menu.c:830: error: 'GeetkApplicationMenuPrivate' has no member named '_exit_b utton' Waf: Leaving directory `/root/my-applications/NicoEdit/_build_' Build failed -> task failed (err #1): {task: cc application-menu.c -> application-menu_1.o} Any suggestions?
New version of NicoEdit
Username: bee
"Is this it? I do not have "Gee"? What is Gee? Previous versions compiled. (I did not try "Little Pumping Version") default/src/application-menu.c:5:22: error: gee/list.h: No such file or directory
NicoEdit
Username: ttuuxxx
"Hi bee you need Gee, which you can download the 2 packages from http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-woof/libgee-0.1.5.pet http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-woof/libgee_DEV-0.1.5.pet And there's also a UpupJ versions http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-woof/libgee-0.1.5-uj.pet http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-woof/libgee_DEV-0.1.5-uj.pet ttuuxxx
libgee
Username: BarryK
"For Upup and the latest Ppup 415, libgee and vala should both be in the 'devx' file. Um, I think Upup has an older vala package though.
libgee
Username: bee
"I was using 415 and got the error. So...? Oh, and the "Add Comment" still does not work with MacOSX Safari.
libgee
Username: Nicolas
"Hi Bee, If your are using the waf system, take a look at the file src/wscript_build at the line: prog.find_sources_in_dirs ('.') prog.includes = '/usr/local/include/gee-1.0' prog.cxxflags = '-O3' prog.libpath = '/usr/local/lib' prog.lib = 'gee' Probably your includes files are not in /usr/local/include/gee-1.0 ? Nicolas.
NicoEdit
Username: Nicolas
"Hi All, New little version. News: Added a script for building in Puppy Linux (see README) Added a .desktop file If your file is executable, when you save it, the file keep this permission Download it here: http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=19803 See you, Nicolas.
NicoEdit
Username: Nicolas
"!!! Update !!! I replace the only script by 3 scripts (bk_compile, bk_install, bk_package) Download it here: http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=19805 Nicolas.
NicoEdit
Username: bee
"Hello Nicolas Probably your includes files are not in /usr/local/include/gee-1.0 ? I am using 415, and it is in: /usr/include/gee-1.0
NicoEdit
Username: Nicolas
"Hi Bee, Does it compile when you enter the correct path in the file src/wscript_build ? Nicolas.
NicoEdit
Username: bee
"Hi Nicolas No. 415 has Vala-0.7.3 and your latest requires Vala-0.7.4
NicoEdit
Username: Nicolas
"Yes NicoEdit require vala 0.7.4 since version 1. If you use puppy, you can download vala 0.7.4 here: http://dotpups.de/puppy4/dotpups/Programming/Vala/vala-0.7.4-i486.pet Nicolas.
NicoEdit
Username: Bee
"''Yes NicoEdit require vala 0.7.4 since version 1'' How did I compile all versions up to and including 2.0 Beta 2 with vala 0.7.3? ok, I installed vala-0.7.4-i486.pet changed path to: /usr/include/gee-1.0 NicoEdit 2.0 Beta 5 is working. Will you change Find such that after typing the search string, 'return' will initiate the find?
NicoEdit
Username: Nicolas
"Hi Bee, 'return' and 'F3' initiate the find. Does NicoEdit work correctly for you ? Nicolas.
NicoEdit
Username: Bee
"Yes, trying again 'return' does work. I was near the end of a file and no more to be found. Also clicking 'Find backward'... return gets 'stuck' there toggling the checkbox. I would rather have: 1) a checkbox to wrap search 2) Shift+Return and Shift+F3 to Find backward
NicoEdit
Username: Nicolas
"Hi Bee, This is not a bug, the function you want is not implemented yet and should be in the next version ! Stay tuned ! Nicolas.
NicoEdit
Username: Nicolas
"Hi All, New version of NicoEdit ! News: Change the auto_detect_syntax by a better one Use ribbon as a library Update French translation Update the puppy's scripts Download it here: http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=19833 Nicolas.
NicoEdit
Username: Bee
"Any chance you would change find to an incremental find, something like in SeaMonkey or Firefox, many people are familar with that now.
NicoEdit
Username: Nicolas
"Yes Bee, in the next version ! Nicolas.
NicoEdit
Username: Bee
"ok... Nicolas! That is great. Compiling the most recent: 1) 'About' has the version number the same as the previous 2.0 Beta 5. The size is different. 2) There is a message 'cannot pass null...' Is that a problem? puppy# ./bk_compile ENTER: nicoedit.gs:865.32-865.35: warning: Argument 1: Cannot pass null to non-null parameter type buf = new SourceBuffer(null) ^^^^ Compilation succeeded - 1 warning(s)
NicoEdit
Username: Nicolas
"Bee, 1) I don't change the number version everyday i release a new version. 2) This is not a problem. Nicolas.
NicoEdit
Username: Bee
"Consider combining the status bar and find? + find left justified + status right justified - no need for close + incremental find - no need for find button or return Find: [___________] [] Match case [] Wrap Line: 1 Column: 22
New NicoEdit post
Username: BarryK
"I've started a new thread on NicoEdit: http://bkhome.org/archive/blog2/200907/415-vala-and-nicoedit-upgraded.html
Tags: woof