Commit Graph
37 Commits
Author SHA1 Message Date
Jorgen Stenarson a4e4163575 Make it possible to bind a function to a key 2010-02-22 19:51:08 +01:00
Jorgen Stenarson 3721005ad9 Fix for Bug 524511. Make it possible to disable filesystem completion 2010-02-22 19:34:52 +01:00
Jorgen Stenarson 0e8e0c22e3 Ensure unicode from completions in logmessage 2008-11-12 22:23:08 +01:00
Jorgen Stenarson 2cda7c0863 Changed all strings to unicodestrings 2008-11-11 20:22:45 +01:00
Jorgen Stenarson 10b8512e5a removed unused code, and did some other cosmetic changes to the code 2008-08-27 19:28:45 +02:00
Jorgen Stenarson c2579348bf Removed the last dependency on console from vi-mode.
The cursor_size property of the BaseMode class should be used to 
determine the wanted cursorsize.

Fixed some whitespace in emacsmode.
2008-07-07 18:48:45 +02:00
Jorgen Stenarson dd9ea63fb7 Changed logging to use the logging module. 2008-07-07 18:18:20 +02:00
Jorgen Stenarson b4462fb137 Fixed last functions in emacs mode that use console directly. Implemented digit_argument.
Made changes to TextLine and ReadLineTextLine classes to handle argument in insert_text
Added DigitArgumentMode to handle digit_arguments
2008-07-01 21:06:07 +02:00
Jorgen Stenarson b20b6ea320 fixing search to use process_keyevent
Changed ReadLine._update_line to always redraw prompt
Moved keyboard using functions from history.py to EmacsMode
2008-06-30 21:47:11 +02:00
Jorgen Stenarson cd891ef5ea Fixed bug with alt gr inserting wrong character 2008-06-27 19:27:55 +02:00
Jorgen Stenarson ddeaa854dd Extracted a BaseReadLine class without console stuff from ReadLine.
tk_gui.py example of using the BaseReadLine class from a gui
continued to refactor to remove all console related stuff from modes, 
there are still some console related stuff in the history search commands
2008-06-26 22:11:53 +02:00
Jorgen Stenarson c966786a65 continue to move properties between basemode and rlmain
* Added a no_clipboard module in the clipboard package. Contains
    an implementation that emulates the clipboard incase we cannot import 
    the clipboard.

  * Removed uncommented imports in history.
  
  * moved from rlmain to basemode: 
        tabstop, startup_hook, pre_input_hook, first_prompt, prompt, enable_ipython_paste_list_of_lists
        enable_ipython_paste_for_paths, enable_win32_clipboard,paste_line_buffer

  * moved next_meta to emacs.py
  
  * fixed tabstop using code in emacs.py

  * removed old unsused properties from Readline in rlmain
2008-06-24 21:11:41 +02:00
Jorgen Stenarson 776d2141a8 Added the callback interface from the callback branch. 2008-06-24 20:08:32 +02:00
Jorgen Stenarson c5ce530293 move properties associated with completer from rlmain to basemode 2008-06-23 21:40:30 +02:00
Jorgen Stenarson 81e5edd031 moving insert_text, add_history to basemode
rearranging properties in basemode to sort them according to where they are used
2008-06-23 21:25:55 +02:00
Jorgen Stenarson 9adf8f4493 moved l_buffer and _history from ReadLine to modes.basemode 2008-06-23 20:55:59 +02:00
Jorgen Stenarson cc1073613b made changes after starting last commit 2008-06-23 20:22:36 +02:00
Jorgen Stenarson 5ff848f7ec started refactor to reduce coupling between classes to enable easier reuse in GUIs.
moved readline from modes.emacs to modes.basemode
created process_keyevent in modes.emacs to process each keypress from a keyevent
2008-06-23 20:19:06 +02:00
jstenarandjstenar a4f98cccb2 pyreadline: patch from pan to remove cursor flickering when inputting chinese characters 2007-11-20 18:59:58 +00:00
jstenarandjstenar 85dca10ea8 pyreadline: fix pre_inputhook and startup_hook, autoindent were not functioning in ipython 2007-05-14 18:02:27 +00:00
jstenarandjstenar 4199cd45d4 pyreadline: updates to documentation and release.py. Change in how keyboard_interrupts propagates in ironpython, still some work is left to get the same traceback on pressing ctrl-c as a plain ironpython without pyreadline installed. 2007-04-21 20:26:24 +00:00
jstenarandjstenar ea4ef6e3d9 pyreadline: When allowing to bind ctrl-c we now issue a KeyBoardInterrupt if
control-c is pressed twice within ctrl_c_tap_time_interval which is defaulted 
to 0.3 s and can be set from the configfile.
2007-04-17 19:43:55 +00:00
jstenarandjstenar b7d1177cc0 pyreadline-refactor: Fix buggy get_begidx and get_endidx. Ensure unicode can print in write_x methods on Console. 2007-03-15 18:39:26 +00:00
jstenarandjstenar 1a604cf973 pyreadline-branch: added possibility to bind ctrl-c to copy. Changed test for ironpython due to changes in ironpython. Some refactoring/renaming of clipboard files 2007-03-06 19:27:29 +00:00
jstenarandjstenar 50b957772a pyreadline-refactor: More improvements of ironpython handling, more testcases 2006-11-13 18:06:44 +00:00
jstenarandjstenar ccc2c2b175 pyreadline-refactor: improved support for ironpython. Seems quite ok now. Also another bug fix in history search 2006-11-03 22:39:12 +00:00
jstenarandjstenar 6dc285c0db pyreadline-refactor: set_text_color, set_prompt_color added, bug fix history search, ansi color patch 2006-10-25 20:40:17 +00:00
jstenarandjstenar 9a551ad86b pyreadline-refactor: Fixes to make tests pass. One failure remains in vi_test.py 2006-10-22 17:29:30 +00:00
jstenarandjstenar 17c25b3a0e pyreadline-refactor: Adding argument handling 2006-10-19 19:35:35 +00:00
jstenarandjstenar b1fe88f8c6 pyreadline-refactor: Fixing clipboard bugs, adding some editing functions 2006-10-18 21:25:49 +00:00
jstenarandjstenar 89b5a62de1 pyreadline-refactor: Merge ansi patch and tab patch from trunk. 2006-09-11 20:00:23 +00:00
jstenarandjstenar 14a0325175 pyreadline-refactor: More work on ironpython port especially to keep cpython working. 2006-07-13 22:03:17 +00:00
jstenarandjstenar c02e6a77f6 pyreadline-refactor: More tests for emacsmode, changes for bugs found by tests. Removed win32all dependency. 2006-04-18 19:31:41 +00:00
jstenarandjstenar 9669045ea1 pyreadline-refactor: Started on tests for emacsmode and lineeditor 2006-04-04 21:19:34 +00:00
jstenarandjstenar f58ae8869c pyreadline-refactor: Merged patch for vi-mode from Michael Graz 2006-03-31 20:40:05 +00:00
jstenarandjstenar b7b76cd69c pyreadline-refactor: Added visible selection mode to emacs-mode. 2006-03-21 22:00:03 +00:00
jstenarandjstenar 2130c2787c pyreadline-refactor: Added vi-mode patch, a lot of work remains. 2006-03-21 18:26:41 +00:00