Re: [tw] Re: Announcing TiddlyWiki 5.0.7-beta

2014-01-26 Thread João Bolila
please try to put the begin of the block and the end of the block in
separate lines:

```
content
```

it is also possible specify the language of the block, in this case css:

```css
content
```

the plugin works with codeblocks not with codeinline.

(I think highlightjs don't support sass or less, for that you need the
lesscss.org)


regards,

jb

On 26/01/14 22:57, Danielo Rodríguez wrote:
 Ok, first issue here:
 
 If I drop this tiddler on TW5.0.7 I get a Javascript Internal error error.
 It has the tags $:/tags/stylesheet and topmenu. The title
 is: $:/stylesheet/topmenu
 
 This is the content.
 
 |
 ``` /* STYLES FOR A TOP MENU WITH TOOLBAR BUTTONS */ /* + STYLES FOR
 OTHER TOOLBARS */ /* DISTINCTION BETWEEN MOBILE MEDIA  STANDARD MEDIA
 */ /* MOBILE MEDIA MAX. 770px */ @media (max-width: 770px) { html
 .sidebar-header { padding : 42px 0 0 15px; } /* TOP MENU */ html
 .tw-topmenu { padding : 0 15px; } } /* STANDARD MEDIA MIN. 770px */
 @media (min-width: 770px) { /* TOP MENU */ html .tw-topmenu { padding :
 0px 42px; } } /* TOP MENU, FIXED IN POSITION */ html .tw-topmenu {
 background : #EFEFEF !important; /* as background */ height : 45px;
 margin : 0; position : fixed; top : 0; left : 0; width : 100%; z-index :
 99; } /* TOP MENU CLEARANCE */ /* TO AVOID THE TOP MENU OBSCURES PART OF
 TIDDLERS */ /* transform : translate(0px, 56px); for standard buttons
 ViewToolbar */ /* transform : translate(0px, 51px); for small buttons
 ViewToolbar above title */ /* transform : translate(0px, 44px); idem +
 smaller title 0.9em */ /* these are just indications; adjust for
 aligning Wiki title - tiddler title */ html .story-river { padding-top :
 0px; transform : translate(0px, 44px); /* Firefox */ -ms-transform :
 translate(0px, 44px); /* IE 9 */ -webkit-transform : translate(0px,
 44px); /* Safari and Chrome */ } /* PADDING TIDDLERS */ /* no top
 padding in case of small buttons in ViewToolbar */ html
 .tw-tiddler-frame { padding : 0px 32px 32px 32px; } /* FLOAT RIGHT */ /*
 PUSHES THE TOGGLE BUTTONS TO THE RIGHT OF THE TOP MENU */ .floatright {
 float : right; } /* TIDDLER BUTTONS: VIEWTOOLBAR, EDITTOOLBAR */ html
 .tw-tiddler-controls button svg { height : 0.5em; } /* DISTANCE BETWEEN
 BUTTONS */ /* Firefox margin: 0px 0px 0px 0px; */ /* Chrome margin: 0px
 0px 0px 10px; */ /* adjust to your liking */ html .tw-tiddler-controls
 button { margin : 0px 0px 0px 5px; } /* TITLE - TOOLBAR SPACING
 VIEWTEMPLATE */ html .tw-tiddler-title-space { font-size : 1.4em;
 line-height : 1em; } /* DISPLAY IN 3 COLUMNS */ /* for List all tags */
 .threecolumns { display : block; column-count : 3; -moz-column-count :
 3; -webkit-column-count: 3; } /* HELP TABLE */ /* styles the Help menu
 */ html .help-table { font-size: 0.9em; background-color : #EEF4FD
 !important; /* as background */ } /* SCALE SVG IMAGES IN HELP TABLE' */
 html .tw-images svg { height : 1.1em; } ```
 
 |
 
 
 A bit sad since I really wanted the Highlight feature. 
 
  
 El domingo, 26 de enero de 2014 22:33:09 UTC+1, Danielo Rodríguez escribió:
 
 Awesome!!!
 I was waiting for this so much!
 I will try it out.
 
 Is any incompatibility expected? 
 The new filter operands are from the Stephan widgets?
 
 Thank you very much for this awesome work.
 
 El domingo, 26 de enero de 2014 22:20:36 UTC+1, Jeremy Ruston escribió:
 
 TiddlyWiki 5.0.7-beta has just been released at:
 
 http://tiddlywiki.com/
 
 Particular thanks to Mario Pietsch, Stephan Hradek and João
 Bolila for their GitHub contributions to this release. And
 thanks to everyone whose feedback here has helped to shape and
 improve this release.
 
 This release improves the documentation documentation:
 
 * A new video tutorial: TiddlyWiki on Firefox for Android Video
 * A first pass at TiddlyWiki Coding Style Guidelines
 * Added an explanation of TemplateTiddlers
 * Added documentation for saving on a custom PHP server
 * Added documentation for TextWidget
 * Summary of the approach for Naming of System Tiddlers
 
 New features for 5.0.7
 
 * Added support for importing encrypted TiddlyWiki documents
 * Added several new filter operators, including reverse, first,
 last, butlast, rest, nth
 * Extend list filter operator to allow other fields to be used
 via a TextReference
 * Added emacs and vim keymapping support to the CodeMirror plugin
 * Added the highlight.js syntax highlighting plugin:
 http://tiddlywiki.com/highlightdemo.html
 http://tiddlywiki.com/highlightdemo.html
 * Added the first export option to the Tools tab of the control
 panel
 * Added an ellipsis for advanced search next to the search box
 in the sidebar
 
 Bug fixes include:
 
 * Fixed problem with default format of ViewWidget substituting
 seconds for minutes

Re: [tw] TW5 highlight themes

2014-01-26 Thread João Bolila
Hi,

You can see the example in http://tiddlywiki.com/highlightdemo.html

choose the theme from http://highlightjs.org/static/test.html, view
source and copy the content of the css you want into your:

$:/tags/stylesheet (type: text/css)

(for example the content of
http://highlightjs.org/static/styles/tomorrow-night.css)


regards,

jb

On 27/01/14 00:22, Danielo Rodríguez wrote:
 Hello, 
 I'm experimenting with the brand new features of TW5.0.7
 The one I like the most is the ability to highlight code.
 
 I see there are several themes (http://highlightjs.org/static/test.html)
 but I don't know how to switch it.
 I tried to add a tiddler tagged as stylesheet, but it is not working.
 
 Any idea?
 Thank you very much
 
 -- 
 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.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
PGP: 0xD39BB7C9
853F 9D17 E5F9 2EE0 50C4 B276 6B5A F53C D39B B7C9



signature.asc
Description: OpenPGP digital signature


Re: [tw] Re: CodeMirror plugin

2014-01-23 Thread João Bolila
Hi,

I have one pull request with one way of implement this

https://github.com/jbolila/TiddlyWiki5/tree/codemirror_keymap

and I'm using this since them without major concerns.


regards,

joao bolila


On 23/01/14 18:36, Chris Miller wrote:
 
 
 On Thursday, January 23, 2014 10:34:04 AM UTC-8, Chris Miller wrote:
 
 I looked at the code in 
 
 /usr/lib/node_modules/tiddlywiki/plugins/tiddlywiki/codemirror/codemirroreditor.js
 and I found:
 
 cm = CodeMirror.fromTextArea(this.domNodes[0],{
 lineWrapping: true,
 lineNumbers: true,
 /* keyMap: vim, */  == I added this,
 and it is not the answer.
 showCursorWhenSelecting: true
 
 
 When I tried the naive approach above, I got an error: Map is
 undefined.  I don't yet know enough about node.js to unravel this,
 but I hope to and any instructions and explanations are welcome. 
 This is as far as I can go given the current state of my
 understanding.  I hope to be able to be more help.
 
 
 Oops... I neglected to say that I _*also*_ found and downloaded vim.js
 and I put it in each of ./codemirror/keymap/vim.js and
 ./codemirror/files/keymap.vim.js and in each case I failed with the
 above Map is undefined error.
 
 -- 
 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.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
PGP: 0xD39BB7C9
853F 9D17 E5F9 2EE0 50C4 B276 6B5A F53C D39B B7C9



signature.asc
Description: OpenPGP digital signature


Re: [tw] Re: Creating a macro for a new tiddler

2014-01-13 Thread João Bolila
Very nice, this is very useful, congratulations.

 in case of want to filter and list the persons in the same town, what
is the best approach?


On 13/01/14 11:50, Stephan Hradek wrote:
 I just created a simple Contact Database using the newtiddler widget.
 Take a look at the tiddler Creating a simple Contacts DB on
 http://tw5magick.tiddlyspot.com/
 
 
 -- 
 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.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
PGP: 0xD39BB7C9
853F 9D17 E5F9 2EE0 50C4 B276 6B5A F53C D39B B7C9



signature.asc
Description: OpenPGP digital signature


[tw] tw5: plugin options

2014-01-11 Thread João Bolila
Hi,

what is the best practice to allow the user set options for one plugin?
eg. allow a user set codemirror to vim or emacs mode.


Thanks,

João Bolila

-- 
PGP: 0xD39BB7C9
853F 9D17 E5F9 2EE0 50C4 B276 6B5A F53C D39B B7C9



signature.asc
Description: OpenPGP digital signature


Re: [tw] TW5: links and Markdown plugin

2014-01-09 Thread João Bolila
Hi Jeremy,

probably here we gonna have some clash between plugins, for example the
codeblock if I use the markedown and is executed before the highlight
plugin the code won't be highlighted. Do you have any idea of how to
address this?

ps: my pull request have de codeblock as widget and the updated
highlight.js (version 8.0) preview here http://bolila.tiddlyspot.com/


regards,

Joao Bolila


On 09/01/14 21:36, Jeremy Ruston wrote:
 Hi Chris
 
 Wiki links in markdown text are not supported yet, and there's no
 straightforward way to create them.
 
 The rough idea I had was to postprocess the HTML generated by the
 markdown plugin to convert links #links into wiki links, which would
 mean that you'd use exactly the syntax you guessed.
 
 Best wishes
 
 Jeremy.
 
 
 
 On Thu, Jan 9, 2014 at 7:51 PM, Chris Lott ch...@chrislott.org
 mailto:ch...@chrislott.org wrote:
 
 I'm using the Markdown plugin from here:
 http://tiddlywiki.com/markdowndemo.html
 
 Text formatting works fine...but how can I link to other Tiddlers?
 
 CamelCase links don't appear to work.
 
 I thought a syntax like:
 [Music to Look For](#Music to Look For)
 
 would work, but while it looks and is (copies) exactly the same as
 if I right-click on the navigation link to that Tiddler:
 
 file:///Users/chris/Dropbox/tmp/tid5/index.html#Music%20to%20Look%20For
 
 in the sidebar, it doesn't work in the Tiddler, though it does from
 the sidebar...
 
 
 
 
 -- 
 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
 mailto:tiddlywiki%2bunsubscr...@googlegroups.com.
 To post to this group, send email to tiddlywiki@googlegroups.com
 mailto:tiddlywiki@googlegroups.com.
 Visit this group at http://groups.google.com/group/tiddlywiki.
 For more options, visit https://groups.google.com/groups/opt_out.
 
 
 
 
 -- 
 Jeremy Ruston
 mailto:jeremy.rus...@gmail.com mailto:jeremy.rus...@gmail.com
 
 -- 
 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.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
PGP: 0xD39BB7C9
853F 9D17 E5F9 2EE0 50C4 B276 6B5A F53C D39B B7C9



signature.asc
Description: OpenPGP digital signature


Re: [tw] [tw5] DOM node access from parser

2014-01-07 Thread João Bolila
Thanks Jeremy,

Is what I need for my experiments thanks. The transcludeinline.js and
TranscludeWidget are also good examples.

I will try later this changes.


jb

On 07/01/14 12:41, Jeremy Ruston wrote:
 Hi João
 
 Is your goal is to apply some JavaScript to a DOM node after it is
 rendered? That is the problem that widgets are designed to solve. Here
 it may be that the best thing is to change the codeblock.js parser to
 generate a $codeblock widget, and then your plugin can override the it
 in the same way that the codemirror plugin overrides the edit-text widget.
 
 Best wishes
 
 Jeremy
 
 
 
 On Tue, Jan 7, 2014 at 7:13 AM, João Bolila j...@bolila.com
 mailto:j...@bolila.com wrote:
 
 It is possible, or will be a good idea have blocks of javascript
 associate to a element passed by one parser (for example) and applicable
 to that DOM node?
 
 I'm thinking in the example of what I'm trying to do with the
 highlight.js plugin, where I would like to try different approaches (to
 allow the use of themes), and for that the use of:
 
 http://highlightjs.readthedocs.org/en/latest/api.html#highlightblock-block
 
 
 --
 PGP: 0xD39BB7C9
 853F 9D17 E5F9 2EE0 50C4 B276 6B5A F53C D39B B7C9
 
 
 
 
 -- 
 Jeremy Ruston
 mailto:jeremy.rus...@gmail.com mailto:jeremy.rus...@gmail.com
 
 -- 
 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.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
PGP: 0xD39BB7C9
853F 9D17 E5F9 2EE0 50C4 B276 6B5A F53C D39B B7C9



signature.asc
Description: OpenPGP digital signature


[tw] [tw5] DOM node access from parser

2014-01-06 Thread João Bolila
It is possible, or will be a good idea have blocks of javascript
associate to a element passed by one parser (for example) and applicable
to that DOM node?

I'm thinking in the example of what I'm trying to do with the
highlight.js plugin, where I would like to try different approaches (to
allow the use of themes), and for that the use of:

http://highlightjs.readthedocs.org/en/latest/api.html#highlightblock-block


-- 
PGP: 0xD39BB7C9
853F 9D17 E5F9 2EE0 50C4 B276 6B5A F53C D39B B7C9



signature.asc
Description: OpenPGP digital signature