Page 1 of 1

Possible to disable links?

Posted: Sat Nov 23, 2013 10:48 am
by shawnkhall
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.

Re: Possible to disable links?

Posted: Sat Nov 23, 2013 10:59 am
by shawnkhall
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?

Re: Possible to disable links?

Posted: Wed Nov 27, 2013 3:31 pm
by CintaNotes Developer
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.

Re: Possible to disable links?

Posted: Wed Nov 27, 2013 10:39 pm
by shawnkhall
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?

Re: Possible to disable links?

Posted: Fri Nov 29, 2013 10:31 am
by CintaNotes Developer
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: ).