• Stars
    star
    133
  • Rank 272,600 (Top 6 %)
  • Language
    Python
  • License
    Other
  • Created over 13 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Will open file paths found under the cursor with ALT+D

Description

This plugin will try to open Sublime Text file paths found on caret positions or partial selections when pressing ALT+D. It has support for custom prefixes and subfixes. Usefull when doing require style JavaScript modules when no extension specified.

Strings starting with HTTP will open with default browser (if binary, ie ends with png), if not, we will read the file with urllib and open the result in a new view/tab. By setting the "open_http_in_browser" setting in your user preferences to true, we will always open the default browser.

use_strict preference will control if the path should be complete and correct, if not the file will not open and the package will not attempt to find the source file.

In theory this package should work like this:

  • If in "Find Results" panel, current file and line number position
  • The exact selection(s)
  • Text between quotes under caret positions.
  • Selections expanded to full lines covered by caret positions or partial selections.
  • Current lines split by (){}[]'"
  • Current lines split by spaces or tabs
  • Current word
  • If nothing works, will check the Full text up to 10485760

Resolving:

Will try to resolve to:

  • Absolute path to URL (e.g. https?://...)
  • Relative to current view
  • Relative to current view minus 1 folder
  • Relative to current view minus 2 folders
  • Relative to project folders
  • Relative to project folders minus 1 folder
  • Relative to project folders minus 2 folders
  • Absolute path

If everything else fails will also look into:

  • Relative to the folder of all opened views
  • Relative to all sub-folders
  • Relative to all parent folders

It supports:

  • A generic setting Open-Include.sublime-settings which could be overloaded for each parameter in a platform specific configuration Open-Include ($platform).sublime-settings
  • Environment variable expansions both for paths in the settings and under the caret

Reporting an error somewhere

Please, To report an error provide the following information:

  1. Project path (ex: c:/www/website)
  2. Opened file path (ex: c:/www/website/index.html)
  3. Included file line code (ex: a href="../html/views/home/Content/base/t16.shtml" ....
  4. Exact location of included file, in t16.shtml (ex c:/www/website/views/home/Content/base/t16.shtml)
  5. The setting file of this package

notes

create_if_not_exists

  1. create if not exists work only in scope "parameter.url, string.quoted"

Installation

Download or clone the contents of this repository to a folder named exactly as the package name into the Packages/ folder of ST.

Contributors:

More Repositories

1

SideBarEnhancements

Side Bar Tools and Enhancements for Sublime Text. Files and folders.
Python
2,186
star
2

Dictionaries

Hunspell UTF8 dictionaries. These work with Sublime Text. [Spell check]
Python
1,476
star
3

Tag

Collection of packages about HTML/XML tags.
Python
429
star
4

BufferScroll

Remember, restore and sync scroll, bookmarks, marks, folds and cursors. keys: multiple columns one buffer, follow mode, split, screen, pages, synchronize vertical and typewriter scrolling
Python
312
star
5

WordCount

Real-time Word, Char, Line and Page counter, in the status-bar for the document, line or selection. Sublime Text
Python
290
star
6

SideBarGit

Provides Git commands for the Side Bar of Sublime Text.
Python
244
star
7

EncodingHelper

Guess encoding of files, show in status bar, convert to UTF-8 from a variete of encodings..
Python
178
star
8

SideBarFolders

For when a project system is too much.
Python
82
star
9

ServiceWorkerFullVideoBuffer

A service worker that buffers a full video, so when the video tag ask for ranges, these can be satisfied. Play + pause = buffer the whole video.
JavaScript
52
star
10

FindResultsApplyChanges

Edit just there in the "Find Results" buffer, merge changes back to the files.
Python
50
star
11

solid-windowed

Given a list of items, only render what's visible on the screen while allowing scrolling the whole list.
JavaScript
43
star
12

komodo-komodin-git

A komodo Git extension
JavaScript
16
star
13

Toolbar

The missing ST toolbar ( with emojis ツ )
JavaScript
14
star
14

Camaleon

Cycle chrome theme and colour schemes with F8
Python
10
star
15

PreventFakeClones

Prevents opening the same file twice, if does not share a buffer (ie is not a clone/duplicate or cloned view/tab/file).
Python
8
star
16

pota

pota is a small and pluggable Reactive Web Renderer for Reactive Libraries.
JavaScript
3
star
17

solid-media-linkify

Given a string it returns links, images, videos, audio as tags and also emojis like `πŸ¦†` as πŸ¦†.
JavaScript
3
star
18

dom-syntax-sugar

A pluggable babel plugin for adding syntax sugar to JSX.
JavaScript
2
star
19

solid-tooltip

Directive for displaying tooltips on SolidJS components given a `title` attribute.
JavaScript
2
star
20

locationbar2-utf8

LocationbarΒ² with full support for UTF8 URLs
CSS
2
star
21

angelia.io

WebSockets Server and Client for node.js and the browser
JavaScript
2
star
22

Android

myAPI
Java
1
star
23

on-exit

Calls functions before node exits. A node exit handler.
JavaScript
1
star
24

write-effect

It tracks changes, and deep changes on an object. Runs a callback whenever something changes, an effect.
JavaScript
1
star
25

Format

Sublime Text Plug-in for formatting code or text on selections or files via any cli formatter you wish
Python
1
star
26

kompiler

A framework agnostic compiler/transpiler currently used mostly for solidjs projects. For personal use and for friends. Forever work in progress.
JavaScript
1
star
27

dom-flair

Solve any or most html layout issues in intuitive ways via attributes without having to think much about CSS. For example <div col grow></div>. That's it.
CSS
1
star
28

komodo-tab-undo-close

A menuitem on tab context menu to reopen the last closed tab (undo close tab).
Shell
1
star
29

komodo-nav

Experimental folder browsing and bookmarks: for Komodo.
JavaScript
1
star
30

komodo-garden

many remotes, on many trees, all asynch
JavaScript
1
star
31

solid-create-effect-development

Detects possible recursion on createEffect.
JavaScript
1
star
32

server

Press F12 on any Windows Explorer folder to fire a node server. autohotkey + batch + node
JavaScript
1
star