Comments (4)
This is a regression since 80bc156. The way it used to work was that, in -om_handleLinkClickWithActionInformation:
, -om_shouldHandleLinkClickWithActionInformation:
would return NO
and the plugin would let Xcode handle the click. Perhaps the plugin is now intercepting the URL before -om_handleLinkClickWithActionInformation:
kicks in.
from dash-plugin-for-xcode.
-om_handleLinkClickWithActionInformation:
still handles things. This is the action information I'm seeing:
WebActionButtonKey = 0;
WebActionElementKey = {
WebElementDOMNode = "<DOMText [#text]: 0x128890cf0 'Terminal'>";
WebElementFrame = "<WebFrame: 0x7fa0a11e7470>";
WebElementIsContentEditableKey = 0;
WebElementIsInScrollBar = 0;
WebElementIsSelected = 0;
WebElementLinkIsLive = 1;
WebElementLinkLabel = "SLTerminal.h";
WebElementLinkTitle = "";
WebElementLinkURL = "file:///Users/bogdan/Library/Developer/Shared/Documentation/DocSets/com.inkling.Subliminal.docset/Contents/Resources/Documents/SLTerminal.h";
WebElementTargetFrame = "<WebFrame: 0x7fa0a11e7470>";
};
WebActionModifierFlagsKey = 0;
WebActionNavigationTypeKey = 0;
WebActionOriginalURLKey = "file:///Users/bogdan/Library/Developer/Shared/Documentation/DocSets/com.inkling.Subliminal.docset/Contents/Resources/Documents/SLTerminal.h";
If you look at wearhere@80bc156#diff-6f1abccc519eaee8c98910b91d43e956L148 at line 151 you'll see that the return nil
was removed. What that return nil
used to do is NSBeep()
if the regex didn't match anything.
So, before 80bc156 things still did not work, the only difference it was that it NSBeep'd instead of triggering a Dash search.
I'll fix this exact scenario by refusing to handle links that have a path that ends in .h
. Can you think of other scenarios where this might happen?
from dash-plugin-for-xcode.
Not off the top of my head--we should refuse to handle any links with extensions, but I think it would be safest to blacklist those extensions explicitly to avoid misinterpreting a period somewhere else in a URL.
from dash-plugin-for-xcode.
Great. I'll leave things as-is and will adjust if any other bugs are reported. Thanks once again for your help! 👍
from dash-plugin-for-xcode.
Related Issues (20)
- Needs upgrade for Xcode 6.3 HOT 1
- Syntax Coloring submenu on Editing menu disappeared HOT 12
- Xcode 6.4 beta 2 (6E14) doesn't like the plug-in HOT 3
- Xcode 6.3.2 Dash plugin not working. HOT 8
- Dash menu not showing up in Xcode Version 6.3.2 (6D2105) HOT 3
- Not working in Xcode 6.4 HOT 2
- Quick help link to guide does not work properly HOT 2
- Xcode 7.0 GM HOT 1
- Problem with XCode 7.0 and umlaut in group name HOT 3
- Could not replace the standard Documentation in Xcode7? HOT 4
- Dash looses filter on search HOT 2
- Disabling Quick Help integration also disabling Search integration HOT 1
- option-click + double click behaviour changed for Xcode 7.1? HOT 6
- "Replace Search Documentation" doesn't work in Xcode 7 HOT 14
- Only load if current application is Xcode HOT 1
- Plugin installed through Alcatraz is not working HOT 1
- option+click does not work in my mac HOT 2
- problem with Swift methods
- Alternatives to Xcode extension HOT 4
- Xcode 9 Beta 5 release note mentions Editor Extension bug fixes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dash-plugin-for-xcode.