Alternative method of selecting the text
Posted: Mon Aug 04, 2008 9:08 pm
Hello,
Is there a plugin or script or whatewer which adds ability to use keyboard shortcuts to define start and end of the selection?
To describe it in simple words I am looking for something like this:
1) use arrow keys to navigate where I'd like to start selecting the text.
2) press a hotkey which will store the caret position.
3) navigate to the position where I'd like to stop selecting the text.
4) press another hotkey which will store the caret position and examine whether start position is already stored If yes then it will select all the text between these 2 caret positions.
I am unable to find such functionality my-self so I have started doing a plugin but I am doing it the wrong way. I have exported 2 functions which store SelStart and SelEnd in a global variable. The problem is when akelpad calls function from a plugin and the function returs it unloads the dll and if the function is executed one more time or if another function is executed looking for something what the first function has stored inside a global variable it simply can't find it because dll has been reloaded and it's back to initial state. I am not very experienced programmer so perhaps this is completelly wrong way of doing this. Anyway I'd just like to show I am happy try doing things when I miss something. So even I might be able to learn something from you. Here is a skeleton of very simple plugin I am tallking about
Is there a plugin or script or whatewer which adds ability to use keyboard shortcuts to define start and end of the selection?
To describe it in simple words I am looking for something like this:
1) use arrow keys to navigate where I'd like to start selecting the text.
2) press a hotkey which will store the caret position.
3) navigate to the position where I'd like to stop selecting the text.
4) press another hotkey which will store the caret position and examine whether start position is already stored If yes then it will select all the text between these 2 caret positions.
I am unable to find such functionality my-self so I have started doing a plugin but I am doing it the wrong way. I have exported 2 functions which store SelStart and SelEnd in a global variable. The problem is when akelpad calls function from a plugin and the function returs it unloads the dll and if the function is executed one more time or if another function is executed looking for something what the first function has stored inside a global variable it simply can't find it because dll has been reloaded and it's back to initial state. I am not very experienced programmer so perhaps this is completelly wrong way of doing this. Anyway I'd just like to show I am happy try doing things when I miss something. So even I might be able to learn something from you. Here is a skeleton of very simple plugin I am tallking about