-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PSEUDOHOSTS: Optional argument to PSEUDOHOST creates a specialized cd command #1999
base: master
Are you sure you want to change the base?
Conversation
I looked more carefully at what happens when PSEUDOHOST can't resolve a prefix to a real host, either error or return NIL if new argument NOERROR is set. |
I'm a little worried about the proliferation of short commands 'cdn' that are not of widespread utility. Part of my concern is the ambiguity of typing a variable name to EVAL it vs a short command with the same name. It's only ambiguous when there's a command that makes sense when the command name by itself with no other items on the line. Also I think we want to move the extra repos (test, loops, notecards) to be subtree or submodule of medley. |
Since I rotate between a bunch of pseudohosts (clone, working medley, release, lfg, pargram english/german, idl, old tedit, tedit tests…) I use these all the time.
… On Feb 2, 2025, at 1:16 PM, Larry Masinter ***@***.***> wrote:
I'm a little worried about the proliferation of short commands 'cdn' that are not of widespread utility.
I know each is relatively harmless, but .... who would use this feature?
Part of my concern is the ambiguity of typing a variable name to EVAL it vs a short command with the same name. It's only ambiguous when there's a command that makes sense when the command name by itself with no other items on the line.
Also I think we want to move the extra repos (test, loops, notecards) to be subtree or submodule of medley.
—
Reply to this email directly, view it on GitHub <#1999 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQSTUJMJYJLWWD5FUG5MQSD2N2DKTAVCNFSM6AAAAABWIAR34KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMRZGU2TQMZTGI>.
You are receiving this because you authored the thread.
|
And by the way, it’s optional: if you don’t pass the argument, you don’t get the command.
… On Feb 2, 2025, at 3:02 PM, Ron Kaplan ***@***.***> wrote:
Since I rotate between a bunch of pseudohosts (clone, working medley, release, lfg, pargram english/german, idl, old tedit, tedit tests…) I use these all the time.
> On Feb 2, 2025, at 1:16 PM, Larry Masinter ***@***.***> wrote:
>
>
> I'm a little worried about the proliferation of short commands 'cdn' that are not of widespread utility.
> I know each is relatively harmless, but .... who would use this feature?
>
> Part of my concern is the ambiguity of typing a variable name to EVAL it vs a short command with the same name. It's only ambiguous when there's a command that makes sense when the command name by itself with no other items on the line.
>
> Also I think we want to move the extra repos (test, loops, notecards) to be subtree or submodule of medley.
>
> —
> Reply to this email directly, view it on GitHub <#1999 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQSTUJMJYJLWWD5FUG5MQSD2N2DKTAVCNFSM6AAAAABWIAR34KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMRZGU2TQMZTGI>.
> You are receiving this because you authored the thread.
>
|
Isn't this the sort of thing that you could have outside of the PSEUDOHOSTS code? "cd {NOTECARDS}" will do as expected so adding command aliases in your init file for each of the |
For example, (PSEUDOHOST 'NOTECARDS "[notecards path]" 'n) creates the command cdn, and
cdn connects to {NOTECARDS}
cdn system connects to {NOTECARDS}/system/