Skip to content

Commit

Permalink
v0.4: find/replace form, chunks to files
Browse files Browse the repository at this point in the history
Added

1. Find and replace text or regexes in a file.
    The results of the find/replace can either
    overwrite the original file or be written to a new file.
2. Write each chunk to a separate file
    (optionally in a new folder created for this purpose).
3. Plugin command to close connection to file and close all forms.
4. Clicking on a specific result in the find/replace form now
    jumps to the location of the matched text
    rather than just opening up the correct chunk.
5. Tab navigation of the find/replace form.
  • Loading branch information
molsonkiko committed Feb 24, 2023
1 parent 4d1a739 commit afc3679
Show file tree
Hide file tree
Showing 20 changed files with 423 additions and 115 deletions.
16 changes: 12 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2. Otherwise, apply the diffs, then append the edited chunk to the file.
3. Delete the original file.
4. Rename the new file to have the same name as the old one.
2. Make the search form into a find/replace form.
3. Add a tool for creating a new directory and writing each chunk to a separate file.
4. Chunk big XML documents so that each chunk is also valid XML.
2. Chunk big XML documents so that each chunk is also valid XML.

### To Be Changed

Expand All @@ -30,6 +28,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

1. The "eyeball" icon indicating the currently selected file doesn't properly track when a chunk is selected with the find/replace form.

## [0.4.0] - 2023-02-23

### Added

1. [Find and replace text](/docs/README.md#findreplace-form) or regexes in a file. The results of the find/replace can either overwrite the original file or be written to a new file.
2. [Write each chunk to a separate file](/docs/README.md#write-chunks-to-folder) (optionally in a new folder created for this purpose).
3. Plugin command to close connection to file and close all forms.
4. Clicking on a specific result in the find/replace form now jumps to the location of the matched text rather than just opening up the correct chunk.
5. Tab navigation of the find/replace form.

## [0.3.0] - 2023-02-18

### Added
Expand All @@ -46,7 +54,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Added

1. [Form](/docs/README.md#text-search-form) for searching for text in chunked file. Can navigate to chunks where search results were found.
1. [Form](/docs/README.md#findreplace-form) for searching for text in chunked file. Can navigate to chunks where search results were found.
2. Automatic inference of line terminator. Can be turned off in plugin settings.

## [0.1.1] - 2022-09-03
Expand Down
8 changes: 4 additions & 4 deletions HugeFiles/Forms/AboutForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions HugeFiles/Forms/ChunkForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ public static void PreviousChunk(BaseChunker chunker, ChunkForm chunkForm)
if (chunker.chunkSelected > 0)
chunker.chunkSelected -= 1;
ChunkForm.OpenChunk(chunker, chunker.chunkSelected);
if (chunkForm != null)
chunkForm.MoveSelectedImage(prev_selected);
chunkForm?.MoveSelectedImage(prev_selected);
}

public static void NextChunk(BaseChunker chunker, ChunkForm chunkForm)
Expand Down
116 changes: 102 additions & 14 deletions HugeFiles/Forms/FindReplaceForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit afc3679

Please sign in to comment.