-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Associate *.[1-9]
file extensions with Text
#4258
Closed
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
baa4cad
Associate `.{1..9}` file extensions with Text
Alhadis 13eae15
Replace ambiguously licensed sample files
Alhadis fb94d5e
Replace code-like Text samples with English texts
Alhadis 96e6354
Merge branch 'master' into numeric-suffixes
Alhadis c3a414e
Add aliases for Emacs and Vim change-log modes
Alhadis faf7c6f
Check filenames for trailing version strings
Alhadis 721f6e2
Fix incorrigible blunder and add heuristic test
Alhadis efdb86f
Merge branch 'master' into numeric-suffixes
Alhadis f2ce033
Include support for Emacs's `outline-mode`
Alhadis 2d194f0
Merge branch 'master' into numeric-suffixes
Alhadis 7e59213
Use clearer Boolean logic
Alhadis 328b834
Merge branch 'master' into numeric-suffixes
Alhadis d860473
Fix brace expansion syntax
Alhadis 4c5321c
Merge remote-tracking branch 'origin/master' into numeric-suffixes
lildude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5278,8 +5278,20 @@ Text: | |
wrap: true | ||
aliases: | ||
- fundamental | ||
- change-log | ||
- changelog | ||
- outline | ||
extensions: | ||
- ".txt" | ||
- ".1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't associate that extension with Roff, because there's never been a |
||
- ".2" | ||
- ".3" | ||
- ".4" | ||
- ".5" | ||
- ".6" | ||
- ".7" | ||
- ".8" | ||
- ".9" | ||
- ".fr" | ||
- ".nb" | ||
- ".ncl" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
.de op | ||
. ds o \\fB\\$1\\fP | ||
. ie \\n(.$>2 .as o , \\fB\\$2\\fP \\fI\\$3\\fP | ||
. el .if \\n(.$=2 \{ | ||
. length L \\$1 | ||
. ie \\nL=2 .as o , \\fB\\$2\\fP | ||
. el .as o " \\fI\\$2\\fP | ||
. rm L | ||
. \} | ||
. TP | ||
\\*o | ||
. rm o | ||
.. | ||
.de env | ||
. TP | ||
\\fB\\$1\\fP | ||
.. | ||
. | ||
.\" ============================================================================ | ||
.TH ATOM 1 v1.26.1 | ||
.SH NAME | ||
atom \(em a hackable text editor for the 21st century | ||
. | ||
.SH SYNOPSIS | ||
.B atom | ||
.RI [ options ] | ||
.RI [ "paths..." ] | ||
. | ||
.\" ============================================================================ | ||
.SH DESCRIPTION | ||
Opens one or more \fIpaths\fP in Atom, which may point to either files or folders. | ||
.PP | ||
If there is an existing Atom window that contains all of the given folders, the paths will be opened in that window. | ||
Otherwise, they will be opened in a new window. | ||
.PP | ||
Paths that start with \(lqatom://\(rq will be interpreted as URLs. | ||
. | ||
.\" ============================================================================ | ||
.SH OPTIONS | ||
. | ||
.op -1 --one "" | ||
This option is no longer supported. | ||
It was formerly used to preview v1.0 APIs, and became redundant once Atom v1.0 shipped. | ||
. | ||
.op -a --add "" | ||
Open path as a new project in last used window. | ||
. | ||
.op --benchmark | ||
Open a new window that runs the specified benchmarks. | ||
. | ||
.op --benchmark-test | ||
Run a faster version of the benchmarks in headless mode. | ||
. | ||
.op --clear-window-state | ||
Delete all Atom environment state. | ||
. | ||
.op -d --dev "" | ||
Run in development mode. | ||
. | ||
.op --enable-electron-logging | ||
Enable low-level logging messages from Electron. | ||
. | ||
.op -f --foreground "" | ||
Keep the main process in the foreground. | ||
. | ||
.op -h --help "" | ||
Print a usage message. | ||
. | ||
.op --include-deprecated-apis | ||
This option is not currently supported. | ||
. | ||
.op -l --log-file file | ||
Log all output to \fIfile\fP. | ||
. | ||
.op -m --main-process "" | ||
Run the specified specs in the main process. | ||
. | ||
.op -n --new-window "" | ||
Open a new window. | ||
. | ||
.op -p --project file | ||
Start Atom with a project specification \fIfile\fP, which may be either CSON or JSON. | ||
. | ||
.op --profile-startup | ||
Create a profile of the startup execution time. | ||
. | ||
.op -r --resource-path path | ||
Set the path to the Atom source directory and enable dev-mode. | ||
. | ||
.op --safe | ||
Do not load packages from | ||
.I ~/.atom/packages | ||
or | ||
.IR ~/.atom/dev/packages . | ||
. | ||
.op -t --test specs | ||
Run the specified | ||
.I specs | ||
and exit with an error code on failure. | ||
. | ||
.op --timeout delay | ||
When in test mode, waits until the specified time (in minutes) and kills the process (exit code: 130). | ||
. | ||
.op -v --version "" | ||
Print the version information. | ||
. | ||
.op -w --wait "" | ||
Wait for window to be closed before returning. | ||
. | ||
.\" ============================================================================ | ||
.SH ENVIRONMENT VARIABLES | ||
.env ATOM_DEV_RESOURCE_PATH | ||
The path from which Atom loads source code in dev-mode. Defaults to | ||
.IR ~/github/atom . | ||
. | ||
.env ATOM_HOME | ||
The root path for all configuration files and folders. Defaults to | ||
.IR ~/.atom . | ||
. | ||
.\" ============================================================================ | ||
.SH SEE ALSO | ||
.BR apm (1) | ||
. | ||
.PP | ||
The Atom flight manual: | ||
.I http://flight-manual.atom.io/ | ||
. | ||
.\" ============================================================================ | ||
.SH AUTHORS | ||
Copyright \(co 2011\(en2018, GitHub Inc. | ||
Released under the MIT license. | ||
. | ||
.PP | ||
Manpage written by Alhadis | ||
.RI < gardnerjohng@gmail.com >. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this for? It doesn't appear to be used anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, that. This was an addition to the heuristics format to accommodate
Text
files which ended with version numbers (stuff likeGPL-2.2
and stuff). I must've overlooked the heuristic that used it when resolving merge conflicts, but on second thought, I'm not sure it's even needed...I recall it was @pchaigno's suggestion. @pchaigno, do we still need this? If not, we can simplify the format by removing the
filename_pattern
feature, but it might come in handy in future...