Skip to content

Commit

Permalink
Drop shell integration #10
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobrasolin committed Nov 18, 2021
1 parent e8c19bd commit 8bdaefe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 61 deletions.
22 changes: 0 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ To install многоꙮтех execute

gem install mnogootex

To install `mnogoo` (strongly recommended shell integration) add this to your shell profile

[ -s "$(mnogootex mnogoo)" ] && . "$(mnogootex mnogoo)"

## Quick start

Set up your `LaTeX` project as usual - let's say its main file is `~/project/main.tex` and contains `\documentclass{...}`.
Expand Down Expand Up @@ -81,11 +77,6 @@ Commands listed below can be passed to both unless otherwise stated.

Prints the help for `COMMAND` (or all commands if none is given).

#### `mnogoo`

Prints the location of the `mnogoo` shell integration script.
Useful only for its [installation](#installation).

#### `go [JOB ...] [MAIN]`

Run given compilation `JOB`s for the `MAIN` document.
Expand All @@ -105,17 +96,6 @@ If no `JOB` is given then it prints the source directory.
If no `MAIN` document is given then it's deduced from either
your current working directory or the [configuration](#configuration).

#### `cd [JOB] [MAIN]`

> **NOTE:** recognized by `mnogoo` only.
Checks into `JOB`'s temporary directory for the `MAIN` document.

If no `JOB` is given then it checks into the source directory.

If no `MAIN` document is given then it's deduced from either
your current working directory or the [configuration](#configuration).

#### `clobber`

Deletes all temporary files.
Expand All @@ -133,8 +113,6 @@ your current working directory or the [configuration](#configuration).

#### `open [JOB ...] [MAIN]`

> **NOTE:** recognized by `mnogoo` only.
Open `JOB`'s output PDF for the `MAIN` document with your default viewer.

If no `JOB` list is given then all their output PDFs are opened.
Expand Down
20 changes: 2 additions & 18 deletions lib/mnogootex/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,10 @@

module Mnogootex
class CLI < Thor
IS_MNOGOO = (ENV['IS_MNOGOO'] == 'true')

def self.basename
IS_MNOGOO ? 'mnogoo' : super
end

desc 'cd [JOB] [MAIN]',
'Check into dir of JOB (or source) for MAIN (or inferred) document'
def cd(*args); end

desc 'open [JOB ...] [MAIN]',
'Open PDF of each (or every) JOB for MAIN (or inferred) document'
def open(*args); end

remove_command :cd, :open unless IS_MNOGOO

desc 'mnogoo',
'Print path of the shell wrapper script'
def mnogoo
puts Pathname.new(__dir__).join('mnogoo.sh').realpath
def open(*args);
raise "TODO: implement this w/ latexmk -pv"
end

desc 'clobber',
Expand Down
21 changes: 0 additions & 21 deletions lib/mnogootex/mnogoo.sh

This file was deleted.

0 comments on commit 8bdaefe

Please sign in to comment.