I would like to start editing files from the terminal window, and when Geany opens it, I would like to use the PageDown key and/or "Find next" and Ctrl-V (paste clipboard).
When I issue "geany xxxxfile.c" (Geany already running), Geany shows the file, so far is OK. (But there is no visible cursor yet.)
PageDown does not work.. Nothing happens.
"Find next" works, the found text is selected, but Ctrl-V does not work. (The selection is not replaced.)
"Down arrow" key makes the cursor appearing in the search bar.. (not in the editor window).
"Right arrow" key (among other keys) makes the cursor appearing in the editor window. (And from now, the PageDown and PageUp key and Ctrl-V are working too.)
On 14-08-04 05:28 AM, Péter wrote:
I would like to start editing files from the terminal window, and when Geany opens it, I would like to use the PageDown key and/or "Find next" and Ctrl-V (paste clipboard).
When I issue "geany xxxxfile.c" (Geany already running), Geany shows the file, so far is OK. (But there is no visible cursor yet.)
PageDown does not work.. Nothing happens.
"Find next" works, the found text is selected, but Ctrl-V does not work. (The selection is not replaced.)
"Down arrow" key makes the cursor appearing in the search bar.. (not in the editor window).
"Right arrow" key (among other keys) makes the cursor appearing in the editor window. (And from now, the PageDown and PageUp key and Ctrl-V are working too.)
If I understand you correctly, it's because the VTE/terminal still has input focus. You can jump to the editor using the "Switch to Editor" keybinding (F2 by default I think), or by clicking on the editor widget to move input focus there. Not sure if this helps.
Cheers, Matthew Brush
Matthew Brush wrote:
the VTE/terminal still has input focus.
I used an external terminal window (xfce4-terminal). ("Virtual terminal support" is not even loaded.)
You can jump to the editor using the "Switch to Editor" keybinding
Yes I know. This key, and the LeftArrow, RightArrow, UpArrow keys moves the focus to the editor window. The users' expectation is that the editor already got the focus (when that file was opened). (Where is the focus, if not on the editor? Why? In my scenario there is no VTE, no messages, no sidebar, no previous open document.)
On 5 August 2014 00:44, Péter peter20@mpp.hu wrote:
Matthew Brush wrote:
the VTE/terminal still has input focus.
I used an external terminal window (xfce4-terminal). ("Virtual terminal support" is not even loaded.)
You can jump to the editor using the "Switch to Editor" keybinding
Yes I know. This key, and the LeftArrow, RightArrow, UpArrow keys moves the focus to the editor window. The users' expectation is that the editor already got the focus (when that file was opened). (Where is the focus, if not on the editor? Why? In my scenario there is no VTE, no messages, no sidebar, no previous open document.)
It may be your window manager, for me on Cinnamon, after using a terminal command to open a file in an existing instance the focus is the editor of the newly opened file and typing or commands work immediately.
Cheers Lex
--
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On 08/04/2014 04:57 PM, Lex Trotman wrote:
It may be your window manager, for me on Cinnamon, after using a terminal command to open a file in an existing instance the focus is the editor of the newly opened file and typing or commands work immediately.
For me it works, too, using i3.
@Péter: if you open a file via terminal: Does at least geany get focus automatically?
If so, I don't think it can be a window manager issue, or can it handle focus inside a window?
Cheers, Johannes
Le 04/08/2014 14:28, Péter a écrit :
I would like to start editing files from the terminal window, and when Geany opens it, I would like to use the PageDown key and/or "Find next" and Ctrl-V (paste clipboard).
When I issue "geany xxxxfile.c" (Geany already running), Geany shows the file, so far is OK. (But there is no visible cursor yet.)
[...]
The focus stays wherever it was before you opened that file, if it was on an editor it will be in your newly open file, but if it was in e.g. the Search field in the toolbar or in the VTE, it will stay there.
I think this behavior is decent, but maybe it would be acceptable to change it, not sure.
Regards, Colomban
If I rename the (xy.cpp) file to xy.xml (or xy.qw or xy.txt) then it works! (Incidentally discovered.) (In Geany, the previous file was closed (but Geany remains open); (I do not know, where goes this time the focus..); in the xfce4-terminal I issue "geany xy.xml"; Geany and its editor both get the focus; a text caret appears at the beginning of the file; PageDown immediately works.)
If I rename the file to xy.pas then it does not work. (Geany get the focus but its editor not.) ("Filetype: Pascal") If I close Geany and issue (the same) "geany xy.pas" then it works. (Caret appears, PageDown works.)
In my Geany, "virtual terminal support" is not loaded, and "plugin support" is not enabled (but when it was enabled, the symptom was the same).
Colomban Wendling wrote:
The focus stays wherever it was before you opened that file