Closed richardm90 closed 3 years ago
I like this idea, I find myself doing a similar thing when working with other editors.
For selecting the language: one option might be right-clicking on the tab and having an option to change language highlighting.
In sublime and vscode you can select the syntax language on the lower status bar but you can also select it via the command pallette and that may be an easier option as the lower status bar is used for the compile feedback.
We'll have a think about the best way to get this done :) above all we'll want it to be simple and ideally without you having to learn a new way of doing it. So following the footsteps of Sublime and VSCode is likely what we'll do.
I think this would be relatively simple.
I think when the user decides to save an editor instance which is neither member/streamfile, we can ask them to enter a path (similar to how creating a new file works) which could be either IFS/member and then we change the type to either 'member' or 'streamfile', etc.
Pretty much nailed it! Wrap up that feature with a neat little keyboard shortcut for a new file and we're golden
I'm going to push my luck now!
Would it be possible to open the editor, create a new file (not saved) without a connection?
If you go to save the file you would have to connect.
Haha - well that's an interesting one but I doubt it. We haven't really considered an offline version of the editor yet. Although if we actually release the RPGLE/COBOL LSP we're working on then I suppose local development wouldn't be a terrible idea
@richardm90 Sorry this has taken so long.
I just got started on the ability to use Command/Cntrl(+Shift)+N to create new members or streamfiles.
Here's a little clip. This should be available in 0.7.7.
https://user-images.githubusercontent.com/3708366/106367071-22d4de80-630e-11eb-9eb9-5282955c1c71.mov
@richardm90 Sorry this has taken so long.
I just got started on the ability to use Command/Cntrl(+Shift)+N to create new members or streamfiles.
Here's a little clip. This should be available in 0.7.7.
Screen.Recording.2021-01-30.at.3.04.15.PM.mov
looking good
I've often found it would be useful to have a new file that isn't saved.
Often I'll want to refer to a particular snippet of code and it would be useful to have that snippet in another tab (within ILEditor) but a tab that doesn't need to be saved as often once I've finished referring to that snippet I'd want to close the tab down and essentially ditch that snippet of code.
I would want language syntax highlighting so there would need to be a way of selecting the language for that tab.
In these situations at the moment I'm opening up a separate text editor and copying the snippet in to that for reference.