Comments (6)
Perhaps, but I really want to rewrite the regex processor anyway at some point so don't want to put a whole lot of effort into playing whack a mole with the existing one.
from folio.
I was thinking of adding a disable url detection option, so I don't see that being an issue.
Unfortunately url detection is a messy business in free form text, so it's never going to be perfect.
I might do a three way selector; aggressive, strict, disable.
Strict would require a proper protocol part to exist (aka https://, etc.) before it was identified as a url.
from folio.
I'm not surprise there are a few false positives, url detection is challenging in unstructured text.
I had it checking for ://
but that excluded too much.
I'll take another look and see if it can be tuned a little more, otherwise I'm thinking that erring on the side of too many matches is better than too few.
from folio.
Hey thanks for the reply!
While I don't want to suggest an option for every problem...
Perhaps there could be an option for auto-detect links with 3 states:
- Disabled
- Cautious/Normal (using ://)
- Aggressive/Verbose (as current)
?
from folio.
If we cannot have a robust URL detector, can we at least disable the auto URL detection. I don't actually see it as useful, but understand others might.
I guess this is content specific, but if you are keeping IT related notes than more than half of "URLs" will be false positives.
It falsely detects the following as URLs:
ISO times
filenames
version numbers
namespaces
Anything with a period in it
from folio.
Good stuff!
Aggressive and strict? That doesn't sound fun. I'll be selecting disabled then. :)
from folio.
Related Issues (20)
- Feature request: Typewriter scrolling HOT 1
- Typo in the spanish Translation HOT 1
- Weird unremovable notebook HOT 1
- Deleting a note creates a folder in the home directory HOT 1
- Markdown Highlight (==) Breaks Detected URL HOT 6
- Cannot run Version 24.10 AppImage: `GLIBC_2.38' not found HOT 1
- Search doesn't work as expected HOT 1
- Links with underscore (_) are hidden/Markdown styled & copy and pasting issue
- Git support & Extensions HOT 3
- Selected text is not highlighted HOT 4
- Cannot change where files are saved/stored HOT 2
- Editor slows down & Interesting editing HOT 5
- Unable to open files for editing in gvfs mount points HOT 3
- Feature Request: Only select the file name (not extension) after toggling rename of the note HOT 10
- Is there a way to run it on Windows? HOT 1
- Duplicate Note HOT 1
- Can't Use Hyperlinks HOT 3
- Feature request: document stats HOT 1
- Wiki links syntax support HOT 2
- Feature request: close to tray HOT 3
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 folio.