This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Name: Delete To Whitespace | |
# Requires: Plugin for Sublime Text v3 | |
# Author: mattst - https://github.com/mattst | |
# Command: delete_to_whitespace | |
# Args: forwards: bool (delete backwards if false) | |
# License: MIT License | |
# See Also: https://stackoverflow.com/a/66870369/2102457 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
________________________________________________________________________________________________________________________________ | |
| User key bindings - /home/ms/.config/sublime-text-3/Packages/User/Default (Linux).sublime-keymap | | |
________________________________________________________________________________________________________________________________ | |
|ctrl+k, ctrl+q |exit | | | | |
|ctrl+shift+pageup |move_tab_in_group |direction: left | | | |
|ctrl+shift+pagedown |move_tab_in_group |direction: right | | | |
|ctrl+shift+v |paste_ahead | |Default | | |
|ctrl+7 |focus_group |group: 0 |Default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Save as AlterIgnoredPackages.py in your user packages directory. | |
# e.g. ~/.config/sublime-text-3/Packages/User/AlterIgnoredPackages.py | |
# | |
# Here are some key binding examples: | |
# | |
# { | |
# "keys": ["ctrl+k", "ctrl+z"], | |
# "command": "alter_ignored_packages", | |
# "args": {"add_list": ["PackageName1"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
// Basic drag select | |
{ | |
"button": "button1", "count": 1, | |
"press_command": "drag_select" | |
}, | |
{ | |
"button": "button1", "count": 1, "modifiers": ["ctrl"], | |
"press_command": "drag_select", | |
"press_args": {"additive": true} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ~/.config/sublime-text-3/Packages/Java/JavaC.sublime-build | |
// ----------------------------------------------------------------------------- | |
// ST default JavaC.sublime-build: | |
{ | |
"shell_cmd": "javac \"$file\"", | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
import sublime_plugin | |
# The global scope ensures that the settings can | |
# be easily accessed from within all the classes. | |
global settings | |
def plugin_loaded(): | |
""" | |
This module level function is called on ST startup when the API is ready. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// Add all the layouts from: Menu --> View --> Layout | |
{ "caption": "Set Layout: Single", "command": "set_layout", | |
"args": { "cols": [0.0, 1.0], | |
"rows": [0.0, 1.0], | |
"cells": [[0, 0, 1, 1]] } }, | |
// Alternative name for the "Set Layout: Single" layout. | |
{ "caption": "Set Layout: Columns 1", "command": "set_layout", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Command: open_selected_text_in_new_buffer | |
import sublime | |
import sublime_plugin | |
class OpenSelectedTextInNewBufferCommand(sublime_plugin.TextCommand): | |
""" | |
A Sublime Text plugin to create a new buffer, possibly in a new window, | |
which contains the selected text from the current buffer (if any). The |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# My enhanced version of the default ST paste_from_history.py plugin. | |
# | |
# Alterations to do the following: | |
# | |
# 1) Select the paste to text from an overlay instead of a pop-up menu. | |
# 2) Allow operation from widgets, i.e. console and input panel. | |
# 3) Ensure that text copied or cut with my various copy_and_cut_text | |
# plugins gets added to the ClipboardHistory storage list. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
infile="TestClipTwoMin.mp4" | |
datafile="TestClipTwoMinData.csv" | |
crfs=("18" "19" "20" "21" "22" "23" "24" "25" "26" "27") | |
presets=("ultrafast" "superfast" "veryfast" "faster" "fast" "medium" "slow" "slower" "veryslow") | |
echo 'CRF,Preset,Time (Secs),Size (MB)' >> "$datafile" |
NewerOlder