[TW5] Proposal for a shortcut ^L for link, or user-defined shortcut keys

58 views
Skip to first unread message

Chuck R.

unread,
Apr 19, 2016, 10:27:43 AM4/19/16
to tiddl...@googlegroups.com
I propose using control-L to insert a preformatted link.

If the user has not selected any text, insert link like this: [ext[link text|http://link.com/index.html]

If the user has selected text, the selected text would be used and the output would be this: [ext[selected text|http://link.com/index.html]

Or, what about users writing their own code to insert on whatever shortcut key combo they define? Could the author define a tiddler which defines user defined keyboard shortcuts?
ctl-L<tab>[ext[link text|http://]
ctl-I<tab>[img width="" class=""[img description|image.png]]


Comments?

Mat

unread,
Apr 19, 2016, 11:01:50 AM4/19/16
to TiddlyWiki
Keyboard shortcuts are in the making with the coming rich text editor (do a quick search on the boards for jeremys post within the last month) - or see this thread on github. TW Github is also the best place to post suggestions and issues.

Note the syntax for an external link is simply

[[pretty text|http://....]]


<:-)

Chuck R.

unread,
Apr 19, 2016, 11:07:25 AM4/19/16
to tiddl...@googlegroups.com
So "ext" is not really required like this? [ext[link text|http://...]]

If that's true I should update the docs on Github. I have the link somewhere in my TiddlyWiki helpfile.

Mat

unread,
Apr 19, 2016, 11:14:57 AM4/19/16
to TiddlyWiki
http://tiddlywiki.com/#Linking%20in%20WikiText

if I understand, ext is not needed when it is obviously an external link (like when prefixed http://)

<:-)

Eric Shulman

unread,
Apr 19, 2016, 11:18:20 AM4/19/16
to TiddlyWiki
On Tuesday, April 19, 2016 at 8:01:50 AM UTC-7, Mat wrote:
Note the syntax for an external link is simply
[[pretty text|http://....]]


Most of the time, an external link is easy to recognize because it starts with http:// (or https://).   However, when the external link is ambiguous (i.e., it could be a tiddler title), then the 'ext' keyword is needed to ensure that an external link is created.

For example, suppose I have a tiddler named "foo/bar/mumble.txt"... then [[click me|foo/bar/mumble.txt]] would be an internal tiddler link.  Now suppose that there is also a local file named "foo/bar/mumble.txt" that is stored in a subdirectory of the current working folder.  To create an external link to this file, you can't use the "http://" prefix, as that would make the reference absolute (i.e., no longer relative to the working directory).  Adding the 'ext' keyword forces the link to be external, even if there is a tiddler with the same name.

enjoy,
-e

Reply all
Reply to author
Forward
0 new messages