notepad++
The community/apps/notepad++
directory contains configuration for the Notepad++ application.
The file notepad++_win.py
defines Talon bindings for Notepad++ on Windows.
It starts by defining an application context that matches when the application name is "Notepad++ : a free (GNU) source code editor", "Notepad++ : a free (GPL) source code editor" or the executable is notepad++.exe
. It then applies the tags user.find_and_replace
, user.line_commands
, and user.tabs
to this context. These tags enable functionality in other files such as find_and_replace.py
and line_commands.py
.
This file defines several actions, most of which emulate default Notepad++ keyboard shortcuts:
* tab_previous
and tab_next
navigate between tabs using ctrl-pageup
and ctrl-pagedown
respectively.
* toggle_comment
comments or uncomments a line or selection using ctrl-q
.
* line_clone
duplicates the current line using ctrl-d
.
* line_swap_up
and line_swap_down
move the current line up or down using ctrl-shift-up
and ctrl-shift-down
respectively.
* indent_more
and indent_less
indent or outdent the current line or selection with tab
and shift-tab
.
* jump_line
opens the "Go To Line" dialog, inserts the given line number, and presses enter, effectively jumping to that line.
* find_next
and find_previous
will find the next or previous occurrence of the search term with enter
and shift-enter
respectively.
* filename
extracts the filename from the window title.
* select_next_occurrence
and select_previous_occurrence
find a given term, select it, and find the next or previous occurrence.
* tab_jump
jumps to a specific tab by pressing ctrl-keypad followed by the number of the tab.
* tab_final
is defined, but it doesn't actually work in Notepad++.
* find_everywhere
, find_toggle_match_by_case
, find_toggle_match_by_word
, find_toggle_match_by_regex
, replace
, replace_everywhere
, replace_confirm
, replace_confirm_all
emulate the equivalent functionality of the Notepad++ find and replace dialog.