https://github.com/orbitalquark/textadept-open-file-mode
A Textadept module that extends the editor's Command Entry with a mode that can open files relative to the current file or directory. Tab-completion is available.
https://github.com/orbitalquark/textadept-open-file-mode
textadept textadept-module
Last synced: 2 months ago
JSON representation
A Textadept module that extends the editor's Command Entry with a mode that can open files relative to the current file or directory. Tab-completion is available.
- Host: GitHub
- URL: https://github.com/orbitalquark/textadept-open-file-mode
- Owner: orbitalquark
- License: mit
- Created: 2020-10-07T17:27:16.000Z (over 4 years ago)
- Default Branch: default
- Last Pushed: 2025-03-27T13:41:21.000Z (3 months ago)
- Last Synced: 2025-04-06T16:48:54.865Z (3 months ago)
- Topics: textadept, textadept-module
- Language: Lua
- Homepage:
- Size: 37.1 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Open File Mode
A Textadept module that extends the editor's `ui.command_entry` with a mode that can open
files relative to the current file or directory.Tab-completion is available.
This is an alternative to Textadept's default File Open dialog.
Install this module by copying it into your *~/.textadept/modules/* directory or Textadept's
*modules/* directory, and then putting the following in your *~/.textadept/init.lua*:```lua
keys['alt+o'] = require('open_file_mode')
```Replace "alt+o" with the key you want to bind the function to. You can also create a menu
item with that function.
## `_G.ui.command_entry.open_file`()Opens the command entry in a mode that can open files relative to the current file or
directory.Tab-completion is available, and on Windows, Cygwin-style '/c/' root directories are supported.
If no file is ultimately specified, the user is prompted with Textadept's default File
Open dialog.