Skip to content

Commit e2cb537

Browse files
committed
- Manually merge some findings + further corrections from PR#296
- start to cleanup outdated todo list
1 parent db0c1c7 commit e2cb537

File tree

3 files changed

+26
-147
lines changed

3 files changed

+26
-147
lines changed

docs/source/intro.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,16 @@ Don't worry if you've not seen, or never even heard of Python_, it's incredibly
1111
To whet your appetite, here's a quick (complete) sample script that shows some of the power of Python Script.::
1212
1313
editor.replace("old", "new")
14-
editor.pyreplace(r"^Code: ([A-Z]{4,8})", r"The code is \1")
1514

16-
notepad.runMenuCommand("TextFX Tools", "Delete Blank Lines")
15+
notepad.runMenuCommand("MIME Tools", "About")
1716
notepad.save()
1817

1918

2019
Line 1 performs a normal search and replace on the current document, replacing the word "old" with the word "new".
2120

22-
Line 2 also performs a search and replace, but uses Python_ regular expressions, which is a much more complete implementation of regular expressions than is natively supported in Notepad++.
21+
Line 3 runs the menu command called "About" from the default Plugin MIME Tools menu.
2322

24-
Line 4 runs the menu command called "Delete Blank Lines" from the TextFX Tools menu.
25-
26-
Line 5 saves the current document (equivalent to clicking File, Save).
23+
Line 4 saves the current document (equivalent to clicking File, Save).
2724

2825

2926
Objects

docs/source/usage.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The file layout is as follows::
2020
| |
2121
| |-- PythonScript.dll
2222
| |
23-
| |-- python312.dll (maybe not necessary if you have a Python installation already, in which case it's probably in C:\windows )
23+
| |-- python312.dll (maybe not necessary if you have a Python installation already, in which case it is probably in C:\windows )
2424
| |
2525
| |-- lib
2626
| | \
@@ -34,7 +34,7 @@ The file layout is as follows::
3434
| \
3535
| |-- PythonScript
3636
| \
37-
| |-- index.html (optional, if it's not there context-sensitive help will use the web)
37+
| |-- index.html (optional, if it is not there context-sensitive help will use the web)
3838
|
3939
|
4040
|
@@ -63,8 +63,8 @@ script to the menu, then it will appear immediately, but you will not be able to
6363

6464
If you assign it to a toolbar icon, then it will only appear on the next start of Notepad++.
6565

66-
Context-Sensitive help is available - if your cursor is on and notepad, editor or console function, the ``Context-Help`` menu
67-
will take you straight to the documentation for that function. If the CHM file is not in the relevant location, it will open the
66+
Context-Sensitive help is available - if your cursor is on a notepad, editor or console function, the ``Context-Help`` menu
67+
will take you straight to the documentation for that function. If the help files are not in the relevant location from layout above, it will open the
6868
documentation from the web.
6969

7070

@@ -77,6 +77,6 @@ The script called startup.py (in either the "machine" directory or "user" direct
7777
starts up. Normally, that is the first time a script is called. The default startup.py script does some small things like directing
7878
the error output to the console, and importing some commonly used modules.
7979

80-
If you want to register an callback (see :ref:`Notifications`) to run from when Notepad++ starts up, you need to change the startup type
80+
If you want to register a callback (see :ref:`Notifications`) to run from when Notepad++ starts up, you need to change the startup type
8181
to ATSTARTUP, instead of LAZY. You can do this in the Configuration dialog.
8282

todo.txt

Lines changed: 18 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -1,138 +1,20 @@
1-
2-
TODO: Stuff
3-
4-
DONE EnsureDirectoryExists for user scripts on New Script
5-
6-
7-
8-
9-
10-
11-
--------------
12-
DONE - Console buffer.write writes '0' at the end?
131

14-
DONE console stdout for console commands.
15-
16-
DONE menus
17-
18-
DONE scintilla events
19-
20-
21-
DONE Stop Script menu disable
22-
23-
DONE Close notepad whilst running a script
24-
25-
26-
DONE generation for getLine() (exception)
27-
28-
29-
DONE Up/down history for console input
30-
31-
DONE return to console focus after command
32-
33-
DONE fonts for scintilla console and prompt
34-
35-
DONE Console - Remove default from run button, make enter send run command.
36-
37-
DONE Change to stop button that we enable
38-
39-
DONE Release build
40-
41-
42-
DONE GUI for configuration
43-
44-
DONE Altered scripts in menu
45-
46-
DONE FileWatcher on scripts dirs (only create / delete)
47-
48-
DONE Python logo for console
49-
50-
DONE Fix importing module, and using editor object in imported module (Npp module?)
51-
52-
53-
DONE notepad.close() closeAllButThis(), closeAll() etc
54-
55-
DONE initialisation
56-
DONE - lazy (default)
57-
DONE - at startup
58-
59-
60-
DONE lines chars? __getitem__
61-
62-
DONE Menu enums
2+
TODO: Stuff
3+
4+
5+
6+
-- Next Release --
7+
8+
lines __iter__
9+
chars __getitem__ and __iter__
10+
11+
notepad.activate(string) (first match)
12+
notepad.activate(int) (use current view)
13+
14+
15+
16+
17+
Lexer for console for line numbers etc (python exceptions and VS errors)
18+
19+
6320

64-
65-
DONE notepad.messageBox() - just need python bindings
66-
DONE notepad.prompt() - need form and object
67-
68-
DONE Remove NPPN_READY and GetFuncs messageboxes
69-
70-
71-
DONE Copyright text in about box
72-
73-
74-
DONE clean up (g_menuScripts and g_toolbarScripts need clearing / deleting)
75-
76-
77-
78-
DONE editor.forEachLine(function(lineContents, lineNumber, totalLines))
79-
(returns number of lines to increment - if None then 1)
80-
81-
82-
83-
84-
85-
DONE editor.deleteLine
86-
DONE editor.replaceLine
87-
88-
DONE editor.getUserLineSelection() -- line start/end of selection or whole doc
89-
DONE editor.getUserCharSelection() -- char start/end of selection or whole doc
90-
91-
DONE editor.setTarget(start,end)
92-
93-
DONE clear callbacks
94-
95-
96-
97-
DONE Investigate RE
98-
99-
100-
DONE pyreplace line number check
101-
102-
DONE messages exec
103-
104-
105-
106-
DONE test compiler (msi)
107-
108-
docs from laptop
109-
110-
DONE test notepad.save() with NOTIFICATIO.FILESAVING callback registered
111-
112-
DONE pyreplace undo
113-
114-
DONE help command on main menu (context sensitive)
115-
116-
DONE pymlreplace see if search() then replace on each one works better
117-
118-
DONE sample scripts
119-
120-
121-
DONE (works without anything special) line endings for console
122-
123-
124-
-- Next Release --
125-
126-
lines __iter__
127-
chars __getitem__ and __iter__
128-
129-
notepad.activate(string) (first match)
130-
notepad.activate(int) (use current view)
131-
132-
133-
134-
135-
Lexer for console for line numbers etc (python exceptions and VS errors)
136-
137-
138-

0 commit comments

Comments
 (0)