well, It seems I can post again.
Thank the freedom.
So Now, I show you a wonderful function in CudaText.
after study CudaText some days, I write my first plugin for the Cudatext.
[Share My Idea] Plugin to get alt+C function same as NP++:
function: column mode to insert increasing leading number at everyline (Same as Notepad++)
you can find menu Plugins–> Make Plugin
At line 27, find “def run(self)”
replace all of def run(self) with:
cnt = ed.get_carets()
altCnum=dlg_input_ex(4, 'Number be inserted',
'start' , text1="0", label2="Step by", text2="1",
label3="Leading Char", text3="",label4="Following Char", text4="")
for a_cnt in cnt:
ed.insert(a_caret, a_cnt, altCtxt)
only 15 lines!!!
could not believe!!!
Now restart CudaText. you can find new menu in “Plugins–>MyaltC”, even you can assign a hotkey ‘alt+C’ to this.
get the Alt-C function same as many editor :D :D
Thank too the Cudatext’s power python API,
this function is more powerful than NP++'s Alt+C. This can add the following char.
It is so easy to implement this function in Cudatext. more powerful! So easy!
Wine changes all the Win32 API calls to Linux-compatible calls. You either have to do that translation of calls after-the-fact (like Wine does: it captures those function calls, and translates it), or you have to do it in the original source code (ie, translating the source code to use some method compatible with both Windows and Linux), which would require a complete rewrite, because as @Alan-Kilborn says, NPP is written “from the ground up to only support Windows” – ie, using Win32 API.
It’s not impossible to do; it’s just impossible to do without a complete rewrite (at which point, some would argue it ceases to be Notepad++, even if it is 100% feature-compatible).