Forum Replies Created

Viewing 25 posts - 1 through 25 (of 73 total)
  • Author
    Posts
  • in reply to: Paste from multiple selection overwrites text #28280
    spiros
    Participant

    Of course, I fully agree; but in this case vertical paste happens in normal mode (not CSV).

    As far as features, I understand different people have different opinions. I think that software developers should focus on what is useful (and logical) for most people. Some developers—not very many—like you go the extra mile and provide very specialized features like this vertical type paste following user demands -:)

    This, however, has the potential side-effect of unexpected behavior for the average user, hence, my insistence on describing this functionality.

    in reply to: Paste from multiple selection overwrites text #28274
    spiros
    Participant

    I believe the current behavior (vertical selection paste) was requested by a user

    Ah, OK. Now I understand why this is so idiosyncratic — it was made to order :)

    In any way, vertical selection paste can be a slight misnomer, as there needs to be no vertical selection before the paste. So I think it is a kind of implicit vertical paste (without vertical selection).

    I think yes, it can be useful in such a scenario, but I think it makes sense that paste behaves the same way as a default irrespective of whether it is paste from standard copy or from multiple selection. Don’t you think so? I mean, in the current scenario, it is a much more complicated implementation (programmatically) than the standard paste. Having the option to have a non vertical paste would be quite simple to implement -:)

    Of course, this is up to you -:)

    in reply to: Paste from multiple selection overwrites text #28272
    spiros
    Participant

    Well, as it is obvious from your example, pasting after multiple selection is radically different from pasting from standard selection, which, apart from not being used as such in any other tool I know, and requiring a convoluted way (as you described with pasting in another document) in order to result in a standard paste, it is confusing to the user as it mixes the pasted text with already existing text. Is there any practicality in this? No, in my opinion.

    Since you already have an option (“Always insert newlines when copying multiple selections”), which I was not aware off, and thank you for mentioning it, then perhaps you could adapt it so that it does what it actually describes (I.e. “insert newlines” instead of “merge existing text below with pasted text”). If the current behaviour is desired by you or someone else (I cannot think of why), then it could simply be an extra option at that menu:

    1. Always insert newlines when copying multiple selections (without merging) [proposed default]
    2. Always insert newlines when copying multiple selections (with merging) [current behaviour]

    Does that make sense to you?

    in reply to: Paste from multiple selection overwrites text #28270
    spiros
    Participant

    If you paste the multi selection strings (bold words in Text 1) in the line before the Text 2 (the line starting with 1) then the expected result should be:

    should
    behaviour
    selection
    basis
    1
    2
    3
    4
    5

    Currently, the result is:

    should
    behaviour1
    selection2
    basis3
    4
    5

    in reply to: Paste from multiple selection overwrites text #28268
    spiros
    Participant

    I will try to simply recreate what was done in the video.

    Lets suppose you have two texts.

    text 1 is this

    So you mean the user should expect one behaviour from paste text
    pushing content below further down) and a different one from
    paste text from multi selection (mixing pasted text with content
    already below on a line by line basis)? It does not make sense

    And further down you have text 2

    1
    2
    3
    4
    5

    If you copy the whole text 1 and you paste before line one in text 2, text 2 will be pushed down, ie not affected in any sense. Ok so far?

    Now, try multiple selection and select all the bits from text 1 in bold. Now paste before line one in text 2. The behaviour is completely different as text strings copied from text 1 are merged with text bits in text 2!

    The expected behaviour is exactly the same as with simple paste, ie text 2 being moved down without being affected whatsoever.

    Is it clearer now?

    in reply to: Paste from multiple selection overwrites text #28266
    spiros
    Participant

    So you mean the user should expect one behaviour from paste text (pushing content below further down) and a different one from paste text from multi selection (mixing pasted text with content already below on a line by line basis)? It does not make sense to me, nor I find it practical. Have you seen such an implementation of paste after multiple selection in any other tool? MS Word pushes other text down, Notepad++ outputs all in one line without affecting text below.

    in reply to: Paste from multiple selection overwrites text #28260
    spiros
    Participant

    Sorry, it was an autodelete link (after a week or so), I uploaded again: https://ibb.co/Gs4GmTs

    in reply to: Paste from multiple selection overwrites text #28255
    spiros
    Participant

    Just wondering, have you seen this?

    in reply to: Manipulating cells in tab separated mode #28243
    spiros
    Participant

    You can drag and drop selected cells if you drag the border of the selection.

    Wow, cool, I did not know you could do that. However, when dropping cell to another cell, it overwrites it (no option to move down, etc).

    But I guess your macro should do what I described.

    in reply to: Remove leading, trailing, multiple spaces #28240
    spiros
    Participant

    Yes, of course. I thought it would be a good suggestion to have as a standard command.

    For example, Notepad++ has in Edit > Blank operations > Trim leading and trailing spaces and “Remove unnecessary blank and end of line”

    in reply to: Manipulating cells in tab separated mode #28239
    spiros
    Participant

    Thanks, but if I am not wrong, these simply insert lines after or before text in standard mode (not tsv). What I describe is manipulating cell positions and adjusting the surrounding cells according to the options above, I.e. Shift cells right and Shift cells down. For example if in the following table I shift down “b”

    1 – 2 – a
    3 – 4 – b
    5 – 6 – c
    7 – 8 – d

    The result will be:

    1 – 2 – a
    3 – 4 –
    5 – 6 – b
    7 – 8 – c
    —- —- d

    You can see what I mean by checking the relevant commands on Excel (right click on cell, select Insert).

    in reply to: Multi-copy and paste workflow #28231
    spiros
    Participant

    Ah, sorry, I did not understand how they would be entered. Yes, they are entered when selected!

    I found an easier way though to automate. Use multiple selection, copy, paste, select pasted text and run a macro that replaces commas and line breaks with pipe.
    I was not sure how to trim spaces left and right of pipe so I added some extra lines for that. I was not sure either if a macro could paste directly like this after multiple selection and copy (I tried using your macro with paste after multiple copy, but it did not add the delimiter.).

    document.selection.Replace(", ","|",eeFindReplaceSelOnly | eeReplaceAll,0);
    document.selection.Replace(" |","|",eeFindReplaceSelOnly | eeReplaceAll,0);
    document.selection.Replace("| ","|",eeFindReplaceSelOnly | eeReplaceAll,0);
    document.selection.Replace("\\n","|",eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp,0);
    in reply to: Multi-copy and paste workflow #28229
    spiros
    Participant

    Yes, understood. But running the macro does not paste the text. It only produces the pop-up in the image.

    in reply to: Go to top/bottom buttons in Macros Menu #28228
    spiros
    Participant

    Right clicking in the macros list does nothing for me. Please see image

    https://ibb.co/vvqkxzp

    in reply to: Paste from multiple selection overwrites text #28227
    spiros
    Participant

    Please see here
    https://ibb.co/YB7nhHX

    in reply to: Multi-copy and paste workflow #28221
    spiros
    Participant

    Also, the paste options box (Show clipboard History on Paste), could also have the options “Paste all” (with associated hotkey), “Delete all” and in “Customize” an option could be added so that the user can set the delimiter for “Paste all”. Currently, it only has “Select all” which can be useful only if one wants to delete all (requiring 2 steps to delete).

    in reply to: Multi-copy and paste workflow #28220
    spiros
    Participant

    Wow, interesting!
    I copied multiple items, then ran the macro, but it just displayed a pop-up with each item separated by line break.
    Maybe it would be easier to have a delimiter setting for the paste of multiple selection items? I can imagine many people could find that useful since they could use the delimiter of their choice to match their situation.

    2022-05-30-113059

    in reply to: Spell check multiple languages #28217
    spiros
    Participant

    For example, issues that may arise is conflicting encodings and encoding declarations between various .dic and .aff files.
    I.e. in Greek files I see Windows-1253 and in en_US.aff I see Western European and at the beginning of the file I see:

    SET ISO8859-1

    Creating versions of the files in UTF-8 did not work (suggestions were question mark symbols).

    in reply to: Spell check multiple languages #28216
    spiros
    Participant

    Thanks! I had tried combining them in the past but it did not work. As far as UserDic.bin is concerned you mean append both .aff and .dic files?

    spiros
    Participant

    Thank you so much! There was no way I could figure out by myself that something like that was possible!

    spiros
    Participant

    Interesting, the same behaviour with Notepad++. Not though with MS Word, or LibreOffice Writer.

    The point is that the first the last line are not wholly selected, but partly selected. The behaviour I would expect is the behaviour one gets now by pressing 1) DEL 2) TAB.

    in reply to: Batch/Bulk replace import improvement suggestion #28186
    spiros
    Participant

    Got it. Yes, now it does not have these issues. However, one has to adapt the file from the 4 column format (.tsv used in batch import) to a 2 column format and then select with right click on the linked file whether Match whole word or/and Mach case apply.

    Thank you!

    in reply to: Macro to replace string on a specific condition #28153
    spiros
    Participant

    1. Yes, I did it, no more errors.

    Test text:

    εσσα, εν, poet. for [[κυκλικός]], <span class="sense"><span class="bld">A</span> [[circular]], ἀγορᾶς θρόνος <span class="bibl">S.<span class="title">OT</span>161</span> (lyr.); ἴτυς <span class="title">AP</span>7.232 (Antip.).</span>

    in reply to: Macro to replace string on a specific condition #28151
    spiros
    Participant

    Thank you so much!

    I get an error
    https://ibb.co/JjQfq7C
    https://ibb.co/zZ6sBJd

    When I click, it indicates the line of the document (8) where I added the code.

    document.selection.StartOfDocument(false);
    document.selection.Replace("(<span class=\x22bld\x22>)(.*?)(</span>)","<{\\2}>",eeReplaceAll | eeFindReplaceRegExp,0);
    document.selection.Replace("</?\\w+((\\s+\\w+(\\s*=\\s*(?:\x22.*?\x22|\x27.*?\x27|[\\^\x27\x22>\\s]+))?)+\\s*|\\s*)/?>","",eeReplaceAll | eeFindReplaceRegExp,0);
    document.selection.Replace("<{","<br><span class=\x22bld\x22>",eeReplaceAll,0);
    document.selection.Replace("}>","</span>",eeReplaceAll,0);
    document.selection.Replace("Definition=<br>","Definition=",eeReplaceAll,0);
    document.selection.Replace(" <br>","<br>",eeReplaceAll,0);
    if( document.selection.Find( "<span class=\"bld\">", eeFindAround | eeFindCount ) <= 1 ) {
    	document.selection.Replace( "<br><span class=\"bld\">A</span>", " ", eeReplaceAll );
    }
    document.selection.SelectAll();
    document.selection.Copy(eeCopyUnicode);
    editor.ExecuteCommandByID(4120);
    in reply to: Regex replace issue #28093
    spiros
    Participant

    Yes, sorry about the macro, my error, I used forward slash instead. The point is whether it makes sense for the replacement of [\google] to become [google] in standard regex and requiring [\\google] in order to replace as expected.

Viewing 25 posts - 1 through 25 (of 73 total)