octolinker / octolinker Goto Github PK
View Code? Open in Web Editor NEWOctoLinker — Links together, what belongs together
Home Page: https://octolinker.vercel.app
License: MIT License
OctoLinker — Links together, what belongs together
Home Page: https://octolinker.vercel.app
License: MIT License
would be great to get this great extension also in firefox
import "package"
import p "package"
import . "package"
After v3.8.0
bump. Which makes it unusable, imo.
Chrome 43.0.2357.130, ArchLinux.
It would be nice to add support for Python imports
If you are pleased, I can not wait to write some pull requests about this!
Currently Objective-C imports like this try to find an NPM module with name of the class.
For example the doctrine/orm
in https://github.com/Kdyby/Doctrine/blob/master/composer.json is not linked.
import Mod
import qualified Mod
import Mod
import Mod ()
import Mod (x,y)
import qualified Mod
import qualified Mod (x,y)
import Mod hiding (x,y)
import qualified Mod hiding (x,y)
import Mod as Foo
import Mod as Foo (x,y)
import qualified Mod as Foo
import qualified Mod as Foo (x,y)
-- A lot of other combinations excluded. See the link.
-- There might also be a formal grammar somewhere.
extern crate rust_crate
use rust_crate
use rust_crate::Thing
use rust_crate::Thing as OtherThing
use rust_crate::{ThingOne, ThingTwo}
https://doc.rust-lang.org/reference.html#extern-crate-declarations
https://crates.io/ could be used as a fallback when a GitHub repo is not found
Been noticing this slows down page loads lately...
Here you can see Linker is definitely the most expensive of all my extensions.
Is there any reason it needs to run immediately at document_end ? I'd much prefer document_idle
it will run at window.load or 200ms after DOMContentLoaded, whichever comes first.
It'd definitely give the browser a chance to do some work before handing over another 180ms of execution
require('smalloc') - v0.11 lives here: http://nodejs.org/docs/v0.11.5/api/smalloc.html not here.
Not sure whether it would make sense to handle those edge-cases.
What do you think?
The plugin is trying to resolve every string in JS markdown codeblocks as a module.
An example of this can be seen in the README for the gulp-htmlbars repo, the plugin is trying to resolve every string in the gulpfile.js
codeblock as a module, even paths.
Would be great to have a support of ES6 import syntax
I can't seem to get the latest version working. Is it just me? For example, https://github.com/stefanbuck/github-linker/blob/master/package.json doesn't do anything. Is there anything I can do to debug/tweak anything?
FROM nodejs:latest
https://docs.docker.com/engine/reference/builder/#from
Docket Hub page would be OK
https://github.com/sindresorhus/pageres/blob/master/index.js#L4
Without #L4
it works.
If the composer lookup fails, you could use the Packagist link instead: https://packagist.org/packages/{vendor}/{client}
eg. https://packagist.org/packages/google/apiclient
This line use require('./Root.prod')
to load module, linker can't properly resolve module path.
Is there any chance Composer will be supported? I don't think it's very different then bower/npm files.
Links are in a composer.json file, in require and require-dev section
example: https://github.com/composer/composer/blob/master/composer.json
Package information: https://packagist.org/packages/%s.json (eg. https://packagist.org/packages/composer/composer.json), which links to a repository (mostly Github)
Git urls are a bit complicated and can come in the form of
<user|org>/<repo> #link to githbb
<clone method>://<url>
It'd be sweet if support for these were added, I played with it myself but didn't get far
The syntax is typically
NeoBundle(Lazy)? 'GITHUBUSER/REPONAME'
e.g.
NeoBundle 'haya14busa/incsearch.vim'
Should link to https://github.com/haya14busa/incsearch.vim
match patterns are, on any .vimrc .gvimrc *.vim
(((Neo)?Bundle(Lazy|Fetch)?)|Plug(in)?)\s'(.)'
It'd be cool if this supported ES6 module import declarations.
Shouldn't append index.js
when the resource is a file.
require('./adapter')
// is a directory
/adapter/index.js
require('./adapter')
// is a file
/adapter.js
It would be awesome if this extension is created for firefox.
Try loading https://github.com/RobotWebTools/roslibjs, as develop
is the default branch and master hasn't yet been rebased this occurs
GET https://rawgit.com/RobotWebTools/roslibjs/master/package.json 404 (Not Found)
Hello, thanks for the great extension. What about opening package in new tab on middle mouse click?
I love this plugin. I would love to see safari support. Thanks!
Example: https://github.com/rails/rails/blob/master/load_paths.rb
The require 'bundler'
line is being linked to an NPM package that doesn't exist. Happens with any .rb file I've tried.
I've looked through the code a bit, but I'm not sure of the cause offhand. I believe there's some stuff to limit linking to certain file and code block types. Is that not working because of a Github change?
What happens if i write something like that:
var modAppendit = 'appendit'
var appendit = require(modAppendit);
I've heard Java guys love it that way ;)
Imagine the OctoLinker would be part of GitHub.com and available for all languages and users.
Please react comment with 👍 to show your interest.
I've found that ES6 template string can be selected using this extension. You can see an example of this here.
It seems that the extension has stopped working, perhaps github updated their CSS?
I just got an update notification that linked to github-linker/chrome-extension/releases/ instead of github-linker/core/releases!
require 'file'
require_relative
Basically it would need to:
.npmrc
file next to package.json
to see which registry its pointing.Woops sorry, I posted this in the wrong repo.
I'm not sure this is doable, but bear with me. Currently in JS files, Github Linker will autolink requires that are in the same repository:
require('./../foobar.js'); // Will be autolinked
Would it be in any way possible to provide the same kind of features for PHP uses, when you have per example:
src/Foobar/SomeClass.php
namespace Foobar;
use Foobar\Bar\Baz; // autolink to src/Foobar/Bar/Baz.php
class SomeClass {}
Most repositories nowadays follow some sort of autoloading standard so namespaces/class names share a 1:1 relation with the folder structure. If not it can be read in the composer.json
autoload directive:
"autoload": {
"psr-4": {
"Foobar\\": "src"
}
}
Am I aiming too high or would this be somehow doable?
Since the changes is loading it on request, using the API. we can't directly see the link anymore on hover.
Perhaps a few possibilities:
Although the first option would dramatically increase the API requests. Could partially be overcome by using some local cache with recent items?
Vim plugin managers make you list out your plugins like this, with the tail end of GitHub URLs:
Plug 'terryma/vim-multiple-cursors'
Plug 'terryma/vim-expand-region'
Plug 'junegunn/vim-easy-align'
You can see more examples of this in my Vim configuration file: https://github.com/evanrelf/dotfiles/blob/master/nvimrc#L26
It would be awesome if this browser extension could make the part in the single quotes a link, like it does for NPM packages and the like.
Require statements in a .coffescrript
file should also clickable.
request = require 'request'
Seems to not work in a pull request files view.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.