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% |
07-17-2018, 04:29 AM
|
#1
|
Human being with feelings
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
|
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.
|
|
|
07-17-2018, 05:48 AM
|
#2
|
Human being with feelings
Join Date: Mar 2007
Posts: 3,978
|
"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.
|
|
|
07-17-2018, 06:01 AM
|
#3
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
- 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.
|
|
|
07-17-2018, 02:29 PM
|
#4
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,714
|
Quote:
Originally Posted by DarkStar
(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.
|
|
|
07-17-2018, 03:45 PM
|
#5
|
Human being with feelings
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
|
Quote:
Originally Posted by Lokasenna
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 ...
|
|
|
07-17-2018, 03:53 PM
|
#6
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
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.
|
|
|
07-18-2018, 05:45 AM
|
#7
|
Human being with feelings
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
|
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 ...
|
|
|
07-18-2018, 06:02 AM
|
#8
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
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.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 11:04 AM.
|