lkjlkj
This commit is contained in:
@@ -197,7 +197,7 @@ def store_value(key: str, value: Any) -> None:
|
||||
def load_value(key: str, default: Any = None) -> Any:
|
||||
"""Retrieve a value stored by an earlier pipeline stage.
|
||||
|
||||
Supports dotted path notation for nested access (e.g., "metadata.tags" or "items.0").
|
||||
Supports dotted path notation for nested access (e.g., "metadata.tag" or "items.0").
|
||||
|
||||
Args:
|
||||
key: Variable name or dotted path (e.g., "my_var", "metadata.title", "list.0")
|
||||
@@ -447,7 +447,7 @@ def set_last_result_table(result_table: Optional[Any], items: Optional[List[Any]
|
||||
Also maintains a history stack for @.. navigation (restore previous result table).
|
||||
|
||||
Only selectable commands (search-file, download-data) should call this to create history.
|
||||
For action commands (delete-tag, add-tag, etc), use set_last_result_table_preserve_history() instead.
|
||||
For action commands (delete-tag, add-tags, etc), use set_last_result_table_preserve_history() instead.
|
||||
|
||||
Args:
|
||||
result_table: The ResultTable object that was displayed (or None)
|
||||
@@ -524,7 +524,7 @@ def set_last_result_table_overlay(result_table: Optional[Any], items: Optional[L
|
||||
def set_last_result_table_preserve_history(result_table: Optional[Any], items: Optional[List[Any]] = None, subject: Optional[Any] = None) -> None:
|
||||
"""Update the last result table WITHOUT adding to history.
|
||||
|
||||
Used for action commands (delete-tag, add-tag, etc.) that modify data but shouldn't
|
||||
Used for action commands (delete-tag, add-tags, etc.) that modify data but shouldn't
|
||||
create history entries. This allows @.. to navigate search results, not undo stacks.
|
||||
|
||||
Args:
|
||||
@@ -543,7 +543,7 @@ def set_last_result_items_only(items: Optional[List[Any]]) -> None:
|
||||
"""Store items for @N selection WITHOUT affecting history or saved search data.
|
||||
|
||||
Used for display-only commands (get-tag, get-url, etc.) and action commands
|
||||
(delete-tag, add-tag, etc.) that emit results but shouldn't affect history.
|
||||
(delete-tag, add-tags, etc.) that emit results but shouldn't affect history.
|
||||
|
||||
These items are available for @1, @2, etc. selection in the next command,
|
||||
but are NOT saved to history. This preserves search context for @.. navigation.
|
||||
|
||||
Reference in New Issue
Block a user