# Creating a new mode in the EYESY Editor

**URL:** https://forum.critterandguitari.com/t/creating-a-new-mode-in-the-eyesy-editor/6376
**Category:** EYESY
**Created:** [September 13, 2020, 11:28pm UTC](https://forum.critterandguitari.com/t/creating-a-new-mode-in-the-eyesy-editor/6376 "2020-09-13T23:28:33Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![mbillz](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/mbillz/32/603_2.png) [@mbillz](https://forum.critterandguitari.com/u/mbillz)
#### Post date: [September 13, 2020, 11:28pm UTC](https://forum.critterandguitari.com/t/creating-a-new-mode-in-the-eyesy-editor/6376/1 "2020-09-13T23:28:33Z")

</div>

Hello! I’m booting up my EYESY for the first time and I intend to get straight into script writing!

I’m having a bit of trouble with something very basic - creating files. I feel like I’m missing something obvious, but I don’t see a straightforward way for creating files in the editor. So far, I’ve created a folder and then copy and pasted a `main.py` file from another project and wiped it clean.

Is this the standard way of doing things? Or is it recommended to develop modes in isolation and then upload them when ready to test and integrate it with the hardware?

Edit: Might as well throw a few more questions in here. Is the editor under active development / open source? I see it on Github [here](https://github.com/critterandguitari/EYESY_OS/tree/master/web). I’d love to add in some key commands for save and reload script.

Thanks in advance!

---

<div class="post-metadata">

### Author: ![thetechnobear](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/thetechnobear/32/42_2.png) [@thetechnobear](https://forum.critterandguitari.com/u/thetechnobear)
#### Post date: [September 15, 2020, 3:37pm UTC](https://forum.critterandguitari.com/t/creating-a-new-mode-in-the-eyesy-editor/6376/2 "2020-09-15T15:37:02Z")

</div>

I’ve been doing the same , new folder - copy, paste main.py

I’ve tended to be editing modes on the eyesy, but sometimes I edit on my mac…  
(just because I like to use my favourite code editor)

as you say eyesy\_os is on github, so you could make changes and the offer up as a pull request - I’ve done this in the past with the Organelle.

If you going to make bigger changes, probably worth shooting @chrisk / @oweno a PM, to discuss e.g. check its a direction they want to go in, and they aren’t doing something on ‘in the background’

---

<div class="post-metadata">

### Author: ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)
#### Post date: [September 15, 2020, 4:55pm UTC](https://forum.critterandguitari.com/t/creating-a-new-mode-in-the-eyesy-editor/6376/3 "2020-09-15T16:55:22Z")

</div>

Glad to hear you are working on writing modes!

Yes, copying and pasting is really the only way to make a file right now in the web editor.

The web editor is open source, so any additions welcome. Keyboard controls would be cool.

There are some things I’ve been thinking of for the next update:

- ‘spinoff’ button to create a new mode from an existing one (essentially save as, but makes a folder and everything)
- maybe a button to create a new blank mode
- a button to run the mode you are currently editing (annoyingly you have to navigate to whatever mode you are working using the EYESY iteslf)
- the ‘Save’ button should also trigger the mode to reload

Probably some other stuff. Not working on it right now, but will probably start when we are closer to the next (first) EYESY update.

---

<div class="post-metadata">

### Author: ![mbillz](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/mbillz/32/603_2.png) [@mbillz](https://forum.critterandguitari.com/u/mbillz)
#### Post date: [September 16, 2020, 10:35pm UTC](https://forum.critterandguitari.com/t/creating-a-new-mode-in-the-eyesy-editor/6376/4 "2020-09-16T22:35:07Z")

</div>

Awesome - thanks both of you for the insight!! If I have some time this weekend I’ll take a stab at adding a few things and create a PR.

---

<div class="post-metadata">

### Author: ![mbillz](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/mbillz/32/603_2.png) [@mbillz](https://forum.critterandguitari.com/u/mbillz)
#### Post date: [September 19, 2020, 7:24pm UTC](https://forum.critterandguitari.com/t/creating-a-new-mode-in-the-eyesy-editor/6376/5 "2020-09-19T19:24:03Z")

</div>

Hi @oweno - I made modifications to the relevant web JS file, but I’d like to test on the actual device. I’m new to RPi (or this slightly more granular / OS modification stuff in general) so apologies if these are basic questions. I tried ejecting the card and pulling it up on my Mac, but I’m not seeing the relevant OS files - seems like it’s just system files. I’ve tried `ssh`ing into `eyesy.local` but obviously don’t know the password. Any recommendations? Thanks!

---

<div class="post-metadata">

### Author: ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)
#### Post date: [September 19, 2020, 7:51pm UTC](https://forum.critterandguitari.com/t/creating-a-new-mode-in-the-eyesy-editor/6376/6 "2020-09-19T19:51:04Z")

</div>

SSH is the way to go… swapping the SD card in and out would be a drag (and the Mac can’t read the partitions anyway, only the boot partition which is what you were probably seeing).

You want to use music@eyesy.local, and the password is also music. The files are located at /home/music/EYESY\_OS.

---

<div class="post-metadata">

### Author: ![mbillz](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/mbillz/32/603_2.png) [@mbillz](https://forum.critterandguitari.com/u/mbillz)
#### Post date: [September 19, 2020, 9:07pm UTC](https://forum.critterandguitari.com/t/creating-a-new-mode-in-the-eyesy-editor/6376/7 "2020-09-19T21:07:09Z")

</div>

> [@oweno](#):
>
> music@eyesy.local

yep that worked - thanks!!

---

<div class="post-metadata">

### Author: ![mbillz](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/mbillz/32/603_2.png) [@mbillz](https://forum.critterandguitari.com/u/mbillz)
#### Post date: [September 19, 2020, 10:43pm UTC](https://forum.critterandguitari.com/t/creating-a-new-mode-in-the-eyesy-editor/6376/8 "2020-09-19T22:43:32Z")

</div>

Created a small PR to add key commands for saving & save + reloading. Nice way to get my feet wet. I’ll see if I can add some of that other functionality you mentioned @oweno.

Thanks for the help getting things setup. I had to disable `read only` mode on the disk, but once I did that I was able to remote in with VS Code on my laptop with the Eyesy connected to a monitor. A nice lil development experience for sure.

---

<div class="post-metadata">

### Author: ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)
#### Post date: [September 21, 2020, 6:41pm UTC](https://forum.critterandguitari.com/t/creating-a-new-mode-in-the-eyesy-editor/6376/9 "2020-09-21T18:41:34Z")

</div>

Thanks for that! I just merged it. Forgot to mention about the read only disk but looks like you figured it out.

---

<div class="post-metadata">

### Author: ![alexeismith](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@alexeismith](https://forum.critterandguitari.com/u/alexeismith)
#### Post date: [December 20, 2020, 2:05pm UTC](https://forum.critterandguitari.com/t/creating-a-new-mode-in-the-eyesy-editor/6376/10 "2020-12-20T14:05:08Z")

</div>

Hi, I’d like to know how to disable read-only mode please! I made a [separate post](https://forum.critterandguitari.com/t/uploading-to-eyesy-through-ssh-read-only/6712) so people can find it in search more easily

---

<div class="post-metadata">

### Author: ![Dcomplex](https://avatars.discourse-cdn.com/v4/letter/d/f14d63/32.png) [@Dcomplex](https://forum.critterandguitari.com/u/Dcomplex)
#### Post date: [December 24, 2020, 4:04am UTC](https://forum.critterandguitari.com/t/creating-a-new-mode-in-the-eyesy-editor/6376/11 "2020-12-24T04:04:21Z")

</div>

I really want to make some new modes too…

[![](https://img.youtube.com/vi/vGv8g6L7V8g/maxresdefault.jpg "FUSION UNIVERSE Live Stream") ](https://www.youtube.com/watch?v=vGv8g6L7V8g)
