home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.editors      What? Edlin ain't good enough for you?      123,932 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 123,629 of 123,932   
   Marion to Lawrence D'Oliveiro   
   Re: Strange questions (Was: How to edit    
   24 Jan 25 00:48:58   
   
   XPost: alt.comp.os.windows-10, alt.comp.software.firefox   
   From: marion@facts.com   
      
   On Thu, 23 Jan 2025 23:48:11 -0000 (UTC), Lawrence D'Oliveiro wrote :   
      
      
   >> # 1. Set your preferred text or HTML editor   
   >> editor="vi"  # Replace with your preferred editor (e.g., nano, vim)   
   >   
   > Why not use the standard EDITOR or VISUAL environment variables? That˘s   
   > what they˘re for.   
      
   Good idea! Thanks for the improvement! Much appreciated. Will do!   
      
   I'm currently busy writing a more complicated version of the bookmarks   
   batch file that creates the Vine & Amazon links, which is far more   
   difficult because I have to convert the spaces in Windows to plus signs (+)   
   for Amazon search links, and to %20 characters for Vine search links.   
      
   [amazon] gas camp stove

       [vine]       gas camp stove

              Here's a snippet of how difficult it was to do in Windows, where we'd just       use sed/awk/grep on Linux to convert the spaces to those characters.               :input_item        echo.Enter search item: ; for example, gas camp stove        set /p "item="               :replace_spaces_with_+        set "amazon_item=%item: =+%"               :replace_spaces_with_%20        set "vine_item="        for %%a in (%item%) do (        if "%%a"=="" (        set "vine_item=!vine_item!%%20"        ) else (        if defined vine_item (        set "vine_item=!vine_item!%%20"        )        set "vine_item=!vine_item!%%a"        )        )               echo Original item: %item%        echo Amazon item: %amazon_item%        set vine_item=!vine_item!        echo Vine item: %vine_item%        echo.Adding... "%amazon_item%" and "!vine_item!" to %vinefile              It's not lost on me (nor on you, I'm sure) how miserable this task is on       Windows.              --- SoupGate-DOS v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)   


[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca