NotepadNext icon indicating copy to clipboard operation
NotepadNext copied to clipboard

how to add auto increment column

Open cooltnt opened this issue 3 years ago • 9 comments

Column mode , how to add column , number increase 1 a 2 a 3 a 4 a

cooltnt avatar Jul 18 '22 03:07 cooltnt

Currently it is not possible but would be desirable to have this functionality in the future.

dail8859 avatar Jul 18 '22 16:07 dail8859

noticed there're a Lua engine embedded in the app, couldn't this be done via Lua scripting?

PNBRQK avatar Jul 18 '22 17:07 PNBRQK

@PNBRQK In theory yes you are correct...I hadn't thought of that solution immediately. It is mostly similar to the LuaScript plugin for Notepad++ but there are differences (e.g. shortcuts, events, callbacks, etc). I've mostly used the Lua Console for testing/debugging rather than automating.

dail8859 avatar Jul 18 '22 17:07 dail8859

Currently it is not possible but would be desirable to have this functionality in the future.

I suggest that you give access to the editor with the promotion of the scripts of qtscript, then such manipulations can be carried out programmatically. This is implemented in the plugin to notePad ++ https://github.com/sieukrem/jn-npp-plugin. I really look forward to this functionality, because I have a lot of finished scripts, and I like your editor :)

trdm avatar Aug 20 '22 07:08 trdm

Lua is already embedded in the application. Not saying this is a long-term solution but it at least gives a bit of programmatic control over the application. Any other possible scripting capabilities probably won't happen any time soon unless someone takes an interest in implementing it.

dail8859 avatar Aug 20 '22 15:08 dail8859

Lua is already embedded in the application. Not saying this is a long-term solution but it at least gives a bit of programmatic control over the application. Any other possible scripting capabilities probably won't happen any time soon unless someone takes an interest in implementing it.

Something I don't want to rewrite 0.5 MB of scripts from javascript to Lua :( https://github.com/trdm/jn-npp-scripts/tree/master/includes

trdm avatar Aug 20 '22 18:08 trdm

Even if it did support JS this application is just way too different than Notepad++ to make the scripts compatible. The underlying framework is totally different.

dail8859 avatar Aug 20 '22 18:08 dail8859

Even if it did support JS this application is just way too different than Notepad++ to make the scripts compatible. The underlying framework is totally different.

Plugin jN provides the work of scripts through the next API

I can try it on the fork. Or through the plugin.

trdm avatar Sep 03 '22 18:09 trdm

I found the implementation of such a request to the editor+QtScript in the editor of Kate. Here is the implementation:

https://github.com/ssj-gz/emscripten-kate/tree/emscripten-kde/part/script К сожалению у меня Windows и я не смог собрать и потестить. Обращаю внимание на папку https://github.com/ssj-gz/emscripten-kate/tree/emscripten-kde/part/script/data там есть готовые скрипты, которые могут очень помочь.

trdm avatar Oct 10 '22 05:10 trdm

0.6 v image @dail8859

cooltnt avatar Feb 09 '23 04:02 cooltnt