← Back to team overview

zim-wiki team mailing list archive

Re: Howto disable wiki-syntax (checkboxes)

 

Hi Japp,

not sure about this. I like zim for its speed and the git integration,
also the search abilities are very nice.
I used KeepNote before ... but that just doesn't work out with all the
DB transactions in the backend, when things get bigger.

I had the idea to put the ''' verbatim ''' brackets in the "Default.txt"
template.
This works so far, all but the last line of the every Default page no is
verbatim.
Unfortunately the courser is getting set to the last line :-(

So I had the idea to remove the last line-break from the Default.txt
with an hexeditor ...

cat Default.txt
'''
''
xxd Default.txt
0000000: 2727 270a 2727 27                        '''.'''

Now zim crashes all the time and can't save pages... Guess python
readfile() return a None Object. (Attachment)

Thanks for any feedback


Cheers



On 14/10/15 20:24, Jaap Karssenberg wrote:
> Sorry, but if you want all text verbatim by default and no formatting,
> maybe you are looking at the wrong application. Zim is specifically
> targetting formatted text.
>
> Not saying you can not hack it to make it do that, but not a use case
> I think I will support by default.
>
> Regards,
>
> Jaap
>
>
> On Wed, Oct 14, 2015 at 7:54 PM, cmpone <cmpone@xxxxxx
> <mailto:cmpone@xxxxxx>> wrote:
>
>     Thank you Jaap for the hint,
>
>     still it is not optimal yet.
>
>     When I mark text blocks and format them to verbatim they don't get
>     properly transformed (see pictures in attachment).
>     Is it possible to create all TextView's as Verbatim by default?
>
>     I tried to temper the styles.xml:
>
>     [TextView]
>     indent=30
>     tabs=None
>     linespacing=3
>     font=Sans 14
>     wrap-mode=GTK_WRAP_NONE   <-----
>     family=monospace                    <-----
>
>     But it has no effect.
>
>
>
>
>     On 14/10/15 14:47, Jaap Karssenberg wrote:
>>     Sorry to be bold, but I think you are asking the wrong question.
>>
>>     Your question should be how to store verbatim text, like code,
>>     without any wiki formatting done ?
>>
>>     The answer is
>>     1/ Use the "verbatim" formatting style
>>     2/ Use the plugin for embedding blocks of code
>>
>>     Regards,
>>
>>     Jaap
>>
>>
>>
>>     On Mon, Oct 12, 2015 at 11:23 PM, cmpone <cmpone@xxxxxx
>>     <mailto:cmpone@xxxxxx>> wrote:
>>
>>         Any updates on this?
>>
>>         I looked at the pageview.py in GUI and spotted this part:
>>
>>         autoformat_bullets = {
>>             '*': BULLET,
>>             '[]': UNCHECKED_BOX,
>>             '[*]': CHECKED_BOX,
>>             '[x]': XCHECKED_BOX,
>>             '()': UNCHECKED_BOX,
>>             '(*)': CHECKED_BOX,
>>             '(x)': XCHECKED_BOX,
>>         }
>>
>>
>>         I tried to change it but I couldn't disable the described
>>         behaviour (see below).
>>         Any ideas where to look? I try to disable the "wiki-syntax" -
>>         at least for checkboxes.
>>
>>         Thanks
>>
>>         On 10/10/15 20:53, cmpone wrote:
>>>         Hi,
>>>
>>>         I recently discovered this great tool.
>>>         Thank you for the effort.
>>>
>>>         *TLDR:* _How can I disable all styles i.e. Check-boxes from
>>>         GUI_. And leave only Links and H1, H2,.. , highlighting.
>>>
>>>         In my use case there is strong need to store plain text data
>>>         in somewhat hierarchical order.
>>>         I find this difficult as the wiki-syntax replaces my "code".
>>>         After pasting
>>>         [*] code
>>>         [ ] code
>>>             [*] code
>>>             [x] more-code
>>>
>>>         I noticed that I can copy the source from the text files as
>>>         a workaround. But this is not so handy.
>>>         May be there is a way to change the styles in the
>>>         "style.conf"? I check the FAQ and the manual and didn't find
>>>         something like this.
>>>
>>>         I know that syntax is one of the main features but for my
>>>         special use case it is just too much.
>>>         In case that there is no such option could you hint me which
>>>         part of the source code need's to be patched? I am willing
>>>         to patch it.
>>>
>>>         Thank you very much.
>>>
>>>
>>>
>>
>>
>>         _______________________________________________
>>         Mailing list: https://launchpad.net/~zim-wiki
>>         <https://launchpad.net/%7Ezim-wiki>
>>         Post to     : zim-wiki@xxxxxxxxxxxxxxxxxxx
>>         <mailto:zim-wiki@xxxxxxxxxxxxxxxxxxx>
>>         Unsubscribe : https://launchpad.net/~zim-wiki
>>         <https://launchpad.net/%7Ezim-wiki>
>>         More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>

Attachment: 3.png
Description: PNG image


Follow ups

References