Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add popup/statusbar indicator of the active mode #89

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Do not include the following content from *.sublime-package files

# Git & Github
.github/ export-ignore
.gitattributes export-ignore
.gitignore export-ignore

# Documentation
doc/ export-ignore
sample/ export-ignore
Contributing.md export-ignore
ToDo.md export-ignore

# Tests
test/ export-ignore
\[test\]/ export-ignore

# Settings
.editorconfig export-ignore

# Source files
src/ export-ignore
61 changes: 60 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,65 @@
# templates github.com/github/gitignore
# Sublime Text files
ace-jump.sublime-project
ace-jump.sublime-workspace
# vim
*~
.*.swp
# (macOS)
.DS_Store
.AppleDouble
.LSOverride
# (macOS)Icon must end with two \r
Icon

# To do
# (macOS)Thumbnails
._*
# (macOS)Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# (macOS)Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# (Windows) Thumbnails
Thumbs.db

# (Windows) Files build by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
*.dll
*.lib
*.sbr

# project's built/temp docs
Changelog.html
ReadMe.html
messages/*.html
ToDo.html
ToDo.md
# test folder
\[test\]
*.TODO
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8
103 changes: 52 additions & 51 deletions AceJump.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,54 +1,55 @@
{
// Characters to be used as labels in order they'll appear
"labels": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
// Characters to be used as labels in order they'll appear
"labels" : "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
"labels_scope" : "invalid" , // Syntax highlighting scope for the labels
"search_case_sensitivity" : true , // Toggles case sensitive search in word and character modes.
"save_files_after_jump" : false , // Saves all the files aceJump tried to parse. This setting will reset any linter warnings you might see during jump. By saving all effected files
"jump_behind_last_characters" : false , // If turned on, character mode will jump after a character it it's the last character on a line.
"popup_mode" : true ,// show near-cursor-popup when mode is enabled (ace_jump_add_cursor, ace_jump_select, ace_jump_after)
"status_mode" : true ,// show status bar indicatro when mode is enabled (ace_jump_add_cursor, ace_jump_select, ace_jump_after)
"status_prefix" : "" ,// status bar indicators are ordered by their name, custom prefix allows changing the location of AceJump's status bar
"icon_cursor" :"⎀" ,//
"icon_select" :"▋" ,//
"icon_after" :"↷" ,//
"popup_flag" :"ksel" ,// space-separated list of popup flags
// Name full short Comment (≝ default)
// NONE no .
// COOPERATE_WITH_AUTO_COMPLETE acompl display next to the auto complete menu
// HIDE_ON_MOUSE_MOVE hmo hide when the mouse is moved, clicked or scrolled
// HIDE_ON_MOUSE_MOVE_AWAY hma hide when the mouse is moved (unless towards the popup), or when clicked or scrolled
// KEEP_ON_SELECTION_MODIFIED ksel ≝don't hide when the selection is modified 4057
// HIDE_ON_CHARACTER_EVENT hc hide the popup when a character is typed 4057

// Syntax highlighting scope for the labels
"labels_scope": "invalid",

// Toggles case sensitive search in word and character modes.
"search_case_sensitivity": true,

// Saves all the files aceJump tried to parse.
// This setting will reset any linter warnings you might see during jump
// By saving all effected files
"save_files_after_jump": false,

// If turned on, character mode will jump after a character
// it it's the last character on a line.
"jump_behind_last_characters": false,

// View settings that should be respected when switching the syntax
// highlighting mode. In case a plugin you use adds a new
// setting to a view, you probably want to add it to this list.
"view_settings": [
"auto_indent",
"tab_size",
"translate_tabs_to_spaces",
"use_tab_stops",
"trim_automatic_white_space",
"detect_indentation",
"draw_white_space",
"trim_trailing_white_space_on_save",
"always_show_minimap_viewport",
"color_scheme",
"font_face",
"font_options",
"gutter",
"rulers",
"draw_minimap_border",
"highlight_line",
"line_padding_top",
"line_padding_bottom",
"scroll_past_end",
"line_numbers",
"word_wrap",
"wrap_width",
"indent_subsequent_lines",
"draw_centered",
"match_brackets",
"match_brackets_content",
"match_brackets_square",
"match_brackets_braces",
"match_brackets_angle",
]
// View settings that should be respected when switching the syntax highlighting mode. In case a plugin you use adds a new setting to a view, you probably want to add it to this list.
"view_settings": [
"auto_indent",
"tab_size",
"translate_tabs_to_spaces",
"use_tab_stops",
"trim_automatic_white_space",
"detect_indentation",
"draw_white_space",
"trim_trailing_white_space_on_save",
"always_show_minimap_viewport",
"color_scheme",
"font_face",
"font_options",
"gutter",
"rulers",
"draw_minimap_border",
"highlight_line",
"line_padding_top",
"line_padding_bottom",
"scroll_past_end",
"line_numbers",
"word_wrap",
"wrap_width",
"indent_subsequent_lines",
"draw_centered",
"match_brackets",
"match_brackets_content",
"match_brackets_square",
"match_brackets_braces",
"match_brackets_angle",
]
}
65 changes: 37 additions & 28 deletions Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
[
{
"keys": ["ctrl+shift+;"],
"command": "ace_jump_word"
},
{
"keys": ["ctrl+shift+'"],
"command": "ace_jump_char"
},
{
"keys": ["ctrl+shift+."],
"command": "ace_jump_line"
},
{
"keys": ["ctrl+shift+,"],
"command": "ace_jump_within_line"
},
{
"keys": ["alt+;"],
"command": "ace_jump_select"
},
{
"keys": ["alt+'"],
"command": "ace_jump_add_cursor"
},
{
"keys": ["alt+."],
"command": "ace_jump_after"
}
// Old defaults //
{"keys":["ctrl+shift+;" ],"command":"ace_jump_word" ,"context":[{"key":"setting.ace_jump_key_single","operator":"equal","operand":true},]},
{"keys":["ctrl+shift+'" ],"command":"ace_jump_char" ,"context":[{"key":"setting.ace_jump_key_single","operator":"equal","operand":true},]},
{"keys":["ctrl+shift+." ],"command":"ace_jump_line" ,"context":[{"key":"setting.ace_jump_key_single","operator":"equal","operand":true},]},
{"keys":["ctrl+shift+," ],"command":"ace_jump_within_line" ,"context":[{"key":"setting.ace_jump_key_single","operator":"equal","operand":true},]},
{"keys":["alt+'" ],"command":"ace_jump_add_cursor" ,"context":[{"key":"setting.ace_jump_key_single","operator":"equal","operand":true},]},
{"keys":["alt+;" ],"command":"ace_jump_select" ,"context":[{"key":"setting.ace_jump_key_single","operator":"equal","operand":true},]},
{"keys":["alt+." ],"command":"ace_jump_after" ,"context":[{"key":"setting.ace_jump_key_single","operator":"equal","operand":true},]},

// Chained Keycap // keycap-based mnemonics w=word
{"keys":["ctrl+j","ctrl+w" ],"command":"ace_jump_word" ,"context":[{"key":"setting.ace_jump_key_chain","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+c" ],"command":"ace_jump_char" ,"context":[{"key":"setting.ace_jump_key_chain","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+l" ],"command":"ace_jump_line" ,"context":[{"key":"setting.ace_jump_key_chain","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+i" ],"command":"ace_jump_within_line" ,"context":[{"key":"setting.ace_jump_key_chain","operator":"equal","operand":true},]},
// Chained Modes //
{"keys":["ctrl+j","c" ],"command":"ace_jump_add_cursor" ,"context":[{"key":"setting.ace_jump_key_chain","operator":"equal","operand":true},]},
{"keys":["ctrl+j","s" ],"command":"ace_jump_select" ,"context":[{"key":"setting.ace_jump_key_chain","operator":"equal","operand":true},]},
{"keys":["ctrl+j","a" ],"command":"ace_jump_after" ,"context":[{"key":"setting.ace_jump_key_chain","operator":"equal","operand":true},]},

// Chained Home (more convenient home row mode keys)
{"keys":["ctrl+j","ctrl+k" ] , "command":"ace_jump_word" ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+l" ] , "command":"ace_jump_char" ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+;" ] , "command":"ace_jump_line" ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+j" ] , "command":"ace_jump_within_line" ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
// Chained Home Modes+: full chain, no need to press prefix key twice //
{"keys":["ctrl+j","ctrl+a","ctrl+k" ],"command":"chain","args":{"commands":[{"command":"ace_jump_add_cursor" },{"command":"ace_jump_word" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+a","ctrl+l" ],"command":"chain","args":{"commands":[{"command":"ace_jump_add_cursor" },{"command":"ace_jump_char" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+a","ctrl+;" ],"command":"chain","args":{"commands":[{"command":"ace_jump_add_cursor" },{"command":"ace_jump_line" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+a","ctrl+j" ],"command":"chain","args":{"commands":[{"command":"ace_jump_add_cursor" },{"command":"ace_jump_within_line" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+s","ctrl+k" ],"command":"chain","args":{"commands":[{"command":"ace_jump_select" },{"command":"ace_jump_word" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+s","ctrl+l" ],"command":"chain","args":{"commands":[{"command":"ace_jump_select" },{"command":"ace_jump_char" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+s","ctrl+;" ],"command":"chain","args":{"commands":[{"command":"ace_jump_select" },{"command":"ace_jump_line" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+s","ctrl+j" ],"command":"chain","args":{"commands":[{"command":"ace_jump_select" },{"command":"ace_jump_within_line" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+f","ctrl+k" ],"command":"chain","args":{"commands":[{"command":"ace_jump_after" },{"command":"ace_jump_word" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+f","ctrl+l" ],"command":"chain","args":{"commands":[{"command":"ace_jump_after" },{"command":"ace_jump_char" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+f","ctrl+;" ],"command":"chain","args":{"commands":[{"command":"ace_jump_after" },{"command":"ace_jump_line" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["ctrl+j","ctrl+f","ctrl+j" ],"command":"chain","args":{"commands":[{"command":"ace_jump_after" },{"command":"ace_jump_within_line" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
]
65 changes: 37 additions & 28 deletions Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
[
{
"keys": ["super+shift+;"],
"command": "ace_jump_word"
},
{
"keys": ["super+shift+'"],
"command": "ace_jump_char"
},
{
"keys": ["super+shift+."],
"command": "ace_jump_line"
},
{
"keys": ["super+shift+,"],
"command": "ace_jump_within_line"
},
{
"keys": ["ctrl+;"],
"command": "ace_jump_select"
},
{
"keys": ["ctrl+'"],
"command": "ace_jump_add_cursor"
},
{
"keys": ["ctrl+."],
"command": "ace_jump_after"
}
// Old defaults //
{"keys":["super+shift+;" ],"command":"ace_jump_word" ,"context":[{"key":"setting.ace_jump_key_single","operator":"equal","operand":true},]},
{"keys":["super+shift+'" ],"command":"ace_jump_char" ,"context":[{"key":"setting.ace_jump_key_single","operator":"equal","operand":true},]},
{"keys":["super+shift+." ],"command":"ace_jump_line" ,"context":[{"key":"setting.ace_jump_key_single","operator":"equal","operand":true},]},
{"keys":["super+shift+," ],"command":"ace_jump_within_line" ,"context":[{"key":"setting.ace_jump_key_single","operator":"equal","operand":true},]},
{"keys":["ctrl+'" ],"command":"ace_jump_add_cursor" ,"context":[{"key":"setting.ace_jump_key_single","operator":"equal","operand":true},]},
{"keys":["ctrl+;" ],"command":"ace_jump_select" ,"context":[{"key":"setting.ace_jump_key_single","operator":"equal","operand":true},]},
{"keys":["ctrl+." ],"command":"ace_jump_after" ,"context":[{"key":"setting.ace_jump_key_single","operator":"equal","operand":true},]},

// Chained Keycap // keycap-based mnemonics w=word
{"keys":["super+j","super+w" ],"command":"ace_jump_word" ,"context":[{"key":"setting.ace_jump_key_chain","operator":"equal","operand":true},]},
{"keys":["super+j","super+c" ],"command":"ace_jump_char" ,"context":[{"key":"setting.ace_jump_key_chain","operator":"equal","operand":true},]},
{"keys":["super+j","super+l" ],"command":"ace_jump_line" ,"context":[{"key":"setting.ace_jump_key_chain","operator":"equal","operand":true},]},
{"keys":["super+j","super+i" ],"command":"ace_jump_within_line" ,"context":[{"key":"setting.ace_jump_key_chain","operator":"equal","operand":true},]},
// Chained Modes //
{"keys":["super+j","c" ],"command":"ace_jump_add_cursor" ,"context":[{"key":"setting.ace_jump_key_chain","operator":"equal","operand":true},]},
{"keys":["super+j","s" ],"command":"ace_jump_select" ,"context":[{"key":"setting.ace_jump_key_chain","operator":"equal","operand":true},]},
{"keys":["super+j","a" ],"command":"ace_jump_after" ,"context":[{"key":"setting.ace_jump_key_chain","operator":"equal","operand":true},]},

// Chained Home (more convenient home row mode keys)
{"keys":["super+j","super+k" ] , "command":"ace_jump_word" ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["super+j","super+l" ] , "command":"ace_jump_char" ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["super+j","super+;" ] , "command":"ace_jump_line" ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["super+j","super+j" ] , "command":"ace_jump_within_line" ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
// Chained Home Modes+: full chain, no need to press prefix key twice //
{"keys":["super+j","super+a","super+k" ],"command":"chain","args":{"commands":[{"command":"ace_jump_add_cursor" },{"command":"ace_jump_word" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["super+j","super+a","super+l" ],"command":"chain","args":{"commands":[{"command":"ace_jump_add_cursor" },{"command":"ace_jump_char" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["super+j","super+a","super+;" ],"command":"chain","args":{"commands":[{"command":"ace_jump_add_cursor" },{"command":"ace_jump_line" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["super+j","super+a","super+j" ],"command":"chain","args":{"commands":[{"command":"ace_jump_add_cursor" },{"command":"ace_jump_within_line" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["super+j","super+s","super+k" ],"command":"chain","args":{"commands":[{"command":"ace_jump_select" },{"command":"ace_jump_word" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["super+j","super+s","super+l" ],"command":"chain","args":{"commands":[{"command":"ace_jump_select" },{"command":"ace_jump_char" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["super+j","super+s","super+;" ],"command":"chain","args":{"commands":[{"command":"ace_jump_select" },{"command":"ace_jump_line" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["super+j","super+s","super+j" ],"command":"chain","args":{"commands":[{"command":"ace_jump_select" },{"command":"ace_jump_within_line" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["super+j","super+f","super+k" ],"command":"chain","args":{"commands":[{"command":"ace_jump_after" },{"command":"ace_jump_word" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["super+j","super+f","super+l" ],"command":"chain","args":{"commands":[{"command":"ace_jump_after" },{"command":"ace_jump_char" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["super+j","super+f","super+;" ],"command":"chain","args":{"commands":[{"command":"ace_jump_after" },{"command":"ace_jump_line" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
{"keys":["super+j","super+f","super+j" ],"command":"chain","args":{"commands":[{"command":"ace_jump_after" },{"command":"ace_jump_within_line" }]} ,"context":[{"key":"setting.ace_jump_key_chome","operator":"equal","operand":true},]},
]
Loading