Good stuff. The keyboard shortcut for cancel edit is control via this 
tiddler

$:/config/shortcuts/cancel-edit-tiddler


all the best




On Friday, April 1, 2016 at 9:34:17 PM UTC+1, Robert Edwards wrote:
>
> Thanks BJ & Hegart.
>
> I managed to get vi mode working. One gotcha I've found is that to change 
> modes in vi from insertion to command, the key is the escape key. This is 
> also the key TW uses to abandon a tiddler. It brings up an "Abandon changes 
> to this tiddler?" dialog. If I cancel it, it returns me to the editor but 
> fortunately also switches to command. Annoying but liveable I think.....
>
> On Thursday, March 31, 2016 at 4:07:49 PM UTC-4, BJ wrote:
>>
>> Hi Robert,
>>
>> you need to look at the tiddler $:/plugins/tiddlywiki/codemirror/usage 
>> to see how to setup using a config tiddler ($:/config/CodeMirror),
>>
>> However, the external files mentioned are not the correct ones for the 
>> version used in the tw plugin (which is 4.1.1)
>>
>> in place of files like
>> http://codemirror.net/addon/edit/closebrackets.js
>> you need to use
>>
>> https://raw.githubusercontent.com/codemirror/CodeMirror/295c1aff82ad31e465c7ba391dde51d818b45a7c/addon/edit/closebrackets.js
>>
>> all the best
>> BJ
>>
>>
>> On Wednesday, March 30, 2016 at 7:56:12 PM UTC+1, Robert Edwards wrote:
>>>
>>> I realize I'm replying to an old post.....
>>>
>>> I've just run across this discussion and reference to CodeMirror it 
>>> looks intriguing but I'm also having great difficulty figure out what I can 
>>> do with it and *how*. For instance Danielo mentions in this post to 
>>> which I'm replying that perhaps Stephen is in vi(m) editing mode. How would 
>>> I enable that? I use vim day-to-day and it would make my life easier to use 
>>> it in TW!
>>>
>>> What documentation I've found so far has been either sparse, somewhat 
>>> obtuse, or (e.g. the official CM docs) too generic for me to understand how 
>>> it works specifically in the context of TW.
>>>
>>> Thanks!
>>>
>>> On Wednesday, October 1, 2014 at 1:04:59 PM UTC-4, Danielo Rodríguez 
>>> wrote:
>>>>
>>>> Hello Stephen, 
>>>>
>>>> Please download this repository as zip and check it out. There are 
>>>> several ready to test tiddlywiky files with different implementations of 
>>>> Codemirror :
>>>>
>>>> https://github.com/danielo515/TW5-CodemirrorPluginTest
>>>>
>>>> They are pretty old, but maybe can help you to see it is useful for 
>>>> you. 
>>>>
>>>> The reason you can not write is probably because you have vim mode 
>>>> selected. Try hitting the i key. Or you can just remove the key mapping 
>>>> from the config Codemirror plugin. 
>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3a359a40-c72c-4c62-97cc-694509925a69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to