Anonymous avatar Anonymous committed e6e3378

Going to the first non-space char in the line after correcting indentation

Comments (0)

Files changed (9)

+> Public release 0.2pre : May 20, 2006
+
+
 - Auto completing keywords and builtins : May 19, 2006
 
 

docs/platform.txt

 *** Platform ***
-    * Project
-    * File local history
-    * Commanding buffer
-    * Plugin support and extensibility
-    * Team
-    * Global and project specific preferences
-    * Saving states between sessions
-    * Acceleration keys
-    * Profiling
-    * Debugging
+  * Project
+  * File local history
+  * Commanding buffer
+  * Plugin support and extensibility
+  * Team
+  * Global and project specific preferences
+  * Saving states between sessions
+  * Acceleration keys
+  * Profiling
+  * Debugging

docs/platformui.txt

 *** PlatformUI ***
-    * Basic editing
-    * Syntax highlighting
-    * Multiple buffers
-    * Advanced search
-    * Different views
-    * Configuration editor
-    * Having multiple clipboards
-    * Adding status bar
+  * Basic editing
+  * Syntax highlighting
+  * Multiple buffers
+  * Advanced search
+  * Different views
+  * Configuration editor
+  * Having multiple clipboards
+  * Adding status bar

docs/pythonsource.txt

 *** PythonSource ***
-    * Formatting code
-    * Basic refactorings
-    * Content assist
-    * Advanced refactorings
-    * Type inferencing
-        * static
-        * dynamic
-        * ask user
-    * Auto completion
+  * Formatting code
+  * Basic refactorings
+  * Content assist
+  * Advanced refactorings
+  * Type inferencing
+    * static
+    * dynamic
+    * ask user
+  * Auto completion
 
 >>> Advanced Refactorings; Need type inferencing
 * Rename method
 * Changing next/prev word to stop on underline and capital letters @ 1
 
 
-* Auto-completing function parameter names @ 2
-
-
 * Commenting and uncommenting lines @ 1
 
 
   * Implicit line joining: Indenting lines whose previous line contains a ([{'''
   * Indenting a range of file
   * Removing extra spaces
-  * Correcting indentation sends the cursor to the last character of an empty line
+  ? Separating entering and correcting indentation
 
 
 * Rename local variable @ 2
 * Rename module refactoring @ 2
 
 
-* Formating Code @ 2
+* Formating Code @ 5
+  * Writing ASTs
 
 
 * Better multi-sequence key event handling @ 2
   * Showing modified file status
 
 
-* Writing ASTs @ 4
+* Auto-completing function parameter names when calling @ 2
 
 
-* Auto-complete from-import imported objects @ 2
-
-
-* Auto-completing self. @ 2
-
-
-* Proposing templates in auto-completion proposals @ 2
+* Lambdas and auto-completion @ 1
 
 
 * Auto completion type @ 3
   * Sorting proposals
 
 
+* Auto completion after "."s @ 3
+  * Auto-completing "self."s @ 2
+
+
 * Auto completing and comments and strings @ 1
 
 
+> Public release 0.2 : June 4, 2006
+
+
+* Proposing templates in auto-completion proposals @ 2
+
+
+* Auto-complete from-import imported objects @ 2
+
+
 * Auto-completion should ignore current statement @ 1
   What if the statement in current line is spread in more than one line.
 
 
+* Proposing function parameters in the function @ 1
+
+
 * Auto-complete local variable names @ 3
 
 
-> Public release 0.2pre : May 20, 2006
-
-
 --- Remaining Stories ---
 ? Change program goals and description; principles.html
   ? Go toward refactoring and ... library rather than an IDE

docs/workingon.txt

-? Sorting the proposals
+
+
 ? Completions are context dependant
-
 ? Separating ui modules and packages
     ? Decide which modules are the domain and which are the presentation
     ? Should editing tools access Editor directly? Which of them?

rope/codeassist.py

             self.result[node.name] = CompletionProposal(node.name, 'class')
 
 
+class _FunctionVisitor(object):
+    def __init__(self):
+        pass
+
+    def visitAssName(self, node):
+        pass
+
+
 class ICodeAssist(object):
     def complete_code(self, source, offset):
         pass
         self.text.bind('<Alt-v>', go_prev_page)
         def indent_line(event):
             self.indenter.correct_indentation(self.get_insert())
+            while self.text.get(INSERT) == ' ':
+                self.text.mark_set(INSERT, 'insert +1c')
             return 'break'
         def do_insert_tab(event):
             self.insert_tab()

ropetest/codeassisttest.py

         result = self.assist.complete_code(code, len(code))
         self.assert_proposal_not_in_result('key', 'global_variable', result)
 
+    # TODO : proposing local variables
+    def xxx_test_proposing_local_variables_in_functions(self):
+        code = 'def f(self):\n    my_var = 10\n    my_'
+        result = self.assist.complete_code(code, len(code))
+        self.assert_proposal_in_result('my_var', 'local_variable', result)
+
 
 if __name__ == '__main__':
     unittest.main()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.