Possible to disable links?

shawnkhall
Posts: 30
Joined: Sun Oct 20, 2013 2:17 am
Contact:

Possible to disable links?

Postby shawnkhall » Sat Nov 23, 2013 10:48 am

I am having problems with filenames being converted to links. Stuff like "./script.sh" (a bash script) will have the "script.sh" portion automatically linkified. I would rather not have any links, than have links generated that complicate my ability to interact with the note.

Is it possible to disable all automatic linking?

Is that what this option controls?

Code: Select all

editor.links.recognize = 1


BTW, it would be very nice to have a data dictionary that explained what each of the options within cintanotes.settings actually do.
shawnkhall
Posts: 30
Joined: Sun Oct 20, 2013 2:17 am
Contact:

Re: Possible to disable links?

Postby shawnkhall » Sat Nov 23, 2013 10:59 am

shawnkhall wrote:Is that what this option controls?

Code: Select all

editor.links.recognize = 1


Yes, it is. The following will disable links in the CN editor:

Code: Select all

editor.links.recognize = 0


Unfortunately, "links" are still underlined within the list view, even after a save. The only way I found to un-underline them is to disable "formatting" in the list view (options, notes list, uncheck 'render text formatting'), which has the side effect of removing the formatting for other potentially important stuff, too, such as bold and lists.

Is there a middle ground or some hidden option that has the effect of *really* unlinking stuff?
User avatar
CintaNotes Developer
Site Admin
Posts: 5011
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Possible to disable links?

Postby CintaNotes Developer » Wed Nov 27, 2013 3:31 pm

Hi shawnkhall,
yes, you're right, once links are recognized, they are saved and not re-recognized again.
To force re-recognition, you could try the following:
1) Export your db into XML
2) Edit XML: Replace all '<a>' and '</a>' with '' (nothing), thus removing them
3) Import XML into a new .db

I admit that I haven't tested it, but theoretically this should work.

About detecting .sh files as links - I'm glad to say that in CN 2.5 only links that start with a protocol
such as 'http://' or 'mycustomprotocol://' will be recognized, so for new notes this won't be a problem anymore.
Alex
shawnkhall
Posts: 30
Joined: Sun Oct 20, 2013 2:17 am
Contact:

Re: Possible to disable links?

Postby shawnkhall » Wed Nov 27, 2013 10:39 pm

CintaNotes Developer wrote:About detecting .sh files as links - I'm glad to say that in CN 2.5 only links that start with a protocol
such as 'http://' or 'mycustomprotocol://' will be recognized, so for new notes this won't be a problem anymore.


Awesome! Do you have a release estimate for 2.5? It looks like your release cycle is about every 10 weeks - which would put it within the next week. Is that a fair estimate?
User avatar
CintaNotes Developer
Site Admin
Posts: 5011
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Possible to disable links?

Postby CintaNotes Developer » Fri Nov 29, 2013 10:31 am

shawnkhall wrote:Awesome! Do you have a release estimate for 2.5? It looks like your release cycle is about every 10 weeks - which would put it within the next week. Is that a fair estimate?


Something like this, however this time we are a bit behind schedule, because we also have to work on the new version of the website.
However 2.5 Beta 1 is already available (but please use at your own risk: as any beta it can be unstable :roll: ).
Alex

Return to “CintaNotes Personal Notes Manager”