SHA256
1
0
forked from pool/helix

Accepting request 1077798 from editors

Fixed the changelog file by renaming the removed file.

OBS-URL: https://build.opensuse.org/request/show/1077798
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/helix?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2023-04-07 16:16:59 +00:00 committed by Git OBS Bridge
commit 4cfd814d37
8 changed files with 115 additions and 31 deletions

View File

@ -1,7 +1,7 @@
<services>
<service name="download_files" mode="disabled" />
<service name="cargo_vendor" mode="disabled">
<param name="srctar">helix-22.12.tar.xz</param>
<param name="srctar">helix-23.03.tar.xz</param>
<param name="compression">xz</param>
<param name="update">true</param>
</service>

View File

@ -1,5 +1,10 @@
[source.crates-io]
replace-with = "vendored-sources"
[source."git+https://github.com/tree-sitter/tree-sitter?rev=c51896d32dcc11a38e41f36e3deb1a6a9c4f4b14"]
git = "https://github.com/tree-sitter/tree-sitter"
rev = "c51896d32dcc11a38e41f36e3deb1a6a9c4f4b14"
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:295b42a369fbc6282693eb984a77fb86260f7baf3ba3a8505d62d1c619c2f3f4
size 84787532

3
helix-23.03.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:60e5d8927f2f43807ff4ed3c96e7071746ce23d0b7ebaa27e380723726710703
size 113618664

View File

@ -1,16 +0,0 @@
Index: helix-22.12/helix-loader/src/lib.rs
===================================================================
--- helix-22.12.orig/helix-loader/src/lib.rs 2023-03-06 10:51:51.196485557 +0100
+++ helix-22.12/helix-loader/src/lib.rs 2023-03-06 10:52:38.460917379 +0100
@@ -41,6 +41,11 @@ pub fn runtime_dir() -> PathBuf {
return conf_dir;
}
+ let rt_dir = std::path::PathBuf::from("@HELIX_RUNTIME_DIR@").join(RT_DIR);
+ if rt_dir.exists() {
+ return rt_dir;
+ }
+
// fallback to location of the executable being run
// canonicalize the path in case the executable is symlinked
std::env::current_exe()

View File

@ -1,3 +1,101 @@
-------------------------------------------------------------------
Thu Apr 6 13:27:49 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Remove HELIX_DISABLE_AUTO_GRAMMAR_BUILD.
-------------------------------------------------------------------
Thu Apr 6 12:20:41 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Remove sed command to modify HELIX_RUNTIME
-------------------------------------------------------------------
Thu Apr 6 09:21:16 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Update to version 22.03
* Breaking changes:
- Select diagnostic range in goto_*_diag commands
- Remove jump behavior from increment/decrement
- Select change range in goto_*_change commands
- Split file modification indicator from filename statusline elements
- Jump to symbol ranges in LSP goto commands
- Workspace detection now stops at the first .helix/ directory (merging multiple .helix/languages.toml configurations is no longer supported)
* Features:
- Dynamic workspace symbol picker
- Soft-wrap
- Initial support for LSP snippet completions
- Add a statusline element for showing the current version control HEAD
- Display LSP type hints
- Enable the Kitty keyboard protocol on terminals with support
- Add a statusline element for the basename of the current file
- Add substring matching syntax for the picker
- Support LSP textDocument/prepareRename
- Allow multiple runtime directories with priorities
- Allow configuring whether to insert or replace completions
- Allow per-workspace config file .helix/config.toml
- Add workspace-lsp-roots config option to support multiple LSP roots for use with monorepos
* Commands:
- :pipe-to which pipes selections into a shell command and ignores output
- merge_consecutive_selections (A-_) combines all consecutive selections
- rotate_view_reverse which focuses the previous view
- goto_declaration (gD, requires LSP) which jumps to a symbol's declaration
- file_picker_in_current_buffer_directory
- :character-info which shows information about the character under the cursor
- :toggle-option for toggling config options at runtime
- dap_restart for restarting a debug session in DAP
- :lsp-stop to stop the language server of the current buffer
- :reset-diff-change for resetting a diff hunk to its original text
- :config-open-workspace for opening the config file local to the current workspace
* Fixes:
- Fix behavior of auto-completion flag for completion-on-trigger
- Reset editor mode when changing buffers
- Respect scrolloff settings in mouse movements
- Avoid trailing s when only one file is opened
- Fix erroneous indent between closers of auto-pairs
- Expand ~ when parsing file paths in :open
- Fix theme inheritance for default themes
- Fix extend_line with a count when the current line(s) are selected
- Prompt: Fix autocompletion for paths containing periods
- Skip serializing JSONRPC params if params is null
- Fix interaction with the xclip clipboard provider
- Fix undo/redo execution from the command palette
- Fix highlighting of non-block cursors
- Fix panic when nooping in join_selections and join_selections_space
- Fix selecting a changed file in global search
- Fix initial syntax highlight layer sort order
- Fix UTF-8 length handling for shellwords
- Remove C-j and C-k bindings from the completion menu
- Always commit to history when pasting
- Properly handle LSP position encoding
- Fix infinite loop in copy_selection_on_prev_line
- Fix completion popup positioning
- Fix a panic when uncommenting a line with only a comment token
- Fix panic in goto_window_center at EOF
- Ignore invalid file URIs sent by a language server
- Decode LSP URIs for the workspace diagnostics picker
- Fix incorrect usages of tab_width with indent_width
- DAP: Send Disconnect if the Terminated event is received
- DAP: Validate key and index exist when requesting variables
- Check LSP renaming support before prompting for rename text
- Fix indent guide rendering
- Fix division by zero panic
- Fix lacking space panic
- Send error replies for malformed and unhandled LSP requests
- Fix table column calculations for dynamic pickers
- Skip adding jumplist entries for :<n> line number previews
- Fix completion race conditions
- Fix shrink_selection with multiple cursors
- Fix indentation calculation for lines with mixed tabs/spaces
- No-op client/registerCapability LSP requests
- Send the STOP signal to all processes in the process group
- Fix workspace edit client capabilities declaration (7bf168d)
- Fix highlighting in picker results with multiple columns
- Canonicalize paths before stripping the current dir as a prefix
- Fix truncation behavior for long path names in the file picker
- Fix theme reloading behavior in :config-reload (ab819d8)
* More information at https://github.com/helix-editor/helix/blob/master/CHANGELOG.md#2303-2023-03-31
- Remove helix-runtime-path.patch
- Fix SPDX license names
-------------------------------------------------------------------
Wed Mar 8 14:44:35 UTC 2023 - Andreas Schneider <asn@cryptomilk.org>

View File

@ -23,18 +23,17 @@
%global _helix_runtimedir %{_libdir}/%{name}/runtime
Name: helix
Version: 22.12
Version: 23.03
Release: 0
Summary: A post-modern modal text editor written in Rust
License: (Apache-2.0 OR MIT) AND BSD-3-Clause AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (MIT or Unlicense) AND (Zlib OR Apache-2.0 OR MIT) AND Apache-2.0 AND BSL-1.0 AND ISC AND MIT AND MPL-2.0+ AND Zlib AND MPL-2.0
License: (Apache-2.0 OR MIT) AND BSD-3-Clause AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (MIT or Unlicense) AND (Zlib OR Apache-2.0 OR MIT) AND Apache-2.0 AND BSL-1.0 AND ISC AND MIT AND MPL-2.0 AND Zlib AND MPL-2.0
URL: https://github.com/helix-editor/helix
# This tarball includes fetched grammars
Source0: %{url}/releases/download/%{version}/%{name}-%{version}-source.tar.xz#/%{name}-%{version}.tar.xz
Source0: https://github.com/helix-editor/helix/releases/download/%{version}/%{name}-%{version}-source.tar.xz#/%{name}-%{version}.tar.xz
Source1: vendor.tar.xz
Source2: cargo_config
Source3: README-suse-maint.md
Source4: helix-rpmlintrc
Patch0: helix-runtime-path.patch
BuildRequires: c++_compiler
BuildRequires: c_compiler
BuildRequires: cargo-packaging
@ -89,16 +88,11 @@ if there is no runtime present in the users config directory specifically
mkdir -p .cargo
cp %{SOURCE2} .cargo/config.toml
# Replace RUNTIME dir
sed -e 's#@HELIX_RUNTIME_DIR@#%{_libdir}/%{name}#' -i helix-loader/src/lib.rs
# Remove shell definitions
sed -e '/^\#\!\/usr\/bin\/env .*/d' -i contrib/completion/hx.*
%build
export HELIX_DISABLE_AUTO_GRAMMAR_BUILD=true
%{cargo_build}
HELIX_RUNTIME="$PWD/runtime" ./target/release/hx --grammar build
# Shell completions
sed -i "s|hx|helix|g" contrib/completion/hx.*
@ -117,6 +111,9 @@ find "%{_builddir}/%{name}-%{version}/runtime/grammars" -type f -name '*.so' -ex
install --verbose -Dm 755 {} -t "%{buildroot}%{_helix_runtimedir}/grammars" \;
install -Dm644 runtime/tutor -t %{buildroot}%{_helix_runtimedir}
# Not needed during runtime
rm -rfv %{buildroot}%{_helix_runtimedir}/grammars/sources
# Desktop application file
install -Dm644 -T %{_builddir}/%{name}-%{version}/contrib/Helix.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{name}

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5a53e4f09aa52cc848caa203cdcbbabfd3697c2b244999e18823cf08a4111c5f
size 29664656
oid sha256:b3becdf4493cf4d822c39fcefa0431969d605c6a6da75e098978f598d60df120
size 38327548