Page 1 of 2

[Tool] Nlist - remote content/code-browsing -

Posted: Sat Dec 01, 2007 3:50 pm
by newdep
This is a remote content/code-browsing tool. Small and effective.

Under development,This is a pre-release.
Just to get an impression on what it will become, currently it is viewing only)

(load "http://www.nodep.nl/downloads/newlisp/nlist.lsp")

Enjoy, Norman.

PS: should work on all OSes ;-)

Posted: Sat Dec 01, 2007 5:32 pm
by newBert
Nice :)
It works on WinXP in any case.

The info-text in the text-pane is not correctly layed out : first character of each line is hidden... but scripts are well displayed.

Usefull tool.

Posted: Sat Dec 01, 2007 7:17 pm
by newdep
owww yes thank for this hint..
Im always working on Linux but it looks not as it should under windows,
Ill see how I can fix this for the next release..

[edit] new version v02 uploaded

Posted: Mon Dec 03, 2007 8:33 am
by cavva
WinXP and newLISP 9.2.0 here

it return an error:

Code: Select all

array, list or string expected : (env "NEWLISPDIR")
on my default installation (env "NEWLISPDIR") return nil

Posted: Mon Dec 03, 2007 9:00 am
by HPW
For me on WIN XP/WIN2K it returns:
newLISP v.9.2.8 on Win32.

> (env "NEWLISPDIR")
"C:\\Programme/newlisp"
>

Posted: Mon Dec 03, 2007 9:15 am
by cormullion
cavva wrote:
on my default installation (env "NEWLISPDIR") return nil
I think that was introduced in 9.2.1 so it's not in the current (non-development) version.

Norman's living on the (b)leading edge!

Posted: Mon Dec 03, 2007 7:20 pm
by newdep
oo sorry for that,
yes I always have the latest Hot-from-the-oven newlisp version ;-)



Anyway.. the nlist content-browser will have new features in the new release.
'load is removed, a save remote url procedure is introduced..and
some other handy features.. hope to keep it compact and simple ;-)

That release will also join the competition ;-)

Posted: Tue Dec 04, 2007 2:57 pm
by newdep
nlist.lsp version v0.3 release!
(tested with newlisp-9.2.8 and GS 1.7)

Pre-mature but globaly its working (nice ;-) (lots of feature to add)


Dont use v0.2 any more.. also convert you older nlist.idx into the new format! (strings only)

(load "http://www.nodep.nl/downloads/newlisp/nlist.lsp")


Enjoy..


PS: perhaps someone with a Mac could show me a picture
on how the nlist looks on MacOs ? just currious...

Posted: Tue Dec 04, 2007 4:05 pm
by cormullion
newdep wrote: PS: perhaps someone with a Mac could show me a picture
on how the nlist looks on MacOs ? just currious...
Image

Looks pretty good - it took a couple of keypresses to get it started...

Posted: Tue Dec 04, 2007 4:10 pm
by newdep
Aa great thanks... yes I see alreay a flaw ;-)

You miss the description bar... good to see that it differs per OS..
Ill need to find a different way to dispay the content in the bottom of the screen..

Thanks for the screen dump. looks pritty nice btw ;-)

Posted: Tue Dec 04, 2007 4:30 pm
by Lutz
Do 3 rows by 1 column (or is it 4 rows by 1 column?) grid layout at the top level. Then in each of the 3 (or 4) cells do a flow layout in a gs:panel.

The gs:panel in each cell will expand to its maximum size in the grid and doe not need to be sized. The flow layout inside the gs:panel lets you set the size of the elements contained.

Perhaps for the big cell (list box and text area) you do a border layout with "east", "center" or "east" "west".

On my Mac I see of the URL line only the top half. Even on the same platform there are still differences on different resolution displays.

Lutz

ps: always do nesting of simpler layouts to achieve complexer layouts. gs:panel is cheap on resources.

Posted: Tue Dec 04, 2007 7:51 pm
by newdep
Hi Lutz,

I tried your advice but the grid-layout on main is a nightmare..
although setting the flow-layout inside the panel its not spacing nicely.

a grid-layout of 3 1 0 0 gives me the list-panel and output-panel in
the midle of the screen and im unable to get them to the top of the main
window... its not outlining to its full size..

I fiddled now for 3 hours with this but its not happening, i tried including
panels make only 2 or three or more.. its not working nicely when grid-
layout is selected.. Ill keep on trying..


Norman.

Posted: Tue Dec 04, 2007 8:32 pm
by Lutz
I wasn't sure about the grid layout choice myself. The grid layout tries to make cells of equal size and of course we don't want this and I forgot about that.

Perhaps a border layout for the main structure instead, where you can size "north" and "south" parts vertically via the panel sizes and the "center" panel will try to take up the rest of the space.

"north" -> ps:panel with flow layout for label and url-bar
"center" -> gs:panel with list-box and text area in flow layout
"south" -> gs:panel flow-layout for the status fields

Lutz

Posted: Tue Dec 04, 2007 9:56 pm
by newdep
Lutz,

The problem is probably the fact that the system-fonts are directly bound
to the size in height/length of the text-fields and area's..and every OS has different default fonts.. setting a font style for the text-area/field does
simmulate the size, but sizes of font are also different between OS types..
I think its a never ending story ;-) Ill just need to think of something more specific..

PS the "center"is nicer indeed for the middle cell..

Norman.

Posted: Wed Dec 05, 2007 2:10 pm
by newdep
* new v0.4*


(load "http://www.nodep.nl/downloads/newlisp/nlist.lsp")

Lots of changes in nlist v0.4
- Expirimented with Panels and grid switched to nlist.cfg colution.
- Changed Info window to Monospaced, better font for script display.
- XY coords/size of nlist are saved when doing "Quit" or windowclose
- nlist now has a configfile called ./nlist/nlist.cfg
- Removed nlist.uri, bookmarks are now stored inside nlist.cfg!
- Shelf-menu is now automaticly updated after doing a bookmark
- Switching between Text and HTLM is now possible in output window.
last textmode is also saved when the nlist is closed.


Lutz.. Is it possible to make newLispDoc compatible with the text/html in GS?
Or the other way around? Would be so nice to view newLIspDoc files from
within a text/html field.


Secondly.. Is it possile that the "web links" that are inside a text/html can
be pre-configured? Seems text/field in html mode now always seeks for
index.html..that not always handly..PS... This works on Windows but NOT under
Linux... Linux seeks always for index.html it seems..

thirdly.. Have a look at the dynamic switch between text/plain and text/html
there must be a better way to do this "on the fly?" what do you think? is GS
up to it? ;-)


Enjoy..

Norman.

Posted: Wed Dec 05, 2007 3:50 pm
by cormullion
coming on nicely...!

Here's some constructive criticism... :)

On Mac the initial display is odd - the idx: label stretches all the way across the top and the text input box is mostly hidden below. It's fixed by changing 800 to 810 for width, for example

I sometimes have to press the return key a few times before I see anything...

Is it possible to get a single click working in the left pane? Double-clicks are OK, but browser-type things often use single clicks...

Posted: Wed Dec 05, 2007 3:50 pm
by Lutz
"text/plain" and "text/html" are built-in Java modes for gs:text-pane (JTextPane and JEditorPane in Java), and there are no Java APIs to change/modify their behavior.

Lutz

Posted: Wed Dec 05, 2007 4:12 pm
by newdep
Cormullion,
I can change the initial size but it differs per OS very much.
Doing a resize of the window and making it all fit. Then Quit and
restart nlist will make it nicely fit. (saved inside ./nlist/nlist.cfg) Then
you dont have to resize it anymore..or you could..
But i could change the initial sizes indeed.

The Idx input field always reactis to the <enter> I cant change this this is
internal Java/GS behavior. There should not be a delay when loading local
files, there could be a delay when fetching http:// urls..thats a network issue..(or
my ISP has still troubles... :-( But i dont have those much here...

Where did you put your nlist.idx ?? I like to put your files to my nlist shelf! ;-)

Yes would like to have a single click also on the left list-pane but thats
also internaly GS/Java.. Actualy nlist does everything by default of GS
(to keep it simple, i hope..)



Lutz, oke thanks... Although its strange We must accept it ;-)

Posted: Wed Dec 05, 2007 5:02 pm
by Lutz
In the upcoming 9.2.9 (on the weekend) gs:mouse-event can be used also on list boxes to trap single clicks.

Lutz

Posted: Wed Dec 05, 2007 5:42 pm
by cormullion
I put the nlist.idx file here:

http://unbalanced-parentheses.nfshost.com/downloads/

Most of the files seem to display OK.

Usually, that folder is explored more automatically (and colourfully) using http://unbalanced-parentheses.nfshost.c ... i?download. Perhaps I'll write a bit of code that scans the contents of that folder and updates the nlist.idx file automatically...

Posted: Wed Dec 05, 2007 10:23 pm
by newdep
Lutz wrote:In the upcoming 9.2.9 (on the weekend) gs:mouse-event can be used also on list boxes to trap single clicks.

Lutz
aaa nice....

I found another curriosity... the font cant be changed (linux) when
i switch between a text - html pane... odd?? is that static too perhpas?

Posted: Wed Dec 05, 2007 10:25 pm
by newdep
cormullion wrote:I put the nlist.idx file here:

http://unbalanced-parentheses.nfshost.com/downloads/

Most of the files seem to display OK.

Usually, that folder is explored more automatically (and colourfully) using http://unbalanced-parentheses.nfshost.c ... i?download. Perhaps I'll write a bit of code that scans the contents of that folder and updates the nlist.idx file automatically...

Aaa found them...far more easier code browsing this way ;-)


Yes i thought of that too ..something that generates automated nlist.idx
files in text and/or GS/Java html pane format...but be our guest ;-)


PS: I posted v05 with 2 small changes...hope its looks better on Mac now..

Posted: Thu Dec 06, 2007 9:36 am
by cormullion
newdep wrote: ..something that generates automated nlist.idx
files in text and/or GS/Java html pane format...but be our guest ;-)
For that, the information needs to be attached to each file somehow, then a script could read that information and compile an idx file. Perhaps you could somehow make newlispdoc comments and nlist.idx fields work together...? :)

;; @module - could be same as filename (field 1)?
;; @description - for field 5?
;; @location
;; @version
;; @author

Then you could use:

;; @os
;; @category
;; @ui

for your fields 2 3 4.

Then a script could scan for newlispdoc comments and generate an nlist.idx file as well.

And by forcing us all to write newlispdoc comments for all our files, we defeat the forces of chaos and disorder :) :)

Posted: Thu Dec 06, 2007 12:36 pm
by newdep
Cormullion..yes ill think about that... Somehow it must be possible ;-)







nlist release v0.6

- You can now decrypt text files that are crypted using 'Encrypt.
This enables you to leave messages for others or protect code from
being viewed by others. The person who knows the Crypt-Key can
enter the key and the encrypted text will be shown in the output-panel.
If the key is incorrect then text will be crypted again! You 'could'
add inside nlist.idx a notification that the files is encrypted
i.e. {crypt} {enc}..
- outlining is again to the "left"

* Decryption/Encryption *

You can include encrypted files, text files or binary's on your location and
display them by including them inside the nlist.idx. Pressing the right mouse
button will popup the menu which includes "Decrypt/Encrypt Text". When
you select this option a new window will appear that enables you to enter
the "Crypt-Key" to Decrypt the text or Encrypt the text. If the text is not
encrypted you can Encrypt the text by providing a Crypt-Key and then select
"Crypt" and "Save File" from the Menu to store the file localy!
If the text/binary is encrypted you can select the Crypt-Key to Decrypt the
file and if the key is correct the text will be shown to you. This is a way
to drop messages or files for people that only know the Crypt-Key.
This option uses the newlisp 'encrypt.





(load "http://www.nodep.nl/downloads/newlisp/nlist.lsp")

Posted: Thu Dec 06, 2007 2:02 pm
by cormullion
Looks OK now on Mac.

But I'm not seeing your stuff:

no (nlist.idx) found at: (http://www.nodep.nl/downloads/newlisp/)