Version 14.20

Information about the next release of RJ TextEd.
Post Reply
User avatar
Rickard Johansson
Site Admin
Posts: 5821
Joined: 19 Jul 2006 14:29

Version 14.20

Post by Rickard Johansson » 07 Oct 2019 18:03

New in version 14.20:

-----------------------------------------------------------
Version 14.20 (Okt 7, 2019)
-----------------------------------------------------------

Chrome Preview
Updated component and libraries to version 76.0.3809.

SFTP
Updated the SFTP component to the latest version.

Fixed several issues.

Remote files
Added default actions in "Options - File - Remote files" to set the behavior when saving remote files. Default actions are:

* Save to local location
Use this option if you want to save remote files to a local disk. In this working mode you can edit the files and store them locally until they are ready to be uploaded. You can use the menu items in "File -> FTP" to upload the files. You can also use the file commander.

* Save to remote location
Local files are always saved locally. Remote files are saved (uploaded) to the server. This is the default behavior.
  • If you create a new document and upload it to a server - the file will always be saved to the server.
  • If you open a remote file and save - it will always be saved to the server.
  • If you create a new document and first save it locally and then upload it - it is considered a local file and always saved to disk.
  • If you open a local file and upload it to the server - the file is still considered local and always saved to disk
* Save to both local and remote location
Pure local files are always saved locally. But if a file has been uploaded to a server - it will always be saved to both the local disk and uploaded to the server. It doesn't matter if the file was opened from disk or the server.
  • If you create a new document and upload it to a server - the file will always be saved to both disk and server. If a local path doesn't exists - a file save dialog window is opened.
  • If you open a remote file and save - the file is always saved to both disk and server. A save file dialog window is displayed if needed.
  • If you open a local file, that has previously been saved to a server - it will always be saved to both disk and server.
* Ask me once for every new (or opened) document
With this option set you are prompted for an action when you hit save. The actions are the same as in options above.
The action is remembered as long as the document is open.

Made several changes to improve the user experience when using the different options. Document tab hint now display both local and remote paths.

Search (All open files)
Find and replace can now be used on all open files. Find or replace start at the current cursor position and circle through all open document tabs.

To use it just set the search scope to "All open files".

Added two new options (Options - Search):
* Limit find/replace search scope to current document view
* Limit find/replace all search scope to current document view

Highlight Expressions
Added expressions are now stored between sessions. A checkbox is used to activate an expression to highlight, for the current file.

Active highlighted expressions are now stored between sessions for each file. You can activate/deactivate this in options, with other file options like store word wrap state, encryption, code fold state etc.

Document tabs
Added an option to change the tab position. You can set the tab position to the top, or to the bottom of the document window.

Tools
Added a new type to send POST requests. It is used to post the current document or a selection to a web address and open the returned text in a new document tab.

I also added two new presets. One will add the following:

Code: Select all

    Title:      'JavaScript Minifier'
    Type:       'Send POST request to URL'
    Command:    'https://javascript-minifier.com/raw'
    Argument:   'input=[CurrentDocument]'
Misc
* Several speed improvements and optimizations.
* If save fails you are asked if you wish to restart the program in administrator mode.

Fixed
* Document view draw and resize issues.
* Browser preview panel issues.
* Misc language issues.
* Path display when all files are closed.
* Program search issue.
* Numerical statistics in column mode should handle leading or trailing non-digit values.
* Search bar issues.
* Misc reported minor issues.

I still have to check a few things. I'll release this version in a day or so...

User avatar
Rickard Johansson
Site Admin
Posts: 5821
Joined: 19 Jul 2006 14:29

Re: Version 14.20

Post by Rickard Johansson » 08 Oct 2019 12:29

This version is now available at https://www.rj-texted.se/download.html

User avatar
rfresh737
Posts: 17
Joined: 02 Oct 2019 18:20

Re: Version 14.20

Post by rfresh737 » 08 Oct 2019 16:43

I'm experiencing problems with the new file settings. I am not able to FTP up my working file. I initiate save to remote server and it looks like it's doing that but the changes are not there in my browser when I refresh. My local copy is also not updated. I have no idea where the file is being saved.

If I open a separate FTP tool and upload my working file, it uploads and I can refresh my browser and see my changes. I have another editor (Edit Plus) which I can FTP up file changes and see them updated in my browser when I refresh. So that is two outside FTP sources that can upload my working file. It does not seem to be working for some reason in RJ TextEd?
Attachments
2019-10-08_073715.jpg
2019-10-08_073715.jpg (111.05 KiB) Viewed 212 times

User avatar
Rickard Johansson
Site Admin
Posts: 5821
Joined: 19 Jul 2006 14:29

Re: Version 14.20

Post by Rickard Johansson » 08 Oct 2019 17:14

I need an exact description of what you're trying to do.

Ex.

1. Create a new file and save it to disk.
2. Upload the file (File -> FTP -> Save As (Remote)). A connect dialog window is opened and a connection is established.

etc.

User avatar
rfresh737
Posts: 17
Joined: 02 Oct 2019 18:20

Re: Version 14.20

Post by rfresh737 » 08 Oct 2019 17:53

Steps to recreate:

1. Start RJ TextEd.
2. Open an existing .php file.
3. File->FTP->Connect. Connection successful.
4. Make a change to the php file.
5. File->FTP->Save to remote. FTP dialog appears. File appears to upload OK.
6. Check browser and do a refresh. Change not seen in the web page.
7. Open my other editor (Edit Plus) and look at the same file, the same line number where I made the change. Change not there.
8. Close RJ EditEd. Got do I want to save dialog and said yes.
9. Checked my other editor and the file is now updated with my change. Apparently the file wasn't being saved to local until I exited RJ EditEd. My understanding is that FTP save to server would now always save to local.
10. Still not sure why FTP upload (save to server) did not work.

Comments: I checked save to both local and remote and that did not change the above behavior. No local file saved. No FTP remote save. Had to exit RJ TextEd in order to get file save dialog and respond with yes to get the local file to save.

User avatar
Rickard Johansson
Site Admin
Posts: 5821
Joined: 19 Jul 2006 14:29

Re: Version 14.20

Post by Rickard Johansson » 08 Oct 2019 18:21

The options for remote files only affect "save", as in "File -> Save (Ctrl+S)". So to save a local file you have to use "Save (Ctrl+S)" or "Save As ...". "File -> FTP -> Save ..." will only upload the file to the server (no matter your options). Not save it to disk.

"File -> FTP -> Save (Remote)" will either save a file to the current FTP directory opened or to the last FTP dir used.
  • If you have previously saved the file to a remote location - that path is always used to upload the file with "File -> FTP -> Save (Remote)". (Just as the last local path is used with "File -> Save".)
  • If the file has never been uploaded before and you connect to a server and hit "File -> FTP -> Save (Remote)" - the file is saved to the current remote directory. You can see where in the FTP panel.
To save a file to disk you have to use "File -> Save" or "File -> Save All".

"File -> FTP -> Save" will only upload the file to server.

I hope it's clearer now :?

User avatar
Rickard Johansson
Site Admin
Posts: 5821
Joined: 19 Jul 2006 14:29

Re: Version 14.20

Post by Rickard Johansson » 08 Oct 2019 18:31

Also, if you set the option to save both to a local and remote location and your file has been uploaded to a server - "File -> Save" will save the file to disk and upload the file to it's last used FTP directory.

User avatar
rfresh737
Posts: 17
Joined: 02 Oct 2019 18:20

Re: Version 14.20

Post by rfresh737 » 08 Oct 2019 19:00

>Also, if you set the option to save both to a local and remote location and your file has been uploaded to a server - "File -> Save" will
>save the file to disk and upload the file to it's last used FTP directory.

I have that set and it is not working for me. I don't get the FTP upload nor do I get a local file save.

I may have to go back to the previous ver as I could FTP with that. I can't FTP with this new version.
Attachments
2019-10-08_105841.jpg
2019-10-08_105841.jpg (114.82 KiB) Viewed 186 times

inspector71
Posts: 101
Joined: 22 Sep 2017 07:59

Re: Version 14.20

Post by inspector71 » 10 Oct 2019 02:17

Wow, massive update!

Thanks for all the hard work. Might take some slight adjustments to assimilate the new FTP options but hopefully all for the better :)

Thanks again!

Post Reply