share a url with Total Commander for Android

Support for Android version of Total Commander

Moderators: petermad, Stefan2, Hacker

Post Reply
storm
Junior Member
Junior Member
Posts: 32
Joined: 2007-06-19, 15:42 UTC
Location: Amsterdam

share a url with Total Commander for Android

Post by *storm »

When I share a url with Total Commander for Android using the share symbol of 'Google Maps' or my Firefox browser, Total Commander saves the web address standard as a text file by default with .txt as a file extension.
In my opinion, it would be an improvement if Total Commander for Android did not have a .TXT extension but a .URL extension used at storage OR that the user is given a choice to save the file as a text file (extension .TXT) or as an url file (extension .URL).

In case Total Commander saves it as an URL file, it should use the following file format of two lines:
1. start in the file with a line that makes it clear that it is an url web address reference, namely: [InternetShortcut]
2: second line is the url webaddress starting with: URL=
Then the .url file can be opened by means of a program such as "My files"


Below I have added two examples of url files:

1. The file 'Albert Cuyp Markt.url' with the content:
[InternetShortcut]
URL=https://maps.app.goo.gl/MWr8umHFATnue5bp8

2. The file 'Hortus Botanicus Amsterdam.url' with the following contents:
[InternetShortcut]
URL=https://www.dehortus.nl/


Would you, Christian Ghisler, like to consider this modification in Total Commander for Android?
I would be very grateful to you and with me probably many other Total Commander users.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53155
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: share a url with Total Commander for Android

Post by *ghisler(Author) »

Sounds like a good idea - I will check whether it's possible to distinguish shared URLs from general text.
Author of Total Commander
https://www.ghisler.com
storm
Junior Member
Junior Member
Posts: 32
Joined: 2007-06-19, 15:42 UTC
Location: Amsterdam

Re: share a url with Total Commander for Android

Post by *storm »

Dear Mr Christian Ghisler,
can you say something about the feasibility of my idea?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53155
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: share a url with Total Commander for Android

Post by *ghisler(Author) »

I have checked it - URLs are sent as text/plain the same way as regular text. The only way to distinguish them would be by their content, e.g. if they start with https:// or http://. Therefore an automatic way to save them directly as .url files isn't possible, but I could add a checkbox labeled ".url" or "Save as .url" or similar to the file save dialog. Would this be sufficient?
Author of Total Commander
https://www.ghisler.com
storm
Junior Member
Junior Member
Posts: 32
Joined: 2007-06-19, 15:42 UTC
Location: Amsterdam

Re: share a url with Total Commander for Android

Post by *storm »

Yes, I think so provided you make the following two additions as I described in my earlier post, namely:

1. Add the textline: [InternetShortcut]
2: Add the following text before the transferred text: URL=

So for example the contents of the url file 'Albert Cuyp Markt.url' of the transferred text "https://maps.app.goo.gl/MWr8umHFATnue5bp8" should be:
[InternetShortcut]
URL=https://maps.app.goo.gl/MWr8umHFATnue5bp8
Post Reply