Copy from Find Results
Little package to remove the line number when copying from the find in files panel
Details
Installs
- Total 826
- Win 462
- Mac 270
- Linux 94
May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Copy from Find Results
Little package to remove the line number when copying from the find in files panel
Use
The command is designed to only work on the Find Results
tab and default to a normal copy otherwise.
It will transform this:
6 class CopyFromFindResultsCommand(sublime_plugin.TextCommand):
7: def run(self, edit):
8 self.view.run_command('copy')
to this:
class CopyFromFindResultsCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.run_command('copy')
KeyBindings
There is no default shortcut, to add it open your User Keybindings file and add something like the following:
// Linux or Windows
{ "keys": ["ctrl+c"], "command": "copy_from_find_results",
"context": [{ "key": "selector", "operator": "equal", "operand": "text.find-in-files" }]
}
// MacOS
{ "keys": ["super+c"], "command": "copy_from_find_results",
"context": [{ "key": "selector", "operator": "equal", "operand": "text.find-in-files" }]
}
using "context": [{ "key": "selector", "operator": "equal", "operand": "text.find-in-files" }]
it's being extra careful, you can leave that out and the package will check for Find Results
for you.
Outside Find in Files
If you want to use the package outside Find Results
you can add a the force
argument, like this:
// Linux or Windows
{ "keys": ["ctrl+alt+c"], "command": "copy_from_find_results",
"args": { "force": true }
}
// MacOS
{ "keys": ["super+alt+c"], "command": "copy_from_find_results",
"args": { "force": true }
}
Settings
{
// If set to false, it removes the dots added by sublime to mark the separation between matches in the same file.
"keep_intermediate_dots": false
}
Installation
PackageControl
If you have PackageControl installed, you can use it to install the package.
Just type cmd-shift-p
/ctrl-shift-p
to bring up the command pallete and pick Package Control: Install Package
from the dropdown, search and select the package and you're all set.
Manual
You can clone the repo in your /Packages
(Preferences -> Browse Packages…) folder and start using/hacking it.
cd ~/path/to/Packages
git clone git://github.com/NicoSantangelo/sublime-copy-from-find-results.git "Copy from Find Results"