0

Notepad++ is my go to editor for most things. I would like to develop a new command(keyboard shortcut) for doing something unique. Anybody has any pointers regarding how I can do this?

I would like to create a command which arranges selected text in certain order based on the characters found. I would also like create a keyboard shortcut for running the same command.

Taylor Hx
  • 2,815
  • 23
  • 36
working
  • 873
  • 3
  • 11
  • 21
  • Have you tried downloading the source-code? Please try to ask specific questions if you want meaningful assistance. – Taylor Hx Nov 15 '13 at 03:08
  • Possible answer you are looking for: http://stackoverflow.com/a/6621811/2081889 – Taylor Hx Nov 15 '13 at 03:11
  • Yes, In fact I am looking at the Notepad++ python script plugin also. – working Nov 15 '13 at 03:13
  • The problem with that post is it requires me to have a predefined command, in my case I want to write a new command. – working Nov 15 '13 at 03:14
  • Could you perhaps elaborate on what you are trying to achieve? Be specific, and I'm sure we'll be able to help. – Taylor Hx Nov 15 '13 at 03:15
  • I would like to create a command which arranges selected text in certain order based on the characters found. I would also like create a keyboard shortcut for running the same command. – working Nov 15 '13 at 03:18
  • Since you want to operate on specific parts of a file currently open in Notepad++, you're probably going to have to either find a plugin developed to do what you want, or develop one yourself. – Taylor Hx Nov 15 '13 at 03:23
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/41232/discussion-between-rjadhav-and-daemon) – working Nov 15 '13 at 03:24

1 Answers1

1

You have several options:

  • develop a macro - examine Macros dropdown menu in Notepad++

  • use AutoHotKey which can send keystrokes/mouseclicks, run apps/DLL's, work with clipboard, read any system settings, take values from input boxes and many more. Please see here for its sample usage with Notepad++

  • use JN plugin for Notepad++ and script your functionality in JavaScript - example. Similarly, there is a Python scripting plugin, too.

  • write your own N++ plugin. You get the best control, but without experience this is the most difficult option.

Community
  • 1
  • 1
miroxlav
  • 11,796
  • 5
  • 58
  • 99