Show More
@@ -34,11 +34,13 b' This is an handy alias to `ipython history trim --keep=0`' | |||||
34 | class HistoryTrim(BaseIPythonApplication): |
|
34 | class HistoryTrim(BaseIPythonApplication): | |
35 | description = trim_hist_help |
|
35 | description = trim_hist_help | |
36 |
|
36 | |||
37 |
backup = Bool(False |
|
37 | backup = Bool(False, | |
38 |
help="Keep the old history file as history.sqlite.<N>" |
|
38 | help="Keep the old history file as history.sqlite.<N>" | |
|
39 | ).tag(config=True) | |||
39 |
|
40 | |||
40 |
keep = Int(1000 |
|
41 | keep = Int(1000, | |
41 |
help="Number of recent lines to keep in the database." |
|
42 | help="Number of recent lines to keep in the database." | |
|
43 | ).tag(config=True) | |||
42 |
|
44 | |||
43 | flags = Dict(dict( |
|
45 | flags = Dict(dict( | |
44 | backup = ({'HistoryTrim' : {'backup' : True}}, |
|
46 | backup = ({'HistoryTrim' : {'backup' : True}}, | |
@@ -118,11 +120,12 b' class HistoryTrim(BaseIPythonApplication):' | |||||
118 |
|
120 | |||
119 | class HistoryClear(HistoryTrim): |
|
121 | class HistoryClear(HistoryTrim): | |
120 | description = clear_hist_help |
|
122 | description = clear_hist_help | |
121 |
keep = Int(0 |
|
123 | keep = Int(0, | |
122 | help="Number of recent lines to keep in the database.") |
|
124 | help="Number of recent lines to keep in the database.") | |
123 |
|
125 | |||
124 |
force = Bool(False |
|
126 | force = Bool(False, | |
125 |
help="Don't prompt user for confirmation" |
|
127 | help="Don't prompt user for confirmation" | |
|
128 | ).tag(config=True) | |||
126 |
|
129 | |||
127 | flags = Dict(dict( |
|
130 | flags = Dict(dict( | |
128 | force = ({'HistoryClear' : {'force' : True}}, |
|
131 | force = ({'HistoryClear' : {'force' : True}}, |
@@ -273,17 +273,19 b' class PromptManager(Configurable):' | |||||
273 | """) |
|
273 | """) | |
274 | def _lazy_evaluate_fields_default(self): return lazily_evaluate.copy() |
|
274 | def _lazy_evaluate_fields_default(self): return lazily_evaluate.copy() | |
275 |
|
275 | |||
276 |
in_template = Unicode('In [\\#]: ' |
|
276 | in_template = Unicode('In [\\#]: ', | |
277 |
help="Input prompt. '\\#' will be transformed to the prompt number" |
|
277 | help="Input prompt. '\\#' will be transformed to the prompt number" | |
278 |
|
|
278 | ).tag(config=True) | |
279 | help="Continuation prompt.") |
|
279 | in2_template = Unicode(' .\\D.: ', | |
280 | out_template = Unicode('Out[\\#]: ').tag(config=True, |
|
280 | help="Continuation prompt.").tag(config=True) | |
281 | help="Output prompt. '\\#' will be transformed to the prompt number") |
|
281 | out_template = Unicode('Out[\\#]: ', | |
282 |
|
282 | help="Output prompt. '\\#' will be transformed to the prompt number" | ||
283 |
|
|
283 | ).tag(config=True) | |
|
284 | ||||
|
285 | justify = Bool(True, help=""" | |||
284 | If True (default), each prompt will be right-aligned with the |
|
286 | If True (default), each prompt will be right-aligned with the | |
285 | preceding one. |
|
287 | preceding one. | |
286 | """) |
|
288 | """).tag(config=True) | |
287 |
|
289 | |||
288 | # We actually store the expanded templates here: |
|
290 | # We actually store the expanded templates here: | |
289 | templates = Dict() |
|
291 | templates = Dict() |
General Comments 0
You need to be logged in to leave comments.
Login now