Simple package for Sublime Text 4; download URL's for local viewing and editing

Overview

URLDownloader

This is a simple example package that allows you to easily download the contents of any web URL to edit locally. Given a URL, the package will download the resulting file to your computer's temporary directory and then open the file.

The temporary file will be deleted when the tab is closed, unless you first save or save as the contents to another file.

The opened file will display the URL that it was downloaded from in the status bar as a reminder of where it came from; this can be adjusted in the settings if desired.

This example was created in response to a question on my YouTube Channel.

Usage

There are a few ways to trigger the package:

  1. The URLDownloader: Download and open URL command in the command palette will allow you to manually enter any URL you like

  2. Right click (or your system's equivalent) on a URL in a file to select and open it.

  3. Via a key binding; there is not one by default, but there is an example in the package key bindings file. Use Preferences > Package Settings > URLDownloader to see it.

Settings

The package currently supports the following settings:

  • open_selection (true): When this is true, any selected text will be treated as the URL to open, falling back to just using the URL under the cursor if no text is selected. When this is false, the selection is ignored and the URL always needs to be under the cursor.

  • show_url (true): When this is true, any downloaded files that are opened will show the URL that they were downloaded from in the status bar of the window. false will disable this. Note that when downloading images, this setting has no effect because images are not editable and thus don't support custom status bar text.

  • default_protocol (http://): For any URL that does not have a protocol on it, this is the default protocol to be used. Set it to https:// to default to secure connections.

You might also like...
Using Youtube downloader is the fast and easy way to download and save any YouTube video.
Using Youtube downloader is the fast and easy way to download and save any YouTube video.

Youtube video downloader using Django Using Django as a backend along with pytube module to create Youtbue Video Downloader. https://yt-videos-downloa

Advance Image Downloader/Extractor (Job) is a Python-Flask web-based app, which will help the user download the any kind of Images at any date and time over the internet. These images will get downloaded as a job and then let user know that the images have been downloaded by sending them a link over an email.
Download and save Bing wallpapers and set as background for GNOME desktop

Save Bing wallpapers and set as background for GNOME desktop This script downloads the Bing wallpaper and sets it in the background of your gnome desk

Command-line program to download videos from YouTube.com and other video sites

youtube-dl - download videos from youtube.com or other video platforms

The free and open-source Download Manager written in pure Python
The free and open-source Download Manager written in pure Python

The free and open-source Download Manager written in pure Python

A Udemy downloader that can download DRM protected videos and non-DRM protected videos.
A Udemy downloader that can download DRM protected videos and non-DRM protected videos.

Udemy Downloader with DRM support NOTE This program is WIP, the code is provided as-is and i am not held resposible for any legal repercussions result

Scripts to download files and folders programmatically from Google Drive

Google Drive Downloader Scripts Every time I need to download a lot of files from Google Drive (e.g. a dataset), it's always incredibly frustrating an

Python script designed to search and fetch direct download links from nxbrew.com
Python script designed to search and fetch direct download links from nxbrew.com

SwitchGamesDownloader Only for windows nxbrew.com is a website, accessible only using a proxy, where the majority of games for the Nintendo Switch are

Owner
Terence Martin
Vell, Odat's just zis guy, you know?
Terence Martin
This package helps you to directly download an APK from Google Play by providing the package id of the app

Apk Downloader About | Features | Technologies | Requirements | Starting | License | Author ?? About This package helps you to directly download an AP

Daniel Agyapong 9 Dec 11, 2022
Search the gallerys by tag and download pictures to the local

booruDownloader Search the gallerys by tag and download pictures to the local

null 6 Jun 30, 2022
This script fully automates of downloading tiktok videos, editing them,compiling them and finally uploading them to youtube.

This script fully automates of downloading tiktok videos, editing them,compiling them and finally uploading them to youtube. If you wanted to create a tiktok video compiilation youtubbe channel this script is here to help you :D

Supriyo Sarkar 32 Dec 16, 2022
Download all your URI Online Judge source codes and upload to GitHub with simple steps.

URI-Code-Downloader Download all your URI Online Judge source codes and upload to GitHub with simple steps. Prerequisites Python 3.x Installing Downlo

Luan Simões 9 Mar 23, 2022
Simple Python script to download images and videos from public subreddits without using Reddit's API 😎

Subreddit Media Downloader Download images and videos from any public subreddit without using Reddit's API Made with ❤ by Nico ?? About: This script a

Nico 106 Jan 7, 2023
A simple contents download module using url for python

A simple contents download module using url for python

Fayas Noushad 16 Oct 20, 2022
This is a simple Python Script to download Imgur Pictures with the short url!

Imgur Downloader This is a simple Python Script that runs a process with progress bar that downloads an Imgur Picture! Code Example Features Progress

OGMatrix 1 Nov 18, 2021
A simple Python +3.x script to download videos from Facebook.

Facebook Video Downloader A simple Python +3.x script to download videos from Facebook posts

Kerolos Atef Saber 1 Dec 3, 2021
This simple Python script allows you to download songs on Telegram🌸❤️😁

SongsDownloaderTgBot ?? YouTube Song Downloader Bot For Telegram ?? 3X Fast Telethon Based Bot ⚜ Open Source Bot ????‍?? Demo : ?????????? - ?????????

Sehath Perera 23 Dec 3, 2022
FireDM is a python open source (Internet Download Manager) with multi-connections, high speed engine, it downloads general files and videos from youtube and tons of other streaming websites .

python open source (Internet Download Manager) with multi-connections, high speed engine, based on python, LibCurl, and youtube_dl https://github.com/firedm/FireDM

null 1.6k Apr 12, 2022