Skip to content
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

Add "What's New" page to show release notes after update to new version #1414

Merged
merged 1 commit into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions runtime/doc/gui_mac.txt
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ KEY VALUE ~
*MMVerticalSplit* files open in vertical splits [bool]
*MMZoomBoth* zoom button maximizes both directions [bool]
*MMUpdaterPrereleaseChannel* opt-in to pre-release software update [bool]
*MMShowWhatsNewOnStartup* show "What's New" after updating to new version [bool]

As an example, if you have more than one mouse button and would wish to free
up Ctrl-click so you can bind it to something else, then the appropriate
Expand Down
1 change: 1 addition & 0 deletions runtime/doc/tags
Original file line number Diff line number Diff line change
Expand Up @@ -5520,6 +5520,7 @@ MMNonNativeFullScreenShowMenu gui_mac.txt /*MMNonNativeFullScreenShowMenu*
MMRendererClipToRow gui_mac.txt /*MMRendererClipToRow*
MMShareFindPboard gui_mac.txt /*MMShareFindPboard*
MMShowAddTabButton gui_mac.txt /*MMShowAddTabButton*
MMShowWhatsNewOnStartup gui_mac.txt /*MMShowWhatsNewOnStartup*
MMSmoothResize gui_mac.txt /*MMSmoothResize*
MMTabMaxWidth gui_mac.txt /*MMTabMaxWidth*
MMTabMinWidth gui_mac.txt /*MMTabMinWidth*
Expand Down
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_ca_es.latin1.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Fer\ zoom\ a\ tot
menutrans Show\ Next\ Tab Mostrar\ la\ pestanya\ següent
menutrans Show\ Previous\ Tab Mostrar\ la\ pestanya\ anterior
menutrans Bring\ All\ to\ Front Portar-ho\ tot\ a\ primer\ pla
menutrans What's\ New Novetats
menutrans Release\ Notes Notes\ de\ la\ versió
menutrans Look\ Up Consultar
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_cs_cz.utf-8.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Přepnout\ velikost\ všech
menutrans Show\ Next\ Tab Zobrazit\ další\ panel
menutrans Show\ Previous\ Tab Zobrazit\ předchozí\ panel
menutrans Bring\ All\ to\ Front Převést\ vše\ do\ popředí
menutrans What's\ New Novinky
menutrans Release\ Notes Poznámky\ k\ vydání
menutrans Look\ Up Vyhledat
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_da.utf-8.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Zoom\ alle
menutrans Show\ Next\ Tab Vis\ næste\ fane
menutrans Show\ Previous\ Tab Vis\ forrige\ fane
menutrans Bring\ All\ to\ Front Anbring\ alle\ forrest
menutrans What's\ New Nyheder
menutrans Release\ Notes Frigivelsesnoter
menutrans Look\ Up Slå\ op
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_de_de.latin1.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Alle\ zoomen
menutrans Show\ Next\ Tab Nächsten\ Tab\ anzeigen
menutrans Show\ Previous\ Tab Vorherigen\ Tab\ anzeigen
menutrans Bring\ All\ to\ Front Alle\ nach\ vorne\ bringen
menutrans What's\ New Neue\ Funktionen
menutrans Release\ Notes Aktuelle\ Informationen
menutrans Look\ Up Nachschlagen
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_es_es.latin1.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Aplicar\ zoom\ a\ todas\ las\ ventanas
menutrans Show\ Next\ Tab Mostrar\ pestaña\ siguiente
menutrans Show\ Previous\ Tab Mostrar\ pestaña\ anterior
menutrans Bring\ All\ to\ Front Traer\ todo\ al\ frente
menutrans What's\ New Novedades
menutrans Release\ Notes Notas\ de\ la\ versión
menutrans Look\ Up Consultar
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_fi_fi.latin1.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Zoomaa\ kaikki
menutrans Show\ Next\ Tab Näytä\ seuraava\ välilehti
menutrans Show\ Previous\ Tab Näytä\ edellinen\ välilehti
menutrans Bring\ All\ to\ Front Tuo\ kaikki\ eteen
menutrans What's\ New Uutta
menutrans Release\ Notes Julkaisutiedot
menutrans Look\ Up Katso\ lisää
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_fr_fr.latin1.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Réduire/agrandir\ toutes\ les\ fenêtres
menutrans Show\ Next\ Tab Afficher\ l’onglet\ suivant
menutrans Show\ Previous\ Tab Afficher\ l’onglet\ précédent
menutrans Bring\ All\ to\ Front Tout\ ramener\ au\ premier\ plan
menutrans What's\ New Nouveautés
menutrans Release\ Notes Notes\ de\ mise\ à\ jour
menutrans Look\ Up Définition
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_hu_hu.utf-8.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Összes\ nagyítása
menutrans Show\ Next\ Tab Következő\ lap\ megjelenítése
menutrans Show\ Previous\ Tab Előző\ lap\ megjelenítése
menutrans Bring\ All\ to\ Front Összes\ előtérbe\ hozása
menutrans What's\ New Újdonságok
menutrans Release\ Notes Kibocsátási\ megjegyzések
menutrans Look\ Up Definiálás
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_it_it.latin1.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Ridimensiona\ tutto
menutrans Show\ Next\ Tab Mostra\ pannello\ successivo
menutrans Show\ Previous\ Tab Mostra\ pannello\ precedente
menutrans Bring\ All\ to\ Front Porta\ tutto\ in\ primo\ piano
menutrans What's\ New Novità
menutrans Release\ Notes Note\ di\ uscita
menutrans Look\ Up Cerca
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_ja_jp.utf-8.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All すべてを拡大/縮小
menutrans Show\ Next\ Tab 次のタブを表示
menutrans Show\ Previous\ Tab 前のタブを表示
menutrans Bring\ All\ to\ Front すべてを手前に移動
menutrans What's\ New 新機能
menutrans Release\ Notes リリースノート
menutrans Look\ Up 調べる
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_ko_kr.utf-8.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All 모두\ 확대/축소
menutrans Show\ Next\ Tab 다음\ 탭\ 보기
menutrans Show\ Previous\ Tab 이전\ 탭\ 보기
menutrans Bring\ All\ to\ Front 모두\ 앞으로\ 가져오기
menutrans What's\ New 새로운\ 기능
menutrans Release\ Notes 릴리즈\ 노트
menutrans Look\ Up 찾아보기
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_nl_nl.latin1.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Vergroot/verklein\ alles
menutrans Show\ Next\ Tab Toon\ volgende\ tabblad
menutrans Show\ Previous\ Tab Toon\ vorige\ tabblad
menutrans Bring\ All\ to\ Front Alles\ op\ voorgrond
menutrans What's\ New Nieuw
menutrans Release\ Notes Versienotities
menutrans Look\ Up Zoek\ op
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_no_no.latin1.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Zoom\ alle
menutrans Show\ Next\ Tab Vis\ neste\ fane
menutrans Show\ Previous\ Tab Vis\ forrige\ fane
menutrans Bring\ All\ to\ Front Legg\ alle\ øverst
menutrans What's\ New Nytt
menutrans Release\ Notes Merknader
menutrans Look\ Up Slå\ opp
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_pl_pl.utf-8.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Zoom\ wszystkich
menutrans Show\ Next\ Tab Pokaż\ następną\ kartę
menutrans Show\ Previous\ Tab Pokaż\ poprzednią\ kartę
menutrans Bring\ All\ to\ Front Umieść\ wszystko\ na\ wierzchu
menutrans What's\ New Co\ nowego
menutrans Release\ Notes Informacje\ o\ wersji
menutrans Look\ Up Definicja
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_pt_br.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Zoom\ em\ Todas
menutrans Show\ Next\ Tab Mostrar\ Aba\ Seguinte
menutrans Show\ Previous\ Tab Mostrar\ Aba\ Anterior
menutrans Bring\ All\ to\ Front Trazer\ Todas\ para\ a\ Frente
menutrans What's\ New Novidades
menutrans Release\ Notes Notas\ de\ Lançamento
menutrans Look\ Up Pesquisar
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_pt_pt.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Aumentar/reduzir\ todas\ as\ janelas
menutrans Show\ Next\ Tab Mostrar\ separador\ seguinte
menutrans Show\ Previous\ Tab Mostrar\ separador\ anterior
menutrans Bring\ All\ to\ Front Passar\ tudo\ para\ a\ frente
menutrans What's\ New Novidades
menutrans Release\ Notes Notas\ de\ lançamento
menutrans Look\ Up Procurar
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_ru_ru.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Изменить\ масштаб\ всех\ окон
menutrans Show\ Next\ Tab Показать\ следующую\ вкладку
menutrans Show\ Previous\ Tab Показать\ предыдущую\ вкладку
menutrans Bring\ All\ to\ Front Все\ окна\ —\ на\ передний\ план
menutrans What's\ New Что\ нового
menutrans Release\ Notes Примечания\ к\ выпуску
menutrans Look\ Up Найти\ в\ словаре
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_sv_se.latin1.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Zooma\ alla
menutrans Show\ Next\ Tab Visa\ nästa\ flik
menutrans Show\ Previous\ Tab Visa\ föregående\ flik
menutrans Bring\ All\ to\ Front Lägg\ alla\ överst
menutrans What's\ New Nyheter
menutrans Release\ Notes Versions­anmärkningar
menutrans Look\ Up Slå\ upp
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_tr_tr.utf-8.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All Tümünü\ Büyüt/Küçült
menutrans Show\ Next\ Tab Sonraki\ Sekmeyi\ Göster
menutrans Show\ Previous\ Tab Önceki\ Sekmeyi\ Göster
menutrans Bring\ All\ to\ Front Tümünü\ Öne\ Getir
menutrans What's\ New Yenilikler
menutrans Release\ Notes Çıkış\ Notları
menutrans Look\ Up Araştır
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_zh_cn.utf-8.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All 全部缩放
menutrans Show\ Next\ Tab 显示下一个标签页
menutrans Show\ Previous\ Tab 显示上一个标签页
menutrans Bring\ All\ to\ Front 前置全部窗口
menutrans What's\ New 新功能
menutrans Release\ Notes 发布说明
menutrans Look\ Up 查询
1 change: 1 addition & 0 deletions runtime/lang/macvim_menu/menu_zh_tw.utf-8.apple.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ menutrans Zoom\ All 縮放全部
menutrans Show\ Next\ Tab 顯示下一個標籤頁
menutrans Show\ Previous\ Tab 顯示上一個標籤頁
menutrans Bring\ All\ to\ Front 將此程式所有視窗移至最前
menutrans What's\ New 新功能
menutrans Release\ Notes 版本附註
menutrans Look\ Up 查詢
15 changes: 9 additions & 6 deletions runtime/menu.vim
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,18 @@ if has("gui_macvim")
an 9999.1 &Help.MacVim\ Help :h gui_mac<CR>
tln 9999.1 &Help.MacVim\ Help <C-W>:h gui_mac<CR>
an <silent> 9999.2 &Help.MacVim\ Website <Nop>
an 9999.3 &Help.Release\ Notes <Cmd>silent !open https://github.com/macvim-dev/macvim/releases<CR>
tln 9999.3 &Help.Release\ Notes <Cmd>silent !open https://github.com/macvim-dev/macvim/releases<CR>
an 9999.4 &Help.-sep0- <Nop>
an 9999.3 &Help.What's\ New <Nop>
tln 9999.3 &Help.What's\ New <Nop>
an 9999.4 &Help.Release\ Notes <Cmd>silent !open https://github.com/macvim-dev/macvim/releases<CR>
tln 9999.4 &Help.Release\ Notes <Cmd>silent !open https://github.com/macvim-dev/macvim/releases<CR>
an 9999.5 &Help.-sep0- <Nop>
endif
if has("gui_macvim")
" Run vimtutor in GUI mode. Need to make sure to override the PATH so we use
" this app instead of accidentally opening another installed Vim/MacVim.
an 9999.5 &Help.Vim\ Tutor :silent call system('PATH="$VIM/../../bin":/usr/bin:/bin:/usr/sbin:/sbin $VIM/../../bin/vimtutor -g&')<CR>
tln 9999.5 &Help.Vim\ Tutor <C-W>:silent call system('PATH="$VIM/../../bin":/usr/bin:/bin:/usr/sbin:/sbin $VIM/../../bin/vimtutor -g&')<CR>
an 9999.6 &Help.-sep-vim-tutor- <Nop>
an 9999.6 &Help.Vim\ Tutor :silent call system('PATH="$VIM/../../bin":/usr/bin:/bin:/usr/sbin:/sbin $VIM/../../bin/vimtutor -g&')<CR>
tln 9999.6 &Help.Vim\ Tutor <C-W>:silent call system('PATH="$VIM/../../bin":/usr/bin:/bin:/usr/sbin:/sbin $VIM/../../bin/vimtutor -g&')<CR>
an 9999.7 &Help.-sep-vim-tutor- <Nop>
endif
an 9999.10 &Help.&Overview<Tab><F1> :help<CR>
an 9999.20 &Help.&User\ Manual :help usr_toc<CR>
Expand Down Expand Up @@ -1312,6 +1314,7 @@ if has("gui_macvim")

macm Help.MacVim\ Help key=<D-?>
macm Help.MacVim\ Website action=openWebsite:
macm Help.What's\ New action=showWhatsNew:
endif " if has("gui_macvim")

endif " !exists("did_install_default_menus")
Expand Down
2 changes: 2 additions & 0 deletions src/MacVim/Actions.plist
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<string></string>
<key>openWebsite:</key>
<string></string>
<key>showWhatsNew:</key>
<string></string>
<key>orderFrontCharacterPalette:</key>
<string></string>
<key>orderFrontFontPanel:</key>
Expand Down
5 changes: 5 additions & 0 deletions src/MacVim/Base.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@
<action selector="openWebsite:" target="235" id="274"/>
</connections>
</menuItem>
<menuItem title="What's New" id="e16-xE-q4U" userLabel="What's New">
<connections>
<action selector="showWhatsNew:" target="235" id="dHh-AW-Oxv"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
Expand Down
47 changes: 32 additions & 15 deletions src/MacVim/Base.lproj/Preferences.xib
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<userDefaultsController representsSharedInstance="YES" id="58" userLabel="Shared Defaults"/>
<customView id="115" userLabel="General">
<rect key="frame" x="0.0" y="0.0" width="483" height="337"/>
<rect key="frame" x="0.0" y="0.0" width="483" height="362"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<customView id="5x5-P0-afk" userLabel="Open untitled window">
<rect key="frame" x="20" y="259" width="433" height="58"/>
<rect key="frame" x="20" y="284" width="433" height="58"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" id="117">
Expand Down Expand Up @@ -73,7 +73,7 @@
</subviews>
</customView>
<customView id="p6o-fo-STi" userLabel="Open files from applications">
<rect key="frame" x="20" y="119" width="433" height="132"/>
<rect key="frame" x="20" y="144" width="433" height="132"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" id="116">
Expand Down Expand Up @@ -152,7 +152,7 @@
</subviews>
</customView>
<customView id="dlz-JQ-U4e" userLabel="After last window closes">
<rect key="frame" x="20" y="89" width="381" height="22"/>
<rect key="frame" x="20" y="114" width="381" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" id="126">
Expand Down Expand Up @@ -185,7 +185,7 @@
</subviews>
</customView>
<customView id="6BL-o0-OrR" userLabel="Window Resizing">
<rect key="frame" x="20" y="64" width="444" height="17"/>
<rect key="frame" x="20" y="89" width="444" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<button id="f9h-8n-asD" userLabel="allow smooth resizing">
Expand All @@ -212,6 +212,32 @@
</textField>
</subviews>
</customView>
<customView id="nRD-BI-GeM" userLabel="Launch behavior">
<rect key="frame" x="20" y="64" width="444" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<button toolTip="Show a &quot;What's New&quot; page right after updating to a new version with the latest release notes." id="bxV-yy-NJC">
<rect key="frame" x="188" y="-1" width="258" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" title="Show what's new after updates" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="ai9-b7-6iD">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<connections>
<binding destination="58" name="value" keyPath="values.MMShowWhatsNewOnStartup" id="LjF-Lv-00h"/>
</connections>
</button>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" id="qpS-3j-8OG">
<rect key="frame" x="-2" y="0.0" width="187" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="When MacVim launches:" id="S5x-il-vbq">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
</subviews>
</customView>
<customView id="0hT-y8-Hge" userLabel="Updater">
<rect key="frame" x="20" y="20" width="444" height="36"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
Expand Down Expand Up @@ -244,19 +270,10 @@
<binding destination="58" name="value" keyPath="values.SUAutomaticallyUpdate" id="kyZ-ah-zKf"/>
</connections>
</button>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" id="124">
<rect key="frame" x="-2" y="19" width="187" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="When MacVim launches:" id="976">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
</subviews>
</customView>
</subviews>
<point key="canvasLocation" x="137.5" y="21.5"/>
<point key="canvasLocation" x="137.5" y="-27"/>
</customView>
<customView id="hr4-G4-3ZG" userLabel="Appearance">
<rect key="frame" x="0.0" y="0.0" width="483" height="360"/>
Expand Down
Loading