TIC-80 icon indicating copy to clipboard operation
TIC-80 copied to clipboard

[Request] Various minor editor improvements

Open ChildishGiant opened this issue 3 years ago • 4 comments

Here's a list of tweaks I'd personally love for the editor. I know that some of these won't be for everyone and that's fine, I'm hopeful that a few could be added if enough people agree that they're a good idea.

Moving lines

Currently if you want to change where a line is one needs to copy and paste it. I'm used to using Ctrl + / to move a line's position.

https://user-images.githubusercontent.com/13716824/131422668-b89cfeac-5467-469c-9cc6-f4ad4f10c6a1.mp4

Copying with nothing selected

This is a very minor gripe but currently if copying a line (nothing selected) when pasting it at the start of a line, it makes a new line (what I'd expect). However when pasting at the end of a line it is a bit funky.

https://user-images.githubusercontent.com/13716824/131423913-443c8c0e-7d55-4d2f-90a4-defa9380c5f0.mp4

Rebinding / remapping controls

There are currently some features in the editor that I would use but the shortcuts I'm used to using aren't available. I'm aware this may be a large change under the hood but if the config cart could hold shortcut overrides I'd be over the moon.

API completion

When typing an API function, hitting tab would fill out all parameters (maybe with some way to show which are optional). Something like spr(id,x,y,colorkey,scale,flip,rotate,w,h). This would help me no longer need to have the wiki open in the background to remember the order of parameters.

ChildishGiant avatar Aug 31 '21 00:08 ChildishGiant

For the last one you can already just hit esc then type help [command] for api functions too since V 0.90. I know that this isn't as fast as the tooltip but it's certainly faster than the wiki. If it would auto complete, then it would be really annoying if a misclick occurs. The others are good tho

another-m00 avatar Sep 01 '21 13:09 another-m00

If it would auto complete, then it would be really annoying if a misclick occurs.

That's what undo is for 😉

ChildishGiant avatar Sep 01 '21 19:09 ChildishGiant

However when pasting at the end of a line it is a bit funky.

What do you think the correct behavior is? VS Code seems to paste (cleanly) ABOVE the line I'm currently on which seems very strange to me - I'd expect it to go below I think.

joshgoebel avatar Nov 05 '21 05:11 joshgoebel

Last one useless now, because we have help <anyapi> that shows every parameter you can enter.

BuoYancYdabl avatar Jul 21 '22 23:07 BuoYancYdabl