Curious to know if any Leonistas tried out ChatGPT?

88 views
Skip to first unread message

Félix

unread,
Jan 14, 2023, 7:58:26 PM1/14/23
to leo-editor
I did, 

I needed a small utility to do some small cleanup in some files&directory structure, so i thoutght it was the perfect excuse to try out ChatGPT: I just needed to search in a folder for any file named 'README.md'  to be deleted, but only if it would happen to be a direct 'child' of any folder named 'lib', in that unknown and large directory structure.

So here is my interaction with ChatGPT. (i did it in two steps, to show off its  'context preserving' feature)  
Screenshot from 2023-01-14 19-28-49.png
I tried it and it works! Took 15 seconds instead of 10-15 minutes digging in the nodejs docs, refreshing my memory about the fs/paths libs API and/or reading stack overflow while typing and correcting typos to finally make it work...

Most impressive is the explanations that it also gives under it's code snippets!

What a time to be alive - this is blade-runner level sh*t! 

(oh, and in the meantime i'm working on leojs almost every night, very near an alpha release... ill post some updates on that soon!)

Félix

Félix

unread,
Jan 14, 2023, 8:27:06 PM1/14/23
to leo-editor
Note: Right-click and 'Open image in new Tab' to view the image in full resolution!

Félix

Edward K. Ream

unread,
Jan 16, 2023, 2:51:34 AM1/16/23
to leo-e...@googlegroups.com
On Sat, Jan 14, 2023 at 6:58 PM Félix <felix...@gmail.com> wrote:

I needed a small utility to do some small cleanup in some files&directory structure, so i thoutght it was the perfect excuse to try out ChatGPT: I just needed to search in a folder for any file named 'README.md'  to be deleted, but only if it would happen to be a direct 'child' of any folder named 'lib', in that unknown and large directory structure.

Impressive!

I tried the following two queries and got reasonable results:

- Write a python script to create a list of all files in a folder.
- Please change the script to find only .py files.

The second query took longer, but still...

Most impressive is the explanations that it also gives under it's code snippets!

I agree. The examples are good too.
What a time to be alive - this is blade-runner level stuff

:-)

i'm working on leojs almost every night, very near an alpha release... ill post some updates on that soon!)

That's great!!!

Edward

Edward K. Ream

unread,
Jan 17, 2023, 6:25:11 AM1/17/23
to leo-editor
On Monday, January 16, 2023 at 1:51:34 AM UTC-6 Edward K. Ream wrote:

I tried the following two queries and got reasonable results:

I used ChatGPT (for real) to update picture_viewer.py.

The query was something like `write a python script to copy a file from one folder to another`.

The result involved `shutil` and was better than I would have written! The comments and examples were excellent.

No wonder google is worried about competition.

Edward

Thomas Passin

unread,
Jan 17, 2023, 8:08:34 AM1/17/23
to leo-editor
Now try it again with the beautifier ( PR #3057) you just worked on...

Thomas Passin

unread,
Jan 17, 2023, 11:05:24 AM1/17/23
to leo-editor
I haven't been able to open the chatGPT page in two different browsers:

ERR_TOO_MANY_REDIRECTS

How are others managing to do it?  I hope not needing to use AI...

jkn

unread,
Jan 17, 2023, 11:28:16 AM1/17/23
to leo-editor

As mentioned elsewhere, I was irritated to have to 'prove I am not a bot' when
attempting to register for ChatGPT!

Shurely someone has asking it "what is the Leo Editor"?

lewis

unread,
Jan 21, 2023, 4:00:58 AM1/21/23
to leo-editor
I asked ChatGPT to read https://leo-editor.github.io/leo-editor/scripting-miscellany.html then update a python script with a Leo method.
It worked fine :)

Edward K. Ream

unread,
Jan 21, 2023, 5:10:52 AM1/21/23
to leo-e...@googlegroups.com
On Sat, Jan 21, 2023 at 3:01 AM lewis <lewi...@fastmail.com.au> wrote:
I asked ChatGPT to read https://leo-editor.github.io/leo-editor/scripting-miscellany.html then update a python script with a Leo method.
It worked fine :)

Wow! I thought ChatGPT was limited to its training set. Do you have a transcript? I'd love to see it.

Edward

lewis

unread,
Jan 21, 2023, 6:38:44 AM1/21/23
to leo-editor
I don't have the transcript. The update request was for a script that ChatGPT had already created and I asked for a path to be changed to a  AskOkCancelStringDialog input. So the request was fairly direct.
Reply all
Reply to author
Forward
0 new messages