• tguillemin

    I encounter 2 different placeholder labels' position :

    • in lieu of the folded lines, i.e. under the "folding" header
    • at the end of the "folding" header

    This second type seems to have 2 advantages : it is more compact, and it allows to move up/down the block (header and folded lines) in one step.

    Is it possible to choose between those 2 configurations ?

    Thanks

    posted in Editorial read more
  • tguillemin

    @ccc said:

    lines = '\n'.join(line[:1].title() + line[1:] for line in lines.splitlines()) + '\n'

    I had not tried it with blank lines (in my file, it does not occur)
    Nevertheless, I tried your solution - successfully - after inserting those blank lines.

    Thank you. That will most certainly be useful some day…!

    posted in Editorial read more
  • tguillemin

    It woks nicely
    Thank you very much, and thanks again for this app.

    posted in Editorial read more
  • tguillemin

    I want to capitalize the first letter of each line in a text. So, I came up with the following Find/Replace (Regular Expression)

    Find : ^([a-z])

    Replace with : \U$1

    This works in Regex101 (Python flavor), but not in Editorial (I get a capital U at the beginning of each line starting with a lower case character)

    Where did I go wrong ?

    Thanks in advance

    posted in Editorial read more
  • tguillemin

    Thank you very much for your answer.

    It works, of course, beautifully.

    Thanks again

    posted in Editorial read more
  • tguillemin

    This is, of course , inspired by the question "List of workflows"
    [https://forum.omz-software.com/topic/3994/list-of-workflows](link url)

    I wondered if it would be possible to obtain the list of all sub-workflows in the different main workflows, e.g. :

    workflowfoo:subworkflowbar
    workflowfoo:subworkflowbaz

    Although this would help me keeping organized (some workflows are used as sub-workflows in more than one other workflow), this is, alas, far beyond my competences…

    Thanks in advance

    posted in Editorial read more
  • tguillemin

    I want to build a workflow to fold/unfold not lines, but specific headers and their contents, and I do not know how to proceed.(I suppose iwhat action ? what Regex ?). Of course I know how to do that manually…

    I have a text, e.g. :

    #Chapter one (@tag1, @tag2)
    
    some text
    some other text
    
    #Chapter two (@tag2, @tag3)
    
    foo
    ber
    baz
    
    #Chapter three (@tag1, @tag3)
    
    London
    Paris
    Berlin
    
    #Chapter four (@tag2, @tag4)
    
    something
    anything
    

    I want to select the, e.g. @tag1 headers and unfold these and these only, so as to have :

    #Chapter one (@tag1, @tag2)
    
    some text
    some other text
    
    [number of hidden words]
    
    #Chapter three (@tag1, @tag3)
    
    London
    Paris
    Berlin
    
    [number of hidden words]
    

    How should I proceed ?

    Thanks in advance

    posted in Editorial read more
  • tguillemin

    @omz

    Thank you very much for youe answer, which works perfectly.

    And thank you too for Editorial, which is a truly beautiful app (NB: on Mac OSX, my editor of choice is Vim, not for programming, but for writing)

    Side question (only answer if you have got time) : how to sort that same list on the n-th column ?

    And of course, best wishes for 2017

    posted in Editorial read more
  • tguillemin

    @ccc

    First of all, thank you

    But, second, I get an error, which most certainly originates in the fact that I am an ignoramus in Python, and do not know how to adapt your answer to my needs.

    Thank you again nevertheless

    posted in Editorial read more
  • tguillemin

    I have, e.g., the following lines in the middle of a larger text

    Beijing
    Berlin
    London
    Moscow
    New York
    Paris

    How do I shuffle that list (and not the rest of the text) ?

    Thanks in advance

    posted in Editorial read more

Internal error.

Oops! Looks like something went wrong!