Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

View Poll Results: Would you like/use this feature?
Yes, I would and it is important 2 40.00%
Yes, I would 2 40.00%
No, I do not need it 1 20.00%
Gone fishing 0 0%
Voters: 5. You may not vote on this poll

Reply
 
Thread Tools Display Modes
Old 07-17-2018, 04:29 AM   #1
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default Script Editor: Minimize window and include CR characters in file

For editing JS FX / lua / eel etc

(a) Minimise the Editor window, suing the button in the top-right corner of the window. Often I want to keep the window view (edit position, panes) but get the Editor out of the way. Dragging it 95% off to on side is awkward

(b) Save the scripts with CR and LF (only LF is used at the moment) so that we can read the files sensibly in simple text editors.


Also, how do I use the "APIs matching" that are listed in the Editor's Inspector panel?
__________________
DarkStar ... interesting, if true. . . . Inspired by ...

Last edited by DarkStar; 07-17-2018 at 03:43 PM.
DarkStar is offline   Reply With Quote
Old 07-17-2018, 05:48 AM   #2
akademie
Human being with feelings
 
Join Date: Mar 2007
Posts: 3,978
Default

"b" would be nice, as I mainly edit JS effecs or Scripts a little bit, using notepad, so not having CR is a nightmare :-(

Last edited by akademie; 07-17-2018 at 05:53 AM.
akademie is offline   Reply With Quote
Old 07-17-2018, 06:01 AM   #3
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

- You'll probably get more views with a better thread name. I genuinely clicked into thinking you were asking for a script editor and had missed the built-in one. "Script editor: Minimize window and include CR characters", say.

- For anything other than really tiny scripts, I've always preferred an external editor - Notepad++ is an amazing replacement for Notepad, offers syntax highlighting for all of the ReaScript languages (and Walter), and is lightweight enough that there's basically no reason not to use it. I've got a key bound to "Run the last ReaScript", and I pepper my code with debug messages anyway, so testing and debugging is only a hair slower than it would be with the native editor.

- That said, A and B both seem like "how was this missed?" features.

- Where and when do you see "APIs matching"? That's news to me.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 07-17-2018, 02:29 PM   #4
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Originally Posted by DarkStar View Post
(a) Minimise the Editor window, suing the button in the top-right corner of the window. Often I want to keep the window view (edit position, panes) but get the Editor out of the way. Dragging it 95% off to on side is awkward
I use FileBox eXtender to add a roll-up (and pin-on-top) button to REAPER windows. This makes it easy to get windows such as the IDE out of the way temporarily.
juliansader is offline   Reply With Quote
Old 07-17-2018, 03:45 PM   #5
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

Quote:
Originally Posted by Lokasenna View Post
Where and when do you see "APIs matching"? That's news to me.
Editing a lua script, type a keyword into the Filter at the bottom of the data Inspector panel.

PS Changed the title
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 07-17-2018, 03:53 PM   #6
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Wow... without a label, I honestly thought that was just some blank space in the window.

In other news, double-clicking an item in it copies it to the clipboard.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 07-18-2018, 05:45 AM   #7
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default Another FR

^^^^
Yep, I asked for a label and a [Clear] button ages ago.

Hmm, that's something. But it would be far more useful to be able to insert the full API into the script, e.g.
Code:
boolean retval, string str = reaper.GetTrackStateChunk(MediaTrack track, string str, 
        boolean isundo)
rather than, as at preset:
Code:
reaper.GetTrackStateChunk
(Devs: consider this a third FR)
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 07-18-2018, 06:02 AM   #8
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Agreed. When you type the opening ( it does list the params along the top of the window, although for most of them you'd need the window stretched pretty large to read all of it.

Yet another reason why I prefer an external editor. Theoretically you could leave Reaper's editor open, drag the inspector pane over so the editor is gone, and edit in an external app. When you switch back to Reaper, the editor will pop up a "file has been modified, reload it?" message, so you can quickly hit Y and then Ctrl+S to run + inspect the script.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:04 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.