You are not logged in.

#51 2016-06-23 13:11:28

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,394

Re: Higgins, yet another application launcher.

Well there is certanly a performance hit the way higgins manage triggers, not that much (i5-4590):

# time for i in $(seq 1 100) ; do bash -c "" ; done
real    0m0.206s
user    0m0.000s
sys     0m0.017s

I'm not sure what to do, i like the idea of moving some complexity to the plugins.
I'm not going to use Mutate, i'm using higgins myself without problem, and if a problem arise, i fix it in short/no time.

PS: i just implemented a lot of theming options (big work for doing shaped shadows which i'm proud of!, if you wanna try dem you've to disable compton shadiows for higgins, of course)
http://wpage.unina.it/aorefice/sharevari/higgins/shots/

PPS:

Ok, maybe is just that 'flash' that interfree wirh openbox...
It is something i planned to fix anyway and i'll do asap.
[..]
Today finally i reproduced an isolated openbox-session crash.
.xsession-errors logged some "BadWindow (invalid Window parameter)", so i think that the culprit of the openbox crash was somehow related to the window showing for a little while; probably it is a timing issue and a bug in the openbox code, but anyway i pushed a bunch of commits that should fight the startup window glitch under openbox.

Does it still crash your session from time to time?
Have you tried the no-dbus branch or one of the latest versions? (as far as i remember, the startup flash is gone only in the master branch).


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#52 2016-06-23 13:25:33

parchd
Member
Registered: 2014-03-08
Posts: 421

Re: Higgins, yet another application launcher.

It hasn't done for a while, but I haven't been using that computer as much recently. I'll check out the new features smile

Just checked out the screenshots - looking good!

Last edited by parchd (2016-06-23 13:26:19)

Offline

#53 2016-06-24 09:35:29

chickenPie4tea
Member
Registered: 2012-08-21
Posts: 309

Re: Higgins, yet another application launcher.

I won't be using Mutate myself, too many dependencies and 132mb just to install Boost.


You can like linux without becoming a fanatic!

Offline

#54 2017-05-16 13:56:55

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,394

Re: Higgins, yet another application launcher.

I just made a new external plugin, it's so easy that i'm feeling stupid for not having made it earlier.
Given a textfile, it just greps for matching lines and show results.
Clicking will copy them to clipboard (i made a new action and pushed relative commit to git just now for that)
I'm just using it for my super simple text file contact list.
Profit!

#!/bin/bash
#Grep plugin
#Put me in ~/.config/gambas3/higgins/extbin to use me

#This plugin will list every line in $srcfile matching the query

export IFS=$'\n'
trigger=""   #No trigger
minchar=4    #Don't search on queries smaller than that, trigger does not count.

query="$@"

#Do we use a trigger?
if [ -n "$trigger" ] ; then
	#...Yes, we do, so exit if not triggered
	if [[ $query != $trigger* ]] ; then
		exit
	fi
	#Strip the trigger prefix from the query
	query=$(echo $query| sed "s/^$trigger//")
fi


#Exit if the query is too small
if [ ${#query} -lt $minchar ] ; then
	exit ;
fi

SCRIPTDIR=${0%/*}

srcfiles=( 
    "/path/to/my.contacts.txt"
    "/path/to/some.more.contacts.txt"
)

for srcfile in "${srcfiles[@]}" ; do 
    
    results=$(grep -i -h "$query" "$srcfile")
    if [ -n "$results" ] ; then 
        echo "$results"
        #Finally, start the search:
        for result in $results ; do
            echo BEGIN
                # For fields description and possible values, please refer to plugins/plugin_999_template
                echo Text=$result
                echo SubText=In $(basename $srcfile)
                echo Image_file="resize://$SCRIPTDIR/support/grep.png"
                echo Clipboard_data=$result
                echo Action="CLIPBOARD"
                echo Action_p=$result
            echo END
        done
    fi

done

-EDIT-
Iterate through multiple files as well

Last edited by kokoko3k (2017-05-19 08:07:11)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB