8000 GitHub - axxie/far2l-jumpword: Far2l editor plugin for quick searching the word under cursor · GitHub
[go: up one dir, main page]

Skip to content

About

Far2l editor plugin for quick searching the word under cursor

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

About

The far2l plugin that searches the word under the cursor below or above the current location. This is quite useful for quick navigation in sources. The demo is below:

Demo

Building

To build, do a git clone from this repository to your far2l source root folder, add add_subdirectory(far2l-jumpword) to CMakeLists.txt, build far2l in the usual way.

Installing

Perform the build and do the usual far2l installation from build directory.

In addition you can install Ctrl + Alt + ↓ and Ctrl + Alt + ↑ keyboard shortcuts. To do that, add the following sections to ~/.config/far2l/settings/key_macros.ini:

[KeyMacros/Editor/CtrlAltDown]
DisableOutput=0x0
Sequence=F11 j 2

[KeyMacros/Editor/CtrlAltUp]
DisableOutput=0x0
Sequence=F11 j 1

[KeyMacros/Editor/CtrlShiftDown]
DisableOutput=0x0
Sequence=F11 j 2

[KeyMacros/Editor/CtrlShiftUp]
DisableOutput=0x0
Sequence=F11 j 1

Unit tests

The word-matching logic (src/JumpWordCore.hpp) is independent of the FAR SDK and is covered by standalone unit tests in tests/test_jumpword.cpp, which build and run without a far2l checkout:

c++ -std=c++17 -o test_jumpword tests/test_jumpword.cpp && ./test_jumpword

or via CMake:

cd tests && cmake -B build && cmake --build build && ctest --test-dir build

About

Far2l editor plugin for quick searching the word under cursor

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0