Hi Jeremy,

Thanks for the response.

I can't reproduce the bug on the tiddlywiki site because I can't save 
changes there. To reproduce the bug yourself, do the following;

1. Create a new tiddler titled $:/config/CodeMirror.
2. Paste the following code into this new tiddler;

{
  "require": [
      "$:/plugins/tiddlywiki/codemirror/mode/javascript/javascript.js",
      "$:/plugins/tiddlywiki/codemirror/addon/dialog/dialog.js",
      "$:/plugins/tiddlywiki/codemirror/addon/search/searchcursor.js",
      "$:/plugins/tiddlywiki/codemirror/addon/edit/matchbrackets.js",
      "$:/plugins/tiddlywiki/codemirror/keymap/vim.js",
  ],
  "configuration": {
      "keyMap": "vim",
      "matchBrackets":true,
      "showCursorWhenSelecting": true
  }
}

3. Set the type field of this tiddler to application/json.
4. Refresh for the changes to take effect.
5. If you now attempt to edit any tiddler, you will see a block cursor. Vim is 
a modal editor and starts of in command mode.
6. Press the 'i' key. This will switch to insert mode. You can now type as for 
a normal editor.
7. Entering the '#' or '~' key however should reproduce the error I described.

Further details on configuring CodeMirror (which is where I got the information 
on setting it up from) are to
be found in $:/plugins/tiddlywiki/codemirror/usage.

Thank you so much for your help.



On Monday, May 18, 2015 at 7:13:36 PM UTC+1, Jeremy Ruston wrote:
>
> Hi R Ax
>
> My apologies for the late reply. I'm not familiar with vim; could you 
> kindly list the step-by-step instructions that will reproduce the bug on 
> http://tiddlywiki.com/plugins/tiddlywiki/codemirror/ 
> <http://www.google.com/url?q=http%3A%2F%2Ftiddlywiki.com%2Fplugins%2Ftiddlywiki%2Fcodemirror%2F&sa=D&sntz=1&usg=AFQjCNEG9hARuVPZYVYFqrjxcTi-wVMMtQ>
> ?
>
> Many thanks,
>
> Jeremy,
>
> On Thu, May 7, 2015 at 7:16 PM, R Ax <rax....@gmail.com <javascript:>> 
> wrote:
>
>> Hi guys,
>>
>> I get the following error message whenever I type the characters '#' or 
>> '~' in insert mode of vim emulation for CodeMirror.
>>
>> "TypeError: keyName.indexOf is not a function"
>>
>> I noticed a similar bug reported a year ago which was triggered by the 
>> '=' character and which since appears to have been fixed.
>>
>> Any ideas?
>>
>> regards
>>
>> -- 
>> 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 tiddlywiki+...@googlegroups.com <javascript:>.
>> To post to this group, send email to tiddl...@googlegroups.com 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/tiddlywiki.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/4ca09d5c-839c-4228-b190-aee17f78bd5e%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/4ca09d5c-839c-4228-b190-aee17f78bd5e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Jeremy Ruston
> mailto:jeremy...@gmail.com <javascript:>
>  

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a49b4a59-c04f-4552-b753-166347f416a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to