Hi
I have made some plugins for Geany. They really speed up my workflow and hopefully anyone else will find them useful.
Ctrl-Tab https://github.com/leifmariposa/geany-ctrl-tab-plugin This plugin is supposed to replace the original Ctrl+Tab dialog so it should be hooked up to the keybinding Ctrl-Tab. It shows a dialog with open files and "tool-windows". When opened the dialog will show open files in the order of last used. Ctrl-Tab and Ctrl-Shift-Tab and also arrow keys can be used to select any file or tool windows to switch to.
Goto Function https://github.com/leifmariposa/geany-goto-function-plugin This plugin shows a list of all the functions of the current document and has a quick search text box at the top. It allows to very quickly jump to any function in he document even if you only remember a part of the functionname.
Switch Document https://github.com/leifmariposa/geany-switch-document-plugin I often have many documents open and I wanted a quicker way of switching among them than using the document tabs or the documents view. This plugin lists all open documents in a dialog and it has a quick search text box at the top. Just write a part of the document name and the list is reduced. Very quick and handy!
Open File https://github.com/leifmariposa/geany-open-file-plugin Shows a dialog for quickly open a file from a preconfigured location. The dialog has a quick search field that filters out and displays only the files that matches the entered search word. (It is not possible to open files from other location than the preconfigured locations.)
I use them under both Linux and Windows. If anyone wants to try them out please do so and give me feedback!
Best regards Leif Persson
Am 21.07.2016 um 12:42 schrieb Leif Persson:
Hi
I have made some plugins for Geany. They really speed up my workflow and hopefully anyone else will find them useful.
Ctrl-Tab https://github.com/leifmariposa/geany-ctrl-tab-plugin This plugin is supposed to replace the original Ctrl+Tab dialog so it should be hooked up to the keybinding Ctrl-Tab. It shows a dialog with open files and "tool-windows". When opened the dialog will show open files in the order of last used. Ctrl-Tab and Ctrl-Shift-Tab and also arrow keys can be used to select any file or tool windows to switch to.
Goto Function https://github.com/leifmariposa/geany-goto-function-plugin This plugin shows a list of all the functions of the current document and has a quick search text box at the top. It allows to very quickly jump to any function in he document even if you only remember a part of the functionname.
Switch Document https://github.com/leifmariposa/geany-switch-document-plugin I often have many documents open and I wanted a quicker way of switching among them than using the document tabs or the documents view. This plugin lists all open documents in a dialog and it has a quick search text box at the top. Just write a part of the document name and the list is reduced. Very quick and handy!
Open File https://github.com/leifmariposa/geany-open-file-plugin Shows a dialog for quickly open a file from a preconfigured location. The dialog has a quick search field that filters out and displays only the files that matches the entered search word. (It is not possible to open files from other location than the preconfigured locations.)
I use them under both Linux and Windows. If anyone wants to try them out please do so and give me feedback!
Nice. I was also working on a plugin that allows to switch documents and go to functions more quickly [1]. However, it's not released yet, as it's part of my peasy plugin effort (peasy is a plugin that allows for writing plugins in python and other languages, using libpeas [2]).
[1] https://github.com/kugel-/peasy/blob/master/plugins/quickswitch.py [2] https://github.com/kugel-/peasy/
Nice to see someone who's also not fully satisfied with how quickly you can go to functions or tabs :-)
Best regards
I've written some plugins that I use daily for similar purposes, but unfortunately I still have to update them to work with the latest geany (pull requests welcome ;-)
I have a similar quick-opener https://github.com/sblatnick/geany-plugins/blob/master/quick-opener/src/quick-opener.c plugin, which takes 2 shortcuts, one to quickly open from the current project tree, and another for a custom path:
To navigate within a file, I use an case-insensitive search I call quick-search https://github.com/sblatnick/geany-plugins/blob/master/quick-search/src/quick-search.c that also highlights all matches as you type and allows keyboard shortcuts to navigate quickly from match to match. The search box overlays the top left corner of the text field, so it doesn't take up any additional space like the toolbar does:
I'd really like to see our plugins in geany-plugins, but I just haven't gotten around to updating the plugins recently and getting them integrated with the geany-plugins build system. (The biggest problem with my plugins is updating function calls that call functions that have been restricted as not part of the plugin APIs.)
I hope this helps,
Steve
On 07/21/2016 05:16 AM, Thomas Martitz wrote:
Am 21.07.2016 um 12:42 schrieb Leif Persson:
Hi
I have made some plugins for Geany. They really speed up my workflow and hopefully anyone else will find them useful.
Ctrl-Tab https://github.com/leifmariposa/geany-ctrl-tab-plugin This plugin is supposed to replace the original Ctrl+Tab dialog so it should be hooked up to the keybinding Ctrl-Tab. It shows a dialog with open files and "tool-windows". When opened the dialog will show open files in the order of last used. Ctrl-Tab and Ctrl-Shift-Tab and also arrow keys can be used to select any file or tool windows to switch to.
Goto Function https://github.com/leifmariposa/geany-goto-function-plugin This plugin shows a list of all the functions of the current document and has a quick search text box at the top. It allows to very quickly jump to any function in he document even if you only remember a part of the functionname.
Switch Document https://github.com/leifmariposa/geany-switch-document-plugin I often have many documents open and I wanted a quicker way of switching among them than using the document tabs or the documents view. This plugin lists all open documents in a dialog and it has a quick search text box at the top. Just write a part of the document name and the list is reduced. Very quick and handy!
Open File https://github.com/leifmariposa/geany-open-file-plugin Shows a dialog for quickly open a file from a preconfigured location. The dialog has a quick search field that filters out and displays only the files that matches the entered search word. (It is not possible to open files from other location than the preconfigured locations.)
I use them under both Linux and Windows. If anyone wants to try them out please do so and give me feedback!
Nice. I was also working on a plugin that allows to switch documents and go to functions more quickly [1]. However, it's not released yet, as it's part of my peasy plugin effort (peasy is a plugin that allows for writing plugins in python and other languages, using libpeas [2]).
[1] https://github.com/kugel-/peasy/blob/master/plugins/quickswitch.py [2] https://github.com/kugel-/peasy/
Nice to see someone who's also not fully satisfied with how quickly you can go to functions or tabs :-)
Best regards _______________________________________________ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
Colomban Wendling's Commander plugin [1] also supports switching between open files, even though this is not documented. However, to limit Commander to display *only* the files, you have to type an "f:" prefix (likewise "c:" for menu items). Personally I find this cumbersome, so I use a straightforward patch that adds keybindings for limited modes (not sending this upstream yet because it needs more UI work).
Colomban, do you think these two features -- symbols from the current document, and keybindings for limited modes -- would be good to have in Commander?
[1] http://plugins.geany.org/commander.html
Le 22/07/2016 à 14:03, Vasiliy Faronov a écrit :
Colomban Wendling's Commander plugin [1] also supports switching between open files, even though this is not documented.
Yeah documentation could be improved indeed.
However, to limit Commander to display *only* the files, you have to type an "f:" prefix (likewise "c:" for menu items). Personally I find this cumbersome, so I use a straightforward patch that adds keybindings for limited modes (not sending this upstream yet because it needs more UI work).
You could have a keybinding that just popups the dialog like normal, but pre-fills it with the appropriate prefix. Shouldn't be too much change and virtually no UI rework.
I just created https://github.com/geany/geany-plugins/pull/468, seems straightforward enough :)
Colomban, do you think these two features -- symbols from the current document, and keybindings for limited modes -- would be good to have in Commander?
Sure, they seem useful.
About symbols, at some point I wanted to have a mode showing all symbols form the workspace (not only current file), but a simple implementation was way too slow with a large number of files. Probably for one single file it'd be alright; otherwise, a more complex but probably more efficient approach could be dynamically searching for matches instead of building the list and filtering it. But that requires large rework.
Also, just one thing: adding new dynamic elements might require making sure it doesn't get too much in the way of other matches. I mean that for example, out of habit I now expect some short "commands" to do something particular, and would be a little annoyed if they didn't work because something else matched. But well, that doesn't have to stop innovation either, so it's a matter of balance. Though, with automatic filtering it becomes less of a problem, as it becomes very easy to filter a particular category, and things in other categories then won't conflict :)
Regards, Colomban