Skip to content

Commit

Permalink
Merge pull request #894 from WolframResearch/feature/alias-for-notebo…
Browse files Browse the repository at this point in the history
…ok-toolbar-button

Add a "NotebookToolbarWindow" alias to `ShowNotebookAssistance`
  • Loading branch information
rhennigan authored Nov 9, 2024
2 parents 50534be + f82804a commit 1ddd325
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Source/Chatbook/ChatModes/ShowNotebookAssistance.wl
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ ShowNotebookAssistance[] shows code assistance in a new or existing window.
ShowNotebookAssistance[\"type$\"] shows code assistance of the specified type for the currently selected notebook.
ShowNotebookAssistance[obj$, \"type$\"] shows code assistance of the specified type for the given front end object obj$.
* The value for \"type$\" can be \"Window\", \"Inline\", or Automatic.
* The value for \"type$\" can be \"Window\", \"Inline\", Automatic, or a string representing a predefined configuration.
* The value for obj$ can be a NotebookObject or a CellObject.
* The default value for \"type$\" is \"Window\" when obj$ is a NotebookObject, and \"Inline\" for a CellObject.
* ShowNotebookAssistance accepts the following options:
Expand Down Expand Up @@ -281,6 +281,16 @@ $aliasRules = <|
"NewChat" -> True,
"ChatNotebookSettings" -> <| "MinimumResponsesToSave" -> 2 |>
|>
|>,
"NotebookToolbarInline" -> <|
"DefaultObject" :> EvaluationNotebook[ ],
"Type" -> "Inline",
"Options" -> <| |>
|>,
"NotebookToolbarWindow" -> <|
"DefaultObject" :> EvaluationNotebook[ ],
"Type" -> "Window",
"Options" -> <| "NewChat" -> True |>
|>
|>;

Expand Down

0 comments on commit 1ddd325

Please sign in to comment.