> For the complete documentation index, see [llms.txt](https://cloakedkeys.gitbook.io/ofsc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cloakedkeys.gitbook.io/ofsc/command-reference/shared-options/common-option-groups/filename-modification-options.md).

# Filename Modification Options

These options allow you to customize how the program generates filenames for downloaded content

## Filename Modification Parameters

### -g, --original

* **Disables:** Truncation of long file paths.
* **Default:** `None` (paths are truncated by default)
* **Use case:** You might want to use this option if you need to preserve the entire original file path for organizational purposes.

### -tt, --text-type \[argument]

* **Sets:** The type of unit used to determine the maximum length of the filename text placeholder
* **Possible choices:**
  * `word`: Splits the filename text placeholder into words (on `space_replacer`, or a space) and considers word count for truncation.
  * `letter`: Considers the total number of characters in the filename text placeholder for truncation.
* **Default:** the `text_type_default` config setting (`letter` unless changed)
* **Example:** With `-tt letter` and `-tl 10`, text placeholder would be truncated to a maximum of 10 characters

### -sr, --space-replacer \[argument] (optional)

* **Replaces:** Spaces in the filename text with the specified character.
* **Default:** `None` (spaces are left as spaces)
* **Use case:** This can be helpful for creating filenames compatible with certain file systems or applications that disallow spaces.
* **Example:** With `-sr _`, spaces would be replaced with underscores (e.g., "This File.txt" becomes "This\_File.txt").

### -tl, --textlength \[argument]

* **Sets:** The maximum length of the filename text placeholder
* **Default:** `None` (no limit on text length)
* **Effect:** Truncates text placeholders that exceed the specified length.
* **Use case:** This is useful for ensuring filenames adhere to character limitations imposed by some file systems, as text placeholders can easily go over OS limits

**Note:**

* These options work together to modify the final filename.
* If truncation occurs, it will be based on the chosen `-tt` type (word or letter) ,the provided `-tl` length, and the current OS


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cloakedkeys.gitbook.io/ofsc/command-reference/shared-options/common-option-groups/filename-modification-options.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
