.antiXforum../search/text+box

Forum Forums General Software .antiXforum../search/text+box

  • This topic has 7 replies, 4 voices, and was last updated May 6-6:52 pm by BobC.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #105187
    Member
    ile

      .antiXforum../search/text+box

      hello everyone
      Tapping antiXforum forums search.
      Launch detour strictly antixforum dot com, is it a dialoguing bookmark?

      Tip: backspace,space or delete the highlighted text [shortcut+] to
      send empty field [or space] then OK Go To the forums search page
      where there is a Search For: Search..text box (it accepts spaces,)
      or
      in the dialoguing window text entrybox
      type words to search, not space, use + between words, to OK Bring the page with antiX result.

      Uncomment or Add a favorite handler. sample

      #!/bin/bash
      ## antiXKBforums,2018 to currently supported
      export DIALOG=$(cat <<End_of_Text 
      <window title="search+" icon-name="gtk-goto-top" window-position="1">
      
      <vbox>
      <hbox>
                          <vbox>
                                  <frame $USER >
                                  <frame forum+antiX >
                                  <text>
                                  <label> Not+spaces+blank+ends+line+</label>
                                  </text>
                                  <text><label>name1+name2+3name </label>
                                  </text>
                                <entry>
                              <default>shortcut+</default>
                              <variable>NAME</variable>
                              </entry>
                              </frame>
                              </frame>
                          </vbox>
      </hbox>
      <frame>
                  <button ok></button>
      </frame>
      </vbox>
      
      </window>
      End_of_Text
      )
      
      I=$IFS; IFS=""
      for STATEMENTS in  $(gtkdialog --program DIALOG); do
          eval $STATEMENTS
      done
      IFS=$I
      
      if [ "$EXIT" = "OK" ] ; then
      #seamonkey https://antixforum.com/forums/search/${NAME} &
      #antix-viewer https://antixforum.com/forums/search/${NAME} &
      #desktop-defaults-run -b https://antixforum.com/forums/search/${NAME} &
      xdg-open https://antixforum.com/forums/search/${NAME} &
      #xlinks2 https://antixforum.com/forums/search/${NAME} &
      #dillo https://antixforum.com/forums/search/${NAME} &
          else
      exit
      fi
      
      #105188
      Member
      ile
        Helpful
        Up
        1
        ::

        seamonkey browser special search string
        Broader web search not confined to one forum;
        (search anything except an empty field. empty field cancels.)
        seamonkey searches with its default web-search site.
        To search antixforums type a word after antix+forum+

        #!/bin/bash
        ## seamonkey web search
        export DIALOG=$(cat <<End_of_Text 
        <window title="web+sea+search" icon-name="system" window-position="1">
        
        <vbox>
        <hbox>
                            <vbox>
                                    <frame $USER >
                                    <frame sea+search >
                                    <text>
                                    <label> +Not spaces </label>
                                    </text>
                                  <entry>
                                <default>antix+forum+</default>
                                <variable>NAME</variable>
                                </entry>
                                </frame>
                                </frame>
                            </vbox>
        </hbox>
        <frame>
                    <button ok></button>
        </frame>
        </vbox>
        
        </window>
        End_of_Text
        )
        
        I=$IFS; IFS=""
        for STATEMENTS in  $(gtkdialog --program DIALOG); do
          eval $STATEMENTS
        done
        IFS=$I
        
        if [ "$EXIT" = "OK" ] ; then
        seamonkey -search ${NAME} &
            else
        exit
        fi
        
        #105336
        Member
        RJP
          Helpful
          Up
          0
          ::

          Your script in fine! How about if making a script where link2 (xlinks2) whould be embedded into same box with search box?

          • This reply was modified 2 weeks ago by RJP.
          #105511
          Member
          ile
            Helpful
            Up
            1
            ::

            Hello RJP and Everyone
            Applications >Internet >Search Bar has >search-bar antiXforum search link >clicking it will return search for “clipboard content” at current antiXforum. That read from clipboard enables any editor into a entry-text-box, using copy selection, before clicking >search-bar antiXforum.

            This sample searches websearch with addition of parameter antiXforum.
            Pesonalize this in accord to your circumstance;
            pick a browser and pick a searchsite that works with it; trial; RJP xlinks2 furnish
            samples

            #!/bin/bash
            ## antiX+forum+ web search
            export DIALOG=$(cat <<End_of_Text 
            <window title="forum+antiX+web" icon-name="gtk-goto-top" window-position="1">
            
            <vbox>
            <hbox>
                                <vbox>
                                      <frame $USER >
                                        <frame antiX+search >
                                        <text>
                                        <label> +Not spaces </label>
                                        </text>
                                          <pixmap>
                                        <input file stock="gtk-find"></input>
                                        </pixmap>
                                        <text>
                                        <label>name1+name2+3name </label></text>
                                      <entry>
                                    <default>live+usb</default>
                                    <variable>NAME</variable>
                                    </entry>
                                    </frame>
                                    </frame>
                                </vbox>
            </hbox>
            <frame>
                        <button ok></button>
            </frame>
            </vbox>
            
            </window>
            End_of_Text
            )
            
            I=$IFS; IFS=""
            for STATEMENTS in  $(gtkdialog --program DIALOG); do
              eval $STATEMENTS
            done
            IFS=$I
            
            if [ "$EXIT" = "OK" ] ; then
            xlinks2 https://search.aol.com/aol/search?q=antix+forum+${NAME} &
            #xlinks2 https://fi.search.yahoo.com/search?p=antix+foorumi+${NAME} &
            #seamonkey https://www.sapo.pt/pesquisa/web/tudo?q=antix+forum+${NAME} &
            #antix-viewer https://search.brave.com/search?q=antix+forum+${NAME} &
            #firefox-esr https://search.lycos.com/web?q=antix+forum+${NAME} &
            #dillo https://search.yahoo.com/search?p=antix+forum+${NAME} &
            #xlinks2 https://www.bing.com/search?q=antix+forum+${NAME} &
            #xlinks2 https://duckduckgo.com/?q=antix+forum+${NAME} &
                else
            exit
            fi
            

            RJP with xlinks2 with which searchsite of your preference can you combine to make a working command for this?
            Is Everyone having success with a command string to suit preferences? locale?
            Your browser(?) Your searchsite(?)

            #105513
            Member
            RJP
              Helpful
              Up
              0
              ::

              This is great! 🙂

              #105638
              Member
              ile
                Helpful
                Up
                0
                ::

                Default search-bar antiXforum is very direct.

                Open dillo browser, click on the icon magnifying glass next to the location bar. It is a search entrybox dialog. Its hover tip is “Search the Web.” In dillorc put your favorite searchsite string in first position on the list of searchsites.

                RJP duckduckgo goes
                xlinks2 https://lite.duckduckgo.com/lite/
                xlinks2 /home/$USER/.links2/bookmarks.html

                For a deluxe text-entrybox
                there is the package <synapse>
                has a Internet Tab
                will return antiX search results from web Open in browser
                by typing “antiX forum live usb.” Return.
                i use the theme Virgilio. How about You?

                #105644
                Member
                Xunzi_23
                  Helpful
                  Up
                  0
                  ::

                  Hi ile, nice, just why only Patriot act US search engines.

                  https://metager.de/meta/meta.ger3?eingabe=%s   
                  
                  Long list of searx instances at 
                  https://github.com/searx/searx-instances/blob/master/searxinstances/instances.yml

                  i appreciate the encroachment on remaining vestages of privacy in EU is disgusting
                  but think supporting the few remaining non us dominated or owned search engines is of
                  utmost importance for Europe..

                  #106125
                  Moderator
                  BobC
                    Helpful
                    Up
                    0
                    ::

                    references:
                    /usr/local/bin/search-bar
                    /usr/local/bin/search-bar-icon

                    ile, I tried your script, it has some of the features I would want

                    Xunzi, I too like scripts that are easily configurable

                    From the looks of it, bitJam created search-bar in 2014 (Thanks bitjam, always the Pioneer), and it looks like PPC created search-bar-icon

                    Because antiX’s forum here no longer has the search option, which is partly my fault for suggesting removing it when we were having forum errors and slug like performance, I now find myself looking for an easy way to search the forum. I will admit that I could type in somewhere and highlight the string I want to search for, but I noticed that it automatically searched for what I copied and pasted last, ie grabbed that and used it as the search string.

                    I guess we each have different “use cases” as to how we use browser searches, what sites (if restricted), what search engines, and even what brower we would want to use if it isn’t our default, like by using links to save memory when searching antixforum rather than the default firefox. I was thinking of a no memory required toolbar icon, and/or binding it to the keyboard “Search” key.

                    A few features I would like would be:
                    1. ability to edit the search string before executing and have it automatically replace spaces with + signs instead of asking me to enter them by hand
                    2. Ability to add additional search engine commands so that I can choose different search engines for my different types of searches if I want, and maybe allow for a # sign in front of ones I might want to leave in the list just in case, but not display for selection.

                    Just thinking out loud, brainstorming as it were… As I said, I see ile has made the search string default in (but not from the clipboard), and allowed it to be edited, and also thought about having different browsers for searching different sites.

                    PS Thoughts after doing some testing:
                    Bitjam’s search-bar is oriented towards icons, and running searches for the icon’s site for the clipboard value with your default browser
                    PPC’s search-bar-icon is setup to run Bitjam’s search-bar search by clicking a tray icon also from the clipboard value

                    Since it was the closest in functionality, I worked from the ile version to create something closer to what I was looking for.

                    A major change I made was to use any highlighted selection as the default search value, and if nothing is highlighted, it defaults to the last thing copied to the clipboard.
                    One problem I found was the GTK dialog doesn’t like it if you try to put code in the search box field. It gets freaky errors if you do. Not sure if YAD would do any better. I did try putting double quotes around it but that didn’t work. Any suggestions on that?

                    Todo: I was thinking to add pulldown selection fields to allow me to select which site (or blank for all) to search, another for which search engine to use, and another for what browser to be use. All would default to the last ones used, and values would be stored in a configuration file.

                    #!/bin/bash
                    ## web search
                    # search for whatever is highlighted now or was last copied into the clipboard
                    SEARCHSTR=$( xclip -o )
                    #echo "Before SEARCHSTR: $SEARCHSTR"
                    # if nothing highlighted look use what is in the clipboard
                    if [ -z "$SEARCHSTR" ]; then
                    	SEARCHSTR=$( xclip -o -selection clipboard )
                    #	echo "Before2 SEARCHSTR: $SEARCHSTR"
                    fi
                    #SEARCHSTR='"$SEARCHSTR"'
                    export DIALOG=$(cat <<End_of_Text 
                    <window title="forum+antiX+web" icon-name="gtk-goto-top" window-position="1">
                    	<vbox>
                    		<hbox>
                    			<vbox>
                    				<frame Web Search >
                    					<text>
                    						<label> Edit search string </label>
                    					</text>
                    					<pixmap>
                    						<input file stock="gtk-find"></input>
                    					</pixmap>
                    					<entry>
                    						<default>"$SEARCHSTR"</default>
                    						<variable>SEARCHSTR</variable>
                    					</entry>
                    				</frame>
                    			</vbox>
                    		</hbox>
                    		<frame>
                    			<button ok></button>
                    		</frame>
                    	</vbox>
                    </window>
                    End_of_Text
                    )
                    
                    I=$IFS; IFS=""
                    for STATEMENTS in  $(gtkdialog --program DIALOG); do
                    	eval "$STATEMENTS"
                    done
                    IFS=$I
                    #echo "After0 SEARCHSTR: $SEARCHSTR :xxx"
                    # convert spaces to +
                    #SEARCHSTR=$(echo "$SEARCHSTR" | sed 's/ /\+/g')
                    SEARCHSTR=${SEARCHSTR// /+}
                    # remove any spaces before and after
                    SEARCHSTR=${SEARCHSTR// /} 
                    #echo "After2 SEARCHSTR: $SEARCHSTR :xxx"
                    if [ "$EXIT" = "OK" ] ; then
                    	xlinks2 https://duckduckgo.com/?q=site:antixforum.com+"${SEARCHSTR}" &
                    	#xlinks2 https://fi.search.yahoo.com/search?p=antix+foorumi+${NAME} &
                    	#seamonkey https://www.sapo.pt/pesquisa/web/tudo?q=antix+forum+${NAME} &
                    	#antix-viewer https://search.brave.com/search?q=antix+forum+${NAME} &
                    	#firefox-esr https://search.lycos.com/web?q=antix+forum+${NAME} &
                    	#dillo https://search.yahoo.com/search?p=antix+forum+${NAME} &
                    	#xlinks2 https://www.bing.com/search?q=antix+forum+${NAME} &
                    	#xlinks2 https://duckduckgo.com/?q=antix+forum+${NAME} &
                    else
                    	exit
                    fi
                    
                    • This reply was modified 2 days, 11 hours ago by BobC.
                    • This reply was modified 2 days, 8 hours ago by BobC.
                    • This reply was modified 2 days, 8 hours ago by BobC.
                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • You must be logged in to reply to this topic.