Skip to content

Commit

Permalink
Editing>ContextAwareness and ConfigFiles>Other: disableLineCopyCutDel…
Browse files Browse the repository at this point in the history
…ete.xml

notepad-plus-plus#613 item 4
  • Loading branch information
pryrt committed Jan 3, 2024
1 parent f33e955 commit a642658
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions content/docs/config-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ You can have multiple icon set directories; to switch between icon sets, you jus

- `cloud\choice` file: If this folder and file are present, the file contains the path to the [Cloud folder](../preferences/#cloud-link). This config file is created when you define the Cloud preferences. If you are in a normal installation, this config file will be `%AppData%\Notepad++\cloud\choice`; if it is deleted from there, Notepad++ will _not_ look for `<installdir>\cloud\choice`. If you are in a portable / local configuration (`doLocalConf.xml` exists), it will be in `<portable>\cloud\choice`.

- `disableLineCopyCutDelete.xml`: This is a zero-byte file that is used as an indicator to Notepad++ to not enable the [context-aware "line copy / cut / delete"](../editing/#context-awareness) feature (new to v8.6.1). This file needs to be in `%AppData%\Notepad++\` for a normal installation and in the portable directory for a local configuration.

- `doLocalConf.xml`: This is a zero-byte file that is used as an indicator to `notepad++.exe` to not go looking for `%AppData%`. This will only exist on local installations of Notepad++ (when you tell the installer to not use `%AppData%`, or when you install from the zipfile, or when you manually create the zero-byte file). This config file _must_ go in the Notepad++ installation folder; it will not be recognized in the `%AppData%\Notepad++` hierarchy or in the cloud settings folder.

- `enableSelectFgColor.xml`: This is a zero-byte file that is just used as an indicator to the [**Settings > Style Configurator > Global Styles > Selected text color**](../preferences/#global-styles) to honor the foreground color, not just the background color. This config file _must_ go in the Notepad++ installation folder; it will not be recognized in the `%AppData%\Notepad++` hierarchy or in the cloud settings folder. (Available on v8.0.0 and newer.)
Expand Down
8 changes: 5 additions & 3 deletions content/docs/editing.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ Below the **Begin/End Select** entries, there are a number of sub-menus to the *
* **As Decimals (Comma)** means it will recognize `10,234` and `9,876` as decimal numbers and sort them numerically
* **As Decimals (Dot)** means it will recognize `10.234` and `9.876` as decimal numbers and sort them numerically
* NOTE: Sorting is performed with the assumption that all line-endings in the file are uniform and match the current selection for the file being edited -- the quickest way to check that selection is to glance at the status bar, where the current line-ending type is shown either as `Windows (CR LF)`, `Unix (LF)` or `Macintosh (CR)`. It might be desirable to check the line-ending types in your file before executing a sorting operation, and use the **Edit > EOL Conversion >** choices or right-click on the Status Bar's EOL indicator to fix the line endings if necessary.
* NOTE: If a [Column Mode](./#column-mode-column-editor) selection is active, the sort will re-order all the lines included in the selection, but the sort key (the text that decides the sort order) will be limited to what is inside the column selection. This column-selection-based sort will be a "stable sort": if the keys are identical on two lines, then the order of those two lines will not change, even if text outside of the selected key columns is different.
* NOTE: If a [Column Mode](./#selection-modes-column-editor) selection is active, the sort will re-order all the lines included in the selection, but the sort key (the text that decides the sort order) will be limited to what is inside the column selection. This column-selection-based sort will be a "stable sort": if the keys are identical on two lines, then the order of those two lines will not change, even if text outside of the selected key columns is different.
* **Comment/Uncomment >** ⇒ submenu with actions that add or remove comment syntax, based on the file's **Language** selection. This makes use of the `commentLine`, `commentStart`, and `commentEnd` attributes of the active Language as defined in [langs.xml](../config-files/#keyword-lists-langsxml) to define the characters to use for making or clearing line comments (`commentLine`) and block comments (`commentStart` and `commentEnd`).
* **Auto-Completion >** ⇒ submenu with actions that manually trigger [auto-completion](../auto-completion/) of function name, word, function parameter, and pathname. While the automatic completion is affected by [**Preferences > Auto-Completion** settings](../preferences/#auto-completion) for setting minimum number of characters, and enabling which of the completions happen automatically, when you manually trigger one of the auto-completion actions through this menu or keyboard shortcut equivalents, completion will happen regardless of those settings (so you can manually trigger when there's fewer characters than the auto-trigger threshold, or you can manually trigger function completion when only word completion is active).
* **EOL Conversion >** ⇒ submenu with actions that convert line endings between Windows (`CR LF`), Unix (`LF`), and old Macintosh (`CR`) values; these operations affect all of the lines of the current file
Expand Down Expand Up @@ -313,8 +313,8 @@ Below the **Begin/End Select** entries, there are a number of sub-menus to the *
- Each submenu entry will be analogous to the **Multi-Select All** described above, but will only add a single match to the Multi-Selection (the next to occur after the current selection), rather than all matches.
* **Undo the Latest Added Multi-Select** ⇒ If you have a Multi-Selection active, this command will take out the most-recently added substring. (For example, if you had the text `the quick brown fox jumped over the lazy dog` and Multi-Selected `quick` then `dog`, then ran this command, your selection would only include `quick`.)
* **Skip Current & Go to Next Multi-Select** ⇒ If you have text selected, this command will unselect the current string, and Multi-Select the first instance _after_ this one that matches what had been selected.
* **Column Mode...** ⇒ dialog explaining [Column Mode](./#column-mode-column-editor)
* **Column Editor** ⇒ runs the [Column Editor](./#column-mode-column-editor) dialog, described above
* **Column Mode...** ⇒ dialog explaining [Column Mode](./#selection-modes-column-editor)
* **Column Editor** ⇒ runs the [Column Editor](./#selection-modes-column-editor) dialog, described above
* **Character Panel** ⇒ toggles the [Character Panel](#character-panel), described above
* **Clipboard History** ⇒ allows you to re-access recent copy/paste values (double-click a row to paste that value)
* **Set Read-Only** ⇒ toggles Notepad++'s read-only flag on the active file buffer.
Expand Down Expand Up @@ -350,6 +350,8 @@ Certain keyboard-shortcuts for editing commands are "context aware", meaning tha

Again, this manual will not enumerate all the context-aware commands. The ones listed above have been deemed especially useful, or are mentioned because they were added to give Notepad++ behavior that is similar to other popular text editors and coding environments.

In order to disable the context-aware "line copy / cut / delete" feature, create the [zero-byte config file](../config-files/#other-configuration-files) `disableLineCopyCutDelete.xml` (new to v8.6.1).

## Printing

_The documentation on printing the active document has been moved to [Working with Files > Printing](../files/#printing)._
2 changes: 1 addition & 1 deletion content/docs/programing-languages.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ syntax highlight extremely large files. This threshold is configurable in

When opening an existing file, Notepad++ has an algorithm for trying to decide which language a given file is, with the following priorities:

1. A language defined at the [command line using `-l`](./command-prompt) is applied.
1. A language defined at the [command line using `-l`](../command-prompt/) is applied.
2. If the file is in the active [session file](session/) (the automatic `session.xml` or a manually-controlled session), it will use the language stored in that session.
3. If the file extension is a "known extension" (whether it's from the [Style Configurator](../preferences/#style-configurator)'s default extension list [in `langs.xml` or `langs.model.xml`] or user-defined extension list [from `stylers.xml` or `themes\<ThemeName>.xml`] for a built-in language, or the [User Defined Language](../user-defined-language-system/)'s extension settings [from `userDefineLang.xml` or `userDefineLangs\<UDLName>.xml`]), Notepad++ will use that language.
4. If the filename matches one of a few specific names, Notepad++ knows what language they should be:
Expand Down
2 changes: 1 addition & 1 deletion content/docs/views.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ The **Synchronize Vertical Scrolling** and **Synchronize Horizontal Scrolling**

The **Text Direction RTL** and **Text Direction LTR** are useful for text that needs to be written Right to Left (RTL), or to switch a file back to Left to Right (LTR) viewing after it had previously been set to RTL. This is especially beneficial for editing Hebrew and Arabic scripts, and any other writing systems that are read Right to Left.

Starting in v8.6.1, Text Direction is set as a per-file option rather than a "global" option; it was a "global" option, applying to all files, before this version. The RTL state will be stored in the [Session](../session/) file as the `RTL="no"` or `RTL="yes"` attribute for each file in the session; if you manually edit your session file (and restart), for files with `RTL="yes"`, you can add in another attribute `editZoneRTL="no"` in order to tell Notepad++ to display in RTL mode but to have the "edit zone" in the editor be LTR, which may be helpful in certain situations. RTL mode does not work with the **[Preferences > MISC](./preferences/#misc) > Use Direct Write** option, and if you have that option checkmarked, Notepad++ will pop up a dialog informing you that you'll have to change that setting and restart Notepad++ before you can activate RTL mode.
Starting in v8.6.1, Text Direction is set as a per-file option rather than a "global" option; it was a "global" option, applying to all files, before this version. The RTL state will be stored in the [Session](../session/) file as the `RTL="no"` or `RTL="yes"` attribute for each file in the session; if you manually edit your session file (and restart), for files with `RTL="yes"`, you can add in another attribute `editZoneRTL="no"` in order to tell Notepad++ to display in RTL mode but to have the "edit zone" in the editor be LTR, which may be helpful in certain situations. RTL mode does not work with the **[Preferences > MISC](../preferences/#misc) > Use Direct Write** option, and if you have that option checkmarked, Notepad++ will pop up a dialog informing you that you'll have to change that setting and restart Notepad++ before you can activate RTL mode.

## Live File Monitoring

Expand Down

0 comments on commit a642658

Please sign in to comment.