[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-14 Thread Yakov
пятница, 14 июня 2013 г., 2:20:45 UTC+4 пользователь Yakov написал: Hi Mario четверг, 13 июня 2013 г., 3:59:25 UTC+4 пользователь PMario написал: On Wednesday, June 12, 2013 10:05:38 PM UTC+2, Yakov wrote: Two more things. First, I've got a problem with the indents. Most likely it's a

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-12 Thread PMario
On Wednesday, June 12, 2013 10:05:38 PM UTC+2, Yakov wrote: Two more things. First, I've got a problem with the indents. Most likely it's a CodeMirror bug, but still.. I've changed my tabSize for JavaScript to 8. Now I've got 4 spaces instead of 1 tab here and there. An example: I create a

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-12 Thread PMario
On Wednesday, June 12, 2013 10:05:38 PM UTC+2, Yakov wrote: The second issue is tables. Only the first | bar is highlighened (I've tested this in the 2.8.0 as well) with bold blue, others are not. By the first I mean the first in a line. This is by intention. 2 reasons. a) I did test it

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-12 Thread PMario
On Wednesday, June 12, 2013 10:05:38 PM UTC+2, Yakov wrote: then, cursor being in the end of the second line, I press enter and on the next line I get 4 spaces instead of 1 tab. If I surround the whole thing with //{{{ ... //}}} brackets, in the view mode I get 4 spaces even where one tab

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-09 Thread Yakov
There is a shadow tiddler StyleSheetCodeMirror that is there for this reason. adjust this one. You should _not_ mess with tiddlywiki.css for compatibility reasons. It comes from codemirror.net. use StyleSheetCodeMirror. Actually, I didn't get how to apply Arial fonts only for

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-09 Thread PMario
On Sunday, June 9, 2013 4:37:01 PM UTC+2, Yakov wrote: What confuses me here is.. !!! null default mode has an unlucky name {{{ tags: *mode: text/plain - should this be null? is this a mime or a mode?*(and what about the section's name?) Here we have *mode* in the header and

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-08 Thread PMario
On Saturday, June 8, 2013 2:39:01 AM UTC+2, Yakov wrote: So, the next thing that would improve experience much is making typeChooser a toolbar command (this will make installation to many microreps, including via SharedTiddlersPlugin much simpler). Would be possible. But to be honest. I

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-08 Thread PMario
On Saturday, June 8, 2013 2:39:01 AM UTC+2, Yakov wrote: There's one more bug I've run into, rather complicated one. Previously I mentioned that I get the Are you sure you want to abandon your changes to '...'? dialogue in cmEdit when I changed something but in the end the content is

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-07 Thread Yakov
Hi Mario, As for the after content-type is chosen with typeChooser, the text area gets hidden. Saving and reopening the tiddler gets it back to visible and the content-type is saved, though bug, now it only appears in already existing tiddlers (when editing), but not in newly-created

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-06 Thread PMario
On Thursday, June 6, 2013 1:55:04 AM UTC+2, Yakov wrote: By the way, would you mind, to improve the workflow of using codemirror-plugins space * add the close button in the main part of the toolbar (not in the more part of it) I wouldn't mind, but the ToolbarCommands tiddler that you

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-06 Thread PMario
On Thursday, June 6, 2013 2:35:14 AM UTC+2, Yakov wrote: By the way, the nbsp; bug is gone, too. good. As for the after content-type is chosen with typeChooser, the text area gets hidden. Saving and reopening the tiddler gets it back to visible and the content-type is saved, though

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-06 Thread PMario
On Thursday, June 6, 2013 1:55:04 AM UTC+2, Yakov wrote: * the same story with line numbers in text/x-tiddlywiki: as it's not a code, line numbers are not necessary ** can I customize this one myself? Open the CodeMirrorConfig tiddler and add lineNumbers: false to the tiddlywiki section

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-05 Thread PMario
Hi Yakov, I did a manual update [1] at the codemirror-plugins space. From cm version 2.23 to version 2.38. 2.38 is the last one, prior to the big step to v3.0 which is not compatible anymore. (New plugins will be needed) There have been quite some improvements with the selection handling. May

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-05 Thread PMario
Yakov, Does your StyleSheetCodeMirror tiddler look like this? and Are your css tiddlers named exactly the way used below? [[codemirror.css]] [[tiddlywiki.css]] .CodeMirror { border: 1px solid [[ColorPalette::PrimaryMid]]; background: [[ColorPalette::Background]]; } -m -- You

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-05 Thread PMario
On Monday, May 6, 2013 5:20:09 PM UTC+2, Yakov wrote: * after content-type is chosen with typeChooser, the text area gets hidden. Saving and reopening the tiddler gets it back to visible and the content-type is saved, though Is this with version 2.6.5? -m -- You received this message

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-05 Thread Yakov
Hi Mario, great stuff, selecting now works as expected, thanks! By the way, would you mind, to improve the workflow of using codemirror-plugins space * add the close button in the main part of the toolbar (not in the more part of it) * add the Version slices to the CodeMirror .js tiddlers,

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-06-05 Thread Yakov
By the way, the nbsp; bug is gone, too. As for the after content-type is chosen with typeChooser, the text area gets hidden. Saving and reopening the tiddler gets it back to visible and the content-type is saved, though bug, now it only appears in already existing tiddlers (when editing),

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-05-31 Thread Yakov
Hi Mario, as the non-visible selection issue is rather pressing, I've done some more inverstigation and here are the results: 1. In TiddlySpace, all the Opera, FireFox, IE, Chrome, Safari browsers make selection visible 2. In a local TW (2.6.5) in all those browsers selection is invisible

Re: [tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-05-07 Thread Jeremy Ruston
Just a by-the-by, but I've experimented with making a codemirror plugin for TW5. I got it working but found that it was too slow to activate for me. I will brush off the code at some point and put it in the TW5 plugin repo. Cheers Jeremy On Tue, May 7, 2013 at 1:23 AM, Yakov

Re: [tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-05-07 Thread PMario
On Tuesday, May 7, 2013 12:34:36 PM UTC+2, Jeremy Ruston wrote: Just a by-the-by, but I've experimented with making a codemirror plugin for TW5. I got it working but found that it was too slow to activate for me. I will brush off the code at some point and put it in the TW5 plugin repo.

Re: [tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-05-07 Thread Jeremy Ruston
I used codemirror v3.1. I'll try to get it in the repo this afternoon, Best wishes Jeremy On Tue, May 7, 2013 at 12:10 PM, PMario pmari...@gmail.com wrote: On Tuesday, May 7, 2013 12:34:36 PM UTC+2, Jeremy Ruston wrote: Just a by-the-by, but I've experimented with making a codemirror

Re: [tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-05-07 Thread Jeremy Ruston
I've uploaded the CodeMirror plugin to the TW5 repo: https://github.com/Jermolene/TiddlyWiki5/commit/dd8c8567fd37e7c2d96aa570f45b71268a04cb35 To try it out, you'll need to use the node.js edition of TW5. Just edit the `tiddlywiki.info` file of the `tw5.com` edition to include the plugin: {

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-05-06 Thread PMario
Hi Yakov, Thx for the detailed feedback. It's allways very welcome. On Monday, May 6, 2013 5:20:09 PM UTC+2, Yakov wrote: Second, I must admit, it wasn't easy with current documentation and notes from previous attempts helped me. I'd suggest to create an installation section and list these

[tw] Re: Assaulting CodeMirror, take 3: final success (and feedback)

2013-05-06 Thread Yakov
понедельник, 6 мая 2013 г., 21:27:59 UTC+4 пользователь PMario написал: Hi Yakov, Thx for the detailed feedback. It's allways very welcome. On Monday, May 6, 2013 5:20:09 PM UTC+2, Yakov wrote: Second, I must admit, it wasn't easy with current documentation and notes from previous