Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ilyakam/removeduplicatelines
Remove duplicate lines from a file (Keywords: remove duplicates, delete duplicates, dedup)
https://github.com/ilyakam/removeduplicatelines
sublime-text
Last synced: about 1 month ago
JSON representation
Remove duplicate lines from a file (Keywords: remove duplicates, delete duplicates, dedup)
- Host: GitHub
- URL: https://github.com/ilyakam/removeduplicatelines
- Owner: ilyakam
- License: other
- Created: 2018-04-21T20:16:26.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2024-04-03T16:23:44.000Z (9 months ago)
- Last Synced: 2024-04-04T17:03:31.617Z (9 months ago)
- Topics: sublime-text
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 9
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# RemoveDuplicateLines - A Sublime Text Plugin
A plugin for [Sublime Text](http://www.sublimetext.com/) that allows you to remove duplicate lines from files and selections.
## Installation
* **Package Control**
1. [Install Package Control](https://packagecontrol.io/installation)
1. [Bring up the Command Palette](https://sublime-text.readthedocs.io/en/stable/reference/command_palette.html#how-to-use-the-command-palette) and type "Package Control: Install Package"
1. Type "RemoveDuplicateLines" and press enter* **Directly**
1. Locate the `Packages` folder in the [data directory](https://docs.sublimetext.io/guide/getting-started/basic-concepts.html#the-data-directory)
1. Download the [latest version of RemoveDuplicateLines](https://github.com/ilyakam/RemoveDuplicateLines/releases/latest)
1. Extract the archive into the `Packages` folder* **Development**
1. [Follow the instructions on the `CONTRIBUTING` guide](./CONTRIBUTING.md#getting-started)## Usage
* Keyboard - shiftF5 on all platforms. You might also need to hold (fn) depending on your OS/BIOS configuration.
* Command Palette - press cmdshiftp (or ctrlshiftp), type "Remove Duplicate Lines," and press enter.
* Menu - open the `Edit` menu and click on the `Remove Duplicate Lines` command option towards the bottom.This plugin can be used in two different ways:
1. **Without a selection**
This removes all duplicate lines, leaving the first occurrence of each line to be unique to the entire file.
| Before | After |
| :----- | :---- |
| ![without_selection_before](https://user-images.githubusercontent.com/183227/40892300-1451b4b8-674a-11e8-95e9-041738f3ecd1.png) | ![without_selection_after](https://user-images.githubusercontent.com/183227/40892301-146c9940-674a-11e8-99a8-1878699f5114.png) |1. **With a selection**
This removes all duplicate lines within one or more selection(s).
| Before | After |
| :----- | :---- |
| ![with_selection_before](https://user-images.githubusercontent.com/183227/40892302-1488c674-674a-11e8-9dce-92fff33cb903.png) | ![with_selection_after](https://user-images.githubusercontent.com/183227/40892303-14b18f64-674a-11e8-9d81-cf865d06565b.png)## Changelog
See [CHANGELOG.md](./CHANGELOG.md)
## Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md)
## License
See [LICENSE.md](./LICENSE.md)