~lioploum/offpunk-devel

4 2

Support for user defined alias

Dylan D'Silva <dylan@dsilva.email>
Details
Message ID
<D5XCTHOBSHJD.1NBKBW1BLQXL0@dsilva.email>
DKIM signature
pass
Download raw message
Hello all,

How about support for user defined alias?

Taken from delve (gopher client)

alias bored		"open gopher://bitreich.org:70/1/lawn/bored.dcgi"
alias shorten	"open gopher://fld.gp:70/7/gopher/shorten"
alias dice		"open gopher://gopher.viste.fr:70/0/OnlineTools/virtualdice.cgi"
alias myip		"open gopher://gopher.viste.fr:70/0/OnlineTools/whatsmyip.cgi"
alias home		"open $home_hole"

regards
Dylan
Dylan D'Silva <dylan@dsilva.email>
Details
Message ID
<D5XQ330IDA6R.23RDBWG9N7A5T@dsilva.email>
In-Reply-To
<D5XCTHOBSHJD.1NBKBW1BLQXL0@dsilva.email> (view parent)
DKIM signature
pass
Download raw message
Can already be done via set. 
Sorry about the email.

Regards
Dylan


On Thu Nov 28, 2024 at 10:36 AM AEDT, Dylan D'Silva wrote:
> Hello all,
>
> How about support for user defined alias?
>
> Taken from delve (gopher client)
>
> alias bored		"open gopher://bitreich.org:70/1/lawn/bored.dcgi"
> alias shorten	"open gopher://fld.gp:70/7/gopher/shorten"
> alias dice		"open gopher://gopher.viste.fr:70/0/OnlineTools/virtualdice.cgi"
> alias myip		"open gopher://gopher.viste.fr:70/0/OnlineTools/whatsmyip.cgi"
> alias home		"open $home_hole"
>
> regards
> Dylan
Details
Message ID
<173278910700.7.4151905856240601727.510920000@ploum.eu>
In-Reply-To
<D5XCTHOBSHJD.1NBKBW1BLQXL0@dsilva.email> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
Le 24 nov 28 10:36, Dylan D'Silva a écrit :
>Hello all,
>
>How about support for user defined alias?
>
>Taken from delve (gopher client)
>
>alias bored		"open gopher://bitreich.org:70/1/lawn/bored.dcgi"
>alias shorten	"open gopher://fld.gp:70/7/gopher/shorten"
>alias dice		"open gopher://gopher.viste.fr:70/0/OnlineTools/virtualdice.cgi"
>alias myip		"open gopher://gopher.viste.fr:70/0/OnlineTools/whatsmyip.cgi"
>alias home		"open $home_hole"

As far as I know, it can’t be done but this is definitely something 
needed.

There’s currently a list of abbreviations "abbrevs" and this should be 
configurable. "alias" seems a perfect name for that feature. I will look 
into it.


For your specific usecas, which is more a bookmark thing, I use the 
bookmarks list. If you add those URL in the bookmarks lists (with 
"add"), then you can quickly navigate to those with:

"bm 1"

"bm 2"

"bm 3"


But, yes, "alias" is definitely needed.
Dylan D'Silva <dylan@dsilva.email>
Details
Message ID
<D5XQPPRB8XR4.1A6EFCICZFUNW@dsilva.email>
In-Reply-To
<D5XQ330IDA6R.23RDBWG9N7A5T@dsilva.email> (view parent)
DKIM signature
pass
Download raw message
Okay I jumped the gum. You can't add new items via set only those
currently available. Back to my original email then.


On Thu Nov 28, 2024 at 9:00 PM AEDT, Dylan D'Silva wrote:
> Can already be done via set. 
> Sorry about the email.
>
> Regards
> Dylan
>
>
> On Thu Nov 28, 2024 at 10:36 AM AEDT, Dylan D'Silva wrote:
> > Hello all,
> >
> > How about support for user defined alias?
> >
> > Taken from delve (gopher client)
> >
> > alias bored		"open gopher://bitreich.org:70/1/lawn/bored.dcgi"
> > alias shorten	"open gopher://fld.gp:70/7/gopher/shorten"
> > alias dice		"open gopher://gopher.viste.fr:70/0/OnlineTools/virtualdice.cgi"
> > alias myip		"open gopher://gopher.viste.fr:70/0/OnlineTools/whatsmyip.cgi"
> > alias home		"open $home_hole"
> >
> > regards
> > Dylan
Details
Message ID
<173279444638.8.8291076977342559257.510998940@ploum.eu>
In-Reply-To
<D5XCTHOBSHJD.1NBKBW1BLQXL0@dsilva.email> (view parent)
DKIM signature
pass
Download raw message
I’ve pushed a new "alias" feature that should do exactly what you 
expect.

It replaces "abbrevs".

Please test and report any bug/problem/improvement (this was done 
quickly without much thinking)


-- 
Ploum - Lionel Dricot

Blog: https://www.ploum.net
Bikepunk: https://bikepunk.fr/
Reply to thread Export thread (mbox)