• Stars
    star
    211
  • Rank 186,867 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created about 8 years ago
  • Updated over 1 year ago

Reviews

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

Repository Details

Quickly and easily jump between your files. The missing part of Go to definition functionality in Sublime.

Sublime HyperClick

Quickly and easily jump between your files. The missing part of Go to definition functionality in Sublime.

sublime hyperclick

HyperClick detects references to other files and lets you go to them, by pressing a key or clicking on an icon next to the filename. Even package names and filenames without an extension can be detected.

Supported Languages

  • JavaScript, TypeScript
  • Vue, Svelte components
  • CSS, Sass, SCSS, LESS, Stylus
  • HTML
  • PHP
  • Twig, Smarty, Pug, Nunjucks, Jinja2
  • JSTL
  • Dart
  • SugarML, SugarSS

If you'd like to request another language, open an issue with an example project in that language.

Installation

You can install HyperClick via Sublime Package Control.

Usage

HyperClick gives you three different ways to navigate:

1. Green arrows to the right of paths

In Sublime Text 3, you can "Go to file" by clicking the arrow to the right of the filename.

This arrow shows up when you hover your mouse cursor or move to the line (with up/down keys, or Goto Line) that contains the filename.

2. Context Menu

If you right click on a required/imported line you'll get a Goto File menu item on the context menu.

3. Shortcut key

HyperClick extends the use of the F12 (Go to definition) shortcut, jumping to files when Go to definition doesn't work.

Settings

You can customize HyperClick settings by going to Preferences > Package Settings > HyperClick > Settings, or calling Preferences: HyperClick Settings from the command palette.

Project settings

You can use project settings to configure HyperClick to look for files at specific dirs, through the settings "lookup_paths" and "aliases".

To open the project settings file, go to Project > Settings. If the Settings option is grayed out, choose the option Save Project As... (right above it) to save it to disk. The Settings option can now be selected.

Example

{
	"folders":
	[
		{
			"path": "development/project"
		}
	],
	"settings": {
		"HyperClick": {
			"scopes": {
				"source.sass": {
					"lookup_paths": [
						"assets/css/src/",
						"assets/css/lib/"
					]
				},
				"text.html.smarty": {
					"lookup_paths": [
						"views/templates/"
					]
				}
			}
		}
	}
}

Upgrading settings for 2.0

In 2.0 the language-specific settings no longer rely on syntax filename mapping. Each language is supported via an entry in the "scopes" object, by the language "scope" name.

To prevent conflicting settings (and for consistency), the settings file has been renamed to HyperClick.sublime-settings. If you have any old settings, they're in Packages/User/hyper_click.sublime-settings (where Packages can be found via Preferences > Browse Packages). Project settings have been moved from the hyper_click

To upgrade your settings, the first step is to rearrange the settings to this new structure. Then:

  • Remove now unused settings "supported_syntaxes", "default_filenames".
  • Rename "import_line_regex" to "regexes" and "valid_extensions" to "extensions".
  • Other settings are unchanged.

Example:

{
	"import_line_regex": {
	    "js": [
	        "^import\\s+['\"](.+)['\"];?$"
	    ]
	}
}

Becomes:

{
	"scopes": {
		"source.js": {
			"regexes": [
				"^import\\s+['\"](.+)['\"];?$"
			]
		}
	}
}

More Repositories

1

PlainTasks

An opinionated todo-list plugin for Sublime Text editor (version 2 and 3)
Python
3,287
star
2

tmTheme-Editor

Color scheme editor for SublimeText, Textmate and a bunch of other text editors
HTML
1,686
star
3

SublimeFileBrowser

Ditch sidebar and browse your files in a normal tab with keyboard, like a pro!
Python
394
star
4

PlainNotes

Simple and pleasant note taking for SublimeText
Python
273
star
5

SublimeANSI

ANSI escape codes color highlighting for SublimeText 3
Python
221
star
6

dotfiles

My Unix environment
Shell
163
star
7

BetterFindBuffer

Adds a couple of missing features to SublimeText 3 Find Results buffer
Python
107
star
8

knockdown

Github flavored Markdown for SublimeText and a custom theme for writing markdown
JavaScript
89
star
9

GoogleReader-OSXLionUI

REST IN PEACE GOOGLE READER! A user style for new google reader UI that makes you feel right at home
JavaScript
88
star
10

virastar

cleanning up Persian text!
Ruby
81
star
11

DistractionFreeWindow

SublimeText "Distraction free mode" but not full-screen! A windowed UI is more manageable and accessible yet it can be simple and sublime!
Python
46
star
12

jalalidate

A library for working with Jalali Calendar (a.k.a Persian Calendar)
Ruby
42
star
13

SublimeSyntaxConvertor

Converts tmLanguage to sublime-syntax
Ruby
37
star
14

farsifu

A toolbox for developing ruby applications in Persian (Farsi) language, see readme for features
Ruby
23
star
15

SublimeSyncedSidebarBg

Changes the sidebar theme based on active view's color scheme
Python
14
star
16

sublimeText3-Userfiles

My text-editor config files
Python
14
star
17

sublimeText2-Userfiles

I'm not updating this repo anymore, I've moved to SublimeText 3 https://github.com/aziz/sublimeText3-Userfiles
Python
12
star
18

sublime-mini-ui

HTML
10
star
19

tmTheme-Editor-Parser

Ruby
5
star
20

Things

A online replica of awesome Mac OSX task management app Things, a personal practice for development of desktop like applications
JavaScript
4
star
21

html5-slides-rtl

This is a fork of google's html5slides project with right to left support
JavaScript
3
star
22

PlasticAB

Porting my plasticCodeWrap textmate/sublime color-scheme to vs-code
3
star
23

sublime-history

Python
2
star
24

latex-template

my personal latex templates
TeX
2
star
25

pingilish

Converting Farsi to Pingilish (Farsi written in Latin alphabets) and Pingilish to Farsi
2
star
26

SublimeCucumberSteps

Python
1
star
27

atom-plastic-code-wrap-syntax

CSS
1
star
28

SublimeTheme

JavaScript
1
star
29

ignore_words

Ignore words for spell check in Sublime 3
Python
1
star
30

textmate

All textmate bundles I use, managed by git submodules
Ruby
1
star
31

parsmark

Persian flavour of MultiMarkdown
1
star