Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Defining your own [...] shortcuts?

by DamnDirtyApe (Curate)
on Aug 22, 2002 at 00:20 UTC ( #191895=monkdiscuss: print w/ replies, xml ) Need Help??

I've been seeing a growing number of suggestions for enhancements around here lately, so I thought I'd kick in my two cents.

Something I'd find particularily handy would be the ability to add my own custom square-bracket shortcuts, ie. aliases for the options already available. Aliases could be defined like:

[mypad] => [pad://DamnDirtyApe|my pad] [wm] => [http://www.webmonkey.com/|WebMonkey] [pg] => [http://www.postgresql.org/|PostgreSQL] [SoPW] => [Seekers of Perl Wisdom] [sopw] => [Seekers of Perl Wisdom|SoPW]

Again, as seems to be the case with many requests, I am not a member of pmdev, nor do I have any clue as to the difficulty in implementing this. Just thought I'd throw it out there. :-)


_______________
DamnDirtyApe
Those who know that they are profound strive for clarity. Those who
would like to seem profound to the crowd strive for obscurity.
            --Friedrich Nietzsche

Comment on Defining your own [...] shortcuts?
Download Code
Re: Defining your own [...] shortcuts?
by kodo (Hermit) on Aug 22, 2002 at 06:53 UTC
    Hmm yea that would be pretty cool!
    I would definitly do lots of shortcuts to different docs I usually suggest like Jeffa's Regexpr-Book or Ovid's CGI-Course etc. I also wonder how hard it would be to implement that by pmdev but I don't think it's to hard ;)

    giant
Re: Defining your own [...] shortcuts?
by particle (Vicar) on Aug 22, 2002 at 11:43 UTC
    if the pmdevers are too busy to service your request, or until they do, you can keep these links as an html comment in your sig. i keep oft used tags in mine, and include keywords when i find it appropriate.

    something like

    <!-- [pad://particle|my pad] [seekers of perl wisdom|SoPW] [http://perl.plover.com/FAQs/Buffering.html|suffering from buffering] [ovid]'s [http://www.easystreet.com/~ovid/cgi_course/|web programming +using perl] -->
    should address some of your needs.

    ~Particle *accelerates*

Re: Defining your own [...] shortcuts?
by yodabjorn (Monk) on Aug 22, 2002 at 14:14 UTC
    ++ on this idea. Definatly somthing usefull. I know we all reference the same stuff gazillions of times.. I find myself actually wishing there was a way to add the personal nodelet to my home node. this would be the "Things I keep around" on the home node. Probably somthing for another discussion, but I think the Alias idea is great!..

    An intellectual is someone whose mind watches itself.
    - Albert Camus
Re: Defining your own [...] shortcuts?
by BUU (Prior) on Aug 22, 2002 at 21:06 UTC
    Tho i'm definately not a pmdev, i considered the problem and took a guess at it, namely implement a table for it, then when the parser thingy hits a bracketed item, it could do a "SELECT `real_lnk` FROM `pm_links` WHERE `name`=? AND `tag`=?" It seems to be this should work. But i have no clue if this would kill the server or something.
Re: Defining your own [...] shortcuts?
by sauoq (Abbot) on Aug 22, 2002 at 21:29 UTC

    I like this.

    These kind of shortcuts should probably have their own format though, in order to avoid stepping on other nodes with the same name. I think "my://" makes sense. So, your examples, would look like:

    [my://pad] => [pad://sauoq|sauoq's pad] [my://wm] => [http://www.webmonkey.com/|WebMonkey] [my://pg] => [http://www.postgresql.org/|PostgreSQL] [my://SoPW] => [Seekers of Perl Wisdom] [my://sopw] => [Seekers of Perl Wisdom|SoPW]

    I like it more the more I think about it. DamnDirtyApe++!

    -sauoq
    "My two cents aren't worth a dime.";
    
Re: Defining your own [...] shortcuts?
by belg4mit (Prior) on Aug 26, 2002 at 23:21 UTC
    I'm pretty sure this has been hashed out before... In any event it's feature creep, and something that could be implemented client side (which I'm surprised tye hadn't chimed in about ;-).

    --
    perl -pew "s/\b;([mnst])/'$1/g"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://191895]
Approved by ignatz
Front-paged by jarich
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (13)
As of 2014-08-29 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (287 votes), past polls