Jump to content




Improved Edit


  • You cannot reply to this topic
17 replies to this topic

#1 chuzuki

  • New Members
  • 3 posts

Posted 28 February 2012 - 12:14 AM

This is my direct replacement for the standard edit program.

Changes:
  • Autoindent. Currently just copies the previous line's indentation.
  • Added delete key.
  • Added "Save & Exit" to Ctrl menu.
  • Line numbering, vim style. Helps a ton with debugging.
  • Home/End/PageUp/PageDown added
Spoiler

Suggestions are welcome, and the ComputerCraft team can certainly steal this since it's 90% their code anyways.

#2 Casper7526

    OG of CC

  • Members
  • 362 posts

Posted 28 February 2012 - 12:19 AM

End/Home/Page-Up/Page-Down/Tab Key

Aha, I got ya thinking now huh?

#3 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 28 February 2012 - 12:42 AM

Sweet and i 2nd the home, end, pgUp and pgDn keys <_</>

#4 chuzuki

  • New Members
  • 3 posts

Posted 28 February 2012 - 12:42 AM

Yeah I thought about end/home/pgup/pgdn, which wouldn't be hard to do. I'll go add it now.

Tab completion in edit is less important than in shell, which I'm also working on. Unless you had a different use for tab in mind?

#5 Casper7526

    OG of CC

  • Members
  • 362 posts

Posted 28 February 2012 - 12:43 AM

Not tab completion, but just literally tab (not sure if thats in normal edit as I don't use it)

Tab completion would be cool though and is possible

#6 chuzuki

  • New Members
  • 3 posts

Posted 28 February 2012 - 01:11 AM

Oh, I use spaces, not tabs so it's never come up. I'll see what I can do with it.

Updated OP with Home/End/PageUp/PageDown.

#7 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 28 February 2012 - 03:43 AM

Sweet

#8 Casper7526

    OG of CC

  • Members
  • 362 posts

Posted 28 February 2012 - 03:44 AM

Heh all that is left that I could think of would be a auto-completion system and tab to prepend 5 spaces to the current x,y

#9 Zer0t3ch

  • Members
  • 33 posts
  • LocationIllinois, USA

Posted 15 March 2012 - 03:50 AM

looks good. Ill install it on my server later!

#10 petrus4

  • New Members
  • 21 posts

Posted 15 March 2012 - 06:04 AM

If I was a genuine programmer I'd write us an ed port; but I'm not, unfortunately. :D/>

#11 mrgreaper

  • Members
  • 88 posts

Posted 15 March 2012 - 06:03 PM

ctrl+v <<<< this please please please please :D/>

#12 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 04 April 2012 - 07:06 AM

View Postmrgreaper, on 15 March 2012 - 06:03 PM, said:

ctrl+v <<<< this please please please please :)/>
We can't access the clipboard in Computercraft, so that is unfortunately not possible:(

#13 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 04 April 2012 - 07:16 AM

View Postmad, on 04 April 2012 - 07:06 AM, said:

View Postmrgreaper, on 15 March 2012 - 06:03 PM, said:

ctrl+v <<<< this please please please please :)/>
We can't access the clipboard in Computercraft, so that is unfortunately not possible:(

ctrl+v / paste will work with a little effort :D/>

#14 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 04 April 2012 - 12:22 PM

View Postluanub, on 04 April 2012 - 07:16 AM, said:

View Postmad, on 04 April 2012 - 07:06 AM, said:

View Postmrgreaper, on 15 March 2012 - 06:03 PM, said:

ctrl+v <<<< this please please please please :D/>
We can't access the clipboard in Computercraft, so that is unfortunately not possible:(

ctrl+v / paste will work with a little effort ;)/>

No, it will definately NOT. There is ONE possiblity though. For someone to write a peripheral that lets you access the clipboard. But as of now, it CANNOT be done with CC's inbuilt functions :)/>

#15 MysticT

    Lua Wizard

  • Members
  • 1,597 posts

Posted 04 April 2012 - 05:36 PM

Actually, you can paste into the computer, it's kinda buggy but you can.

#16 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 04 April 2012 - 05:52 PM

View PostMysticT, on 04 April 2012 - 05:36 PM, said:

Actually, you can paste into the computer, it's kinda buggy but you can.
Care to explain how?

#17 MysticT

    Lua Wizard

  • Members
  • 1,597 posts

Posted 04 April 2012 - 06:10 PM

Ctrl + v
:)/>
It pastes the clipboard content (from the real computer).

#18 ComputerCraftFan11

  • Members
  • 771 posts
  • LocationHawaii

Posted 05 April 2012 - 02:23 AM

View Postmad, on 04 April 2012 - 05:52 PM, said:

View PostMysticT, on 04 April 2012 - 05:36 PM, said:

Actually, you can paste into the computer, it's kinda buggy but you can.
Care to explain how?

Press Ctrl to open the menu
after that, press Ctrl+V

(Sadly, it only pastes 1 line.. 1!!!)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users