<commit_before># dx/dt
![](media/dxdt.gif)

**dx/dt is a simple python3 utility for opening and creating files**. It is inspired by Notational Velocity's simple, flat model of opening a page if it exists and creating one if it doesn't. dx/dt stays closer to the Unix philosophy-- it's simple and composable. It is a flexible tool, allowing for multiple notebooks, any kind of file, any editing program, and user templates. Most functionality is surfaced through a command line interface. Configuration is stored in plain text.

A rofi script is included for graphical usage, and as a reference for scripts using dx/dt.


## Usage Examples
Usage examples use the example configuration below. Use dxdt [subcommand] -h for more complete information.

```sh
$ dxdt open todo # Open a page at '~/Notes/todo.md' in a new gnome-terminal window, using vim, in the default book - 'notes'
$ dxdt open org jul06 # Open a page at '~/org/jul06.org' in emacs, in the book 'org'
$
$ dxdt get # get a list of all dx/dt books
notes
psych
org
$ dxdt get notes # get a list of all pages in book 'notes'
todo
groceries
cat name ideas
$
$ dxdt set -e emacs --template standard-note.md # Change some settings for 'notes'
$ dxdt bind .odf # Create a new book in the current directory
$ dxdt bind .xcf --path ~/pics/working --book shops # create a new book, specifying settings
```


## Configuration

Books (and their pages) are the basic organizational model of dx/dt. Configuration is defined in **~/.dxdt/config** or through the **set** and **bind** subcommands.

### Example Configuration file:
<commit_msg>Improved formatting of usage xamples<commit_after># dx/dt
![](media/dxdt.gif)

**dx/dt is a simple python3 utility for opening and creating files**. It is inspired by Notational Velocity's simple, flat model of opening a page if it exists and creating one if it doesn't. dx/dt stays closer to the Unix philosophy-- it's simple and composable. It is a flexible tool, allowing for multiple notebooks, any kind of file, any editing program, and user templates. Most functionality is surfaced through a command line interface. Configuration is stored in plain text.

A rofi script is included for graphical usage, and as a reference for scripts using dx/dt.


## Usage Examples
Usage examples use the example configuration below. Use dxdt [subcommand] -h for more complete information.

```sh
$ dxdt open todo # Open a page at '~/Notes/todo.md' in a new gnome-terminal window, using vim, in the default book - 'notes'
$ dxdt open org jul06 # Open a page at '~/org/jul06.org' in emacs, in the book 'org'
```

```sh
$ dxdt get # get a list of all dx/dt books
notes
psych
org
$ dxdt get notes # get a list of all pages in book 'notes'
todo
groceries
cat name ideas
```

```sh
$ dxdt set -e emacs --template standard-note.md # Change some settings for 'notes'
$ dxdt set psyc -p ~/Documents/PSYC-200
```

```sh
$ dxdt bind .odf # Create a new book (name and path from current directory)
$ dxdt unbind # Unbind book in the current directory
$ dxdt bind .xcf --path ~/pics/working --book shops # create a new book, specifying settings
```


## Configuration

Books (and their pages) are the basic organizational model of dx/dt. Configuration is defined in **~/.dxdt/config** or through the **set** and **bind** subcommands.

### Example Configuration file:

{'fraction_non_alphanumeric': 0.08815592203898051, 'fraction_numerical': 0.0038980509745127436, 'mean_word_length': 3.9940119760479043, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '585780', 'n_tokens_mistral': 984, 'n_tokens_neox': 922, 'n_words': 504}