Skip to content

Commit

Permalink
Merge branch 'release/2.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
usami-k committed Nov 25, 2014
2 parents f527d0e + 41c48b7 commit 7ea3d53
Show file tree
Hide file tree
Showing 158 changed files with 1,281 additions and 707 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ xcode_workspace: CotEditor.xcworkspace
xcode_scheme: CotEditor
before_install:
- gem install cocoapods
osx_image: xcode61
49 changes: 49 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,55 @@
changelog
==========================

2.0.1
--------------------------

### New Features

- Introduce new AppleScript commands `comment out` and `uncomment` for selection object.
- Add “js“ extension to CotEditor script type.
- __Hint__: Use `#!/usr/bin/osascript -l JavaScript` for shebang to run script as Yosemite's JavaScript for Automation.
- Add “Create Bug Report…” action to the Help menu.
- Add syntax style for “BibTeX”.


### Additions/Changes

- Display an alert if the opening file is larger than 100 MB.
- Change default value for “Comment always from line head” option to enable.
- Rename labels for line endings.
- Update “Python” syntax style:
- Fix highlighting `print` command.
- Update “Ruby” syntax style:
- Improve highlighting `%` literals.
- Update “R” syntax style:
- Add file name `.Rprofile` to file mapping.
- Update “JavaScript” syntax style:
- Highlight shebang as comment.
- Update documents for scripting with AppleScript.
- Update sample scripts.
- Remove syntax style for “eRuby”.


### Fixes

- Fix an issue that new documents couldn't occasionally be saved with an extension that is automatically added from syntax definition.
- Fix an issue that the application could crash after closing split view.
- Fix an issue that some objects couldn't be handled via JavaScript for Automation on Yosemite.
- Fix an issue that syntax style validator didn't warn about keywords duplication that were newly added.
- Fix an issue that syntax style mapping conflict tables were always blank.
- Fix an issue that quoted texts and block comments at the end of document weren't highlighted.
- Fix an issue that text kerning was too narrow with non-antialiasing text (thanks to tsawada2-san).
- Fix an issue that text view scrolls to the opposite side when line number view is dragged.
- Fix an issue that `contents` of document property could’t be set via AppleScript.
- Fix an issue that word selection didn't expand correctly under the specific conditions.
- Fix an issue that current line highlight didn't update after font size change.
- Fix an issue that navigation/status bars are shown for a moment on window creation even they are set as hidden.
- Fix an issue that new added row in file drop setting occasionally disappear immediately.
- Fix some Japanese localizations.



2.0.0
--------------------------

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</head>

<body>
<a name="about_applescript"></a>
<h1>Working with AppleScript</h1>

<p>CotEditor supports AppleScript and has own AppleScript dictionary so that you can look up the classes or commands available with CotEditor. To open the dictionary:</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</head>

<body>
<a name="about_script_name"></a>
<h1>File naming rules for CotEditor scripts</h1>

<p>This page explains the rules for naming script files.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
</head>

<body>
<a name="about_unixscript"></a>
<h1>Working with UNIX scripts</h1>

<p>This page explains how to pass your document's text to UNIX scripts that are executable via the Script menu, or how to receive the outputs from them.</p>

<ul>
<li>The file extensions of the scripts you can add to the Script menu are: .sh .pl .php .rb .py (regardless of their languages)</li>
<li>The file extensions of the scripts you can add to the Script menu are: .sh .pl .php .rb .py .js (regardless of their languages)</li>
<li>In order to run a script, you need to set execute permission for the script file. To do so, use Terminal.app (located in Applications/Utilities) or chmod 755.app which is bundled in the SampleScript folder.</li>
<li>Line endings in your script must be LF.</li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,81 @@
<h1>Release Notes</h1>


<article>
<header>
<h1>CotEditor 2.0.1</h1>
<p>release: <time>2014-11-25</time></p>
</header>


<section>
<h3>New Features</h3>

<ul>
<li>Introduce new AppleScript commands <code>comment out</code> and <code>uncomment</code> for selection object.</li>
<li>Add “js“ extension to CotEditor script type.
<ul>
<li><strong>Hint</strong>: Use <code>#!/usr/bin/osascript -l JavaScript</code> for shebang to run script as Yosemite's JavaScript for Automation.</li>
</ul></li>
<li>Add “Create Bug Report…” action to the Help menu.</li>
<li>Add syntax style for “BibTeX”.</li>
</ul>
</section>


<section>
<h3>Additions/Changes</h3>

<ul>
<li>Display an alert if the opening file is larger than 100 MB.</li>
<li>Change default value for “Comment always from line head” option to enable.</li>
<li>Rename labels for line endings.</li>
<li>Update “Python” syntax style:
<ul>
<li>Fix highlighting <code>print</code> command.</li>
</ul></li>
<li>Update “Ruby” syntax style:
<ul>
<li>Improve highlighting <code>%</code> literals.</li>
</ul></li>
<li>Update “R” syntax style:
<ul>
<li>Add file name <code>.Rprofile</code> to file mapping.</li>
</ul></li>
<li>Update “JavaScript” syntax style:
<ul>
<li>Highlight shebang as comment.</li>
</ul></li>
<li>Update documents for scripting with AppleScript.</li>
<li>Update sample scripts.</li>
<li>Remove syntax style for “eRuby”.</li>
</ul>
</section>


<section>
<h3>Fixes</h3>

<ul>
<li>Fix an issue that new documents couldn't occasionally be saved with an extension that is automatically added from syntax definition.</li>
<li>Fix an issue that the application could crash after closing split view.</li>
<li>Fix an issue that some objects couldn't be handled via JavaScript for Automation on Yosemite.</li>
<li>Fix an issue that syntax style validator didn't warn about keywords duplication that were newly added.</li>
<li>Fix an issue that syntax style mapping conflict tables were always blank.</li>
<li>Fix an issue that quoted texts and block comments at the end of document weren't highlighted.</li>
<li>Fix an issue that text kerning was too narrow with non-antialiasing text (thanks to tsawada2-san).</li>
<li>Fix an issue that text view scrolls to the opposite side when line number view is dragged.</li>
<li>Fix an issue that <code>contents</code> property of document property could’t be set via AppleScript.</li>
<li>Fix an issue that word selection didn't expand correctly under the specific conditions.</li>
<li>Fix an issue that current line highlight didn't update after font size change.</li>
<li>Fix an issue that navigation/status bars are shown for a moment on window creation even they are set as hidden.</li>
<li>Fix an issue that new added row in file drop setting occasionally disappear immediately.</li>
<li>Fix some Japanese localizations.</li>
</ul>
</section>
</article>


<article>
<header>
<h1>CotEditor 2.0.0</h1>
Expand Down Expand Up @@ -724,7 +799,7 @@ <h2>Fixes</h2>
<article>
<header>
<h1>CotEditor 1.1.1</h1>
<p>release: <time>2014-04-06</time></p>
<p>release: <time>2011-04-06</time></p>
</header>


Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
<link rel="stylesheet" href="../../Shared/sty/standard.css"/>
<title>AppleScript との連携</title>
</head>
<body>

<body>
<a name="about_applescript"></a>
<h1>AppleScript との連携</h1>
<p>CotEditor は AppleScript をサポートしています。CotEditor でサポートされているクラス・コマンドについては、用語説明を参照してください。用語説明を参照するには次のようにします。</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</head>

<body>
<a name="about_script_name"></a>
<h1>CotEditor スクリプトのファイル名規則</h1>

<p>このページでは CotEditror スクリプトのファイル名規則を説明します。</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
</head>

<body>
<a name="about_unixscript"></a>
<h1>UNIX スクリプトとの連携</h1>

<p>このページではスクリプトメニューから実行する UNIX スクリプトに CotEditor で編集中の書類の情報やテキストを渡したり、スクリプトの実行結果を書類に反映する方法を説明します。</p>

<ul>
<li>スクリプトメニューに登録できるスクリプトの拡張子は .sh .pl .php .rb .py です(言語は関係ありません)。</li>
<li>スクリプトメニューに登録できるスクリプトの拡張子は .sh .pl .php .rb .py .js です(言語は関係ありません)。</li>
<li>スクリプトには実行権限がなければなりません。スクリプトに実行権限を付与するには、ターミナルを使用するか、または「SampleScript」フォルダに同梱の「chmod 755.app」をお使いください。</li>
<li>スクリプト内の改行コードは LF でなければなりません。</li>
</ul>
Expand Down Expand Up @@ -53,7 +54,7 @@ <h2>スクリプトの出力を受け取る</h2>

<ul style="margin-top: 1em;">
<li>コメントを記述しなかった場合、「Discard」となります。</li>
<li>CotEditor に渡すテキストは、標準出力としてください。</li>
<li>CotEditor に渡すテキストは、標準出力としてください。</li>
<li>CotEditor に返すテキストの文字エンコーディングは UTF-8 でなければなりません。</li>
</ul>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,81 @@
<h1>リリースノート</h1>


<article>
<header>
<h1>CotEditor 2.0.1</h1>
<p>リリース: <time>2014-11-25</time></p>
</header>


<section>
<h2>新機能</h2>

<ul>
<li>新しい AppleScript コマンド <code>comment out</code><code>uncomment</code> を selection オブジェクトに追加</li>
<li>拡張子 “js“ を CotEditor スクリプトとして実行できるファイルタイプに追加
<ul>
<li><strong>ヒント</strong>: Yosemite の JavaScript for Automation として実行させるには <code>#!/usr/bin/osascript -l JavaScript</code> をシェバン (shebang) として使用します。</li>
</ul></li>
<li>ヘルプメニューに不具合報告のテンプレートを作成する “不具合レポートを作成…” を追加</li>
<li>“BibTeX” シンタックス定義を追加</li>
</ul>
</section>


<section>
<h2>機能改善/仕様変更</h2>

<ul>
<li>開こうとしているファイルが 100MB 以上の時に警告を出す機能を追加</li>
<li> “常に行頭からコメントアウト”設定のデフォルト値をオンに変更</li>
<li>改行コードのラベルを変更</li>
<li>“Python”シンタックス定義を更新
<ul>
<li><code>print</code> コマンドのカラーリングを修正</li>
</ul></li>
<li>“Ruby”シンタックス定義を更新
<ul>
<li><code>%</code> リテラルの抽出条件を向上</li>
</ul></li>
<li>“R”シンタックス定義を更新
<ul>
<li>ファイル名 <code>.Rprofile</code> をファイル関連付けに追加</li>
</ul></li>
<li>“JavaScript”シンタックス定義を更新
<ul>
<li>シェバンをコメントとしてカラーリング</li>
</ul></li>
<li>ドキュメント「AppleScript でのスクリプト作成」を更新</li>
<li>サンプルスクリプトを更新</li>
<li>“eRuby” シンタックス定義を削除</li>
</ul>
</section>


<section>
<h2>バグフィックス</h2>

<ul>
<li>シンタックス定義から自動的に追加された拡張子で新規書類が保存できないことがある不具合を修正</li>
<li>分割ビューを閉じた後にアプリケーションがクラッシュする可能性があった不具合を修正</li>
<li>Yosemite の JavaScript for Automation で操作できないオブジェクトがある不具合を修正</li>
<li>シンタックス定義編集の「シンタックスを検証」で新たに追加された重複するキーワードが検出されない不具合を修正</li>
<li>ファイル関連付けののコンフリクトの表示が常に空白だった不具合を修正</li>
<li>文書末にある引用符付きの文字列またはブロックコメントがカラーリングされなかった不具合を修正</li>
<li>アンチエイリアシングをオフにした時に文字間が詰まりすぎて表示されることがあった不具合を修正(tsawada2さんに感謝)</li>
<li>行番号ビューをドラッグしたとき、テキストビューが逆にスクロールされる不具合を修正</li>
<li>AppleScript で document オブジェクトの <code>contents</code> プロパティに文字列をセットできなかった不具合を修正。</li>
<li>単語選択モードでの選択範囲の拡張がうまくできないことがある不具合を修正</li>
<li>文字サイズを変更した時に現在行のハイライトが再描画されない不具合を修正</li>
<li>ナビゲーション/ステータスバーを非表示にしていても、ウインドウを表示した時に一瞬だけ表示される不具合を修正</li>
<li>ファイルドロップ設定を追加した時に追加した行がすぐに消えてしまうことがある不具合を修正</li>
<li>いくつかの日本語ローカライズの修正</li>
</ul>
</section>
</article>


<article>
<header>
<h1>CotEditor 2.0.0</h1>
Expand All @@ -26,7 +101,6 @@ <h1>CotEditor 2.0.0</h1>
<section>
<h2>新機能</h2>


<ul>
<li>テーマ機能</li>
<li>コメントアウト/コメント解除機能</li>
Expand Down
Loading

0 comments on commit 7ea3d53

Please sign in to comment.