From c2a1e4301110fe2f25440428d60637ede20d29c4 2007-05-31 16:03:34 From: walter.doerwald Date: 2007-05-31 16:03:34 Subject: [PATCH] Add new commands refresh and refresh_timer (mapped to "R"/"F5" and to the menu) which restarts the iterator once (refresh) or after every x seconds (refresh_timer). Add a working implementation of "searchexpression", where the text entered is not the text to search for, but an expression that must be true. Added display of shortcuts to the menu. Added commands "pickinput" and "pickinputattr" that put the object or attribute under the cursor in the input line. Split the statusbar to be able to display the currently active refresh interval. (Patch by Nik Tautenhahn) --- diff --git a/IPython/Extensions/igrid.py b/IPython/Extensions/igrid.py index 4bd7731..d6f625d 100644 --- a/IPython/Extensions/igrid.py +++ b/IPython/Extensions/igrid.py @@ -1,6 +1,7 @@ # -*- coding: iso-8859-1 -*- import ipipe, os, webbrowser, urllib +from IPython import ipapi import wx import wx.grid, wx.html @@ -36,10 +37,16 @@ help = """
Pick the attribute under the cursor
Pick' the complete column under the cursor (i.e. the attribute under the +
Pick the complete column under the cursor (i.e. the attribute under the cursor) from all currently fetched objects. These attributes will be returned as a list.
+Pick the current row as next input line in IPython. Additionally the row is stored as "_"
+ +Pick the attribute under the cursor as next input line in IPython. Additionally the row is stored as "_"
+Enter the object under the cursor. (what this mean depends on the object itself, i.e. how it implements iteration). This opens a new browser 'level'.
@@ -64,11 +71,14 @@ attributes than in the list view, depending on the object).Find text
+Find entries matching an expression
+Find next occurrence of the searchtext
+Find next occurrence
Find previous occurrence of the searchtext
+Find previous occurrence
Sort the objects (in ascending order) using the attribute under the cursor as the sort key.
@@ -76,6 +86,18 @@ attributes than in the list view, depending on the object).Sort the objects (in descending order) using the attribute under the cursor as the sort key.
+Refreshes the display by restarting the iterator
+ +Refreshes the display by restarting the iterator every second until stopped by stop_refresh.
+ +Refreshes the display by restarting the iterator every X ms (X is a custom interval set by the user) until stopped by stop_refresh.
+ +Stops all refresh timers.
+Close current tab (and all the tabs to the right of the current one). @@ -100,6 +122,7 @@ attributes than in the list view, depending on the object).