You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default WORKSPACE> prompt might not be to the liking of everybody, so we should define some custom language for specifying the prompt. It could be simply "%w> " with %w for the active workspace. And perhaps %ro for displaying read-only mode if in effect.
Per default it should use "%ro%w> " to be expanded into "workspace> " in normal mode and "(read-only) workspace> " in read-only mode.
Or we use {w} for workspace and {ro:read only string} so that the text can be user-defined including spaces etc. In this case the default would be "{ro:(read-only) }{w}> " instead.
Rename the config.repl_prefix to config.prompt. Later on we might add support for a right-prompt with config.right_prompt.
These are retrieved using auth.test and should be saved at startup for current auth info (saved in AuthInfo singleton or added to Config, perhaps even extend the saved workspaces with all this info simply so it isn't necessary to query all the time?) and then updated if another workspace is made active with workspace. The keep-it-in-the-config approach could look like the following:
The default
WORKSPACE>
prompt might not be to the liking of everybody, so we should define some custom language for specifying the prompt. It could be simply"%w> "
with%w
for the active workspace. And perhaps%ro
for displaying read-only mode if in effect.Per default it should use
"%ro%w> "
to be expanded into"workspace> "
in normal mode and"(read-only) workspace> "
in read-only mode.Or we use
{w}
for workspace and{ro:read only string}
so that the text can be user-defined including spaces etc. In this case the default would be"{ro:(read-only) }{w}> "
instead.Rename the
config.repl_prefix
toconfig.prompt
. Later on we might add support for a right-prompt withconfig.right_prompt
.Additional entities could be added:
{u}
for username, "username"{uid}
for user ID, "U8C3V3OQ"{wid}
for workspace ID, like "T9F3H7VLP"{url}
for workspace URL, like "https://workspace.slack.com/"These are retrieved using
auth.test
and should be saved at startup for current auth info (saved inAuthInfo
singleton or added toConfig
, perhaps even extend the saved workspaces with all this info simply so it isn't necessary to query all the time?) and then updated if another workspace is made active withworkspace
. The keep-it-in-the-config approach could look like the following:A wiki page should be created to describe the language of the prompt.
The text was updated successfully, but these errors were encountered: