File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ ta = ../..
6
6
cwd = $(shell pwd)
7
7
docs : README.md
8
8
README.md : init.lua
9
- cd $(ta ) /scripts && ldoc --filter markdowndoc.ldoc $(cwd ) /$< > $( cwd ) / $@
10
- sed -i -e ' 1,+4d ' -e ' 6c# Open File Mode ' -e ' 7d ' -e ' s/^##/#/; ' $@
9
+ cd $(ta ) /scripts && ldoc --filter markdowndoc.ldoc $(cwd ) /$< -- --title= " Open File Mode " \
10
+ --single > $( cwd ) / $@
11
11
12
12
# Releases.
13
13
Original file line number Diff line number Diff line change 1
1
# Open File Mode
2
- ---
3
2
4
3
A Textadept module that extends the editor's ` ui.command_entry ` with a mode that can open
5
4
files relative to the current file or directory.
5
+
6
6
Tab-completion is available.
7
7
8
8
This is an alternative to Textadept's default File Open dialog.
9
9
10
10
Install this module by copying it into your * ~ /.textadept/modules/* directory or Textadept's
11
11
* modules/* directory, and then putting the following in your * ~ /.textadept/init.lua* :
12
12
13
- keys['alt+o'] = require('open_file_mode')
13
+ ``` lua
14
+ keys [' alt+o' ] = require (' open_file_mode' )
15
+ ```
14
16
15
17
Replace "alt+o" with the key you want to bind the function to. You can also create a menu
16
18
item with that function.
17
19
18
- ## Functions defined by ` ui.command_entry.open_file `
19
-
20
20
<a id =" _G.ui.command_entry.open_file " ></a >
21
- ### ` _G.ui.command_entry.open_file ` ()
21
+ ## ` _G.ui.command_entry.open_file ` ()
22
22
23
23
Opens the command entry in a mode that can open files relative to the current file or
24
24
directory.
25
+
25
26
Tab-completion is available, and on Windows, Cygwin-style '/c/' root directories are supported.
26
27
If no file is ultimately specified, the user is prompted with Textadept's default File
27
28
Open dialog.
28
29
29
30
30
- ---
31
+
Original file line number Diff line number Diff line change 9
9
-- Install this module by copying it into your *~/.textadept/modules/* directory or Textadept's
10
10
-- *modules/* directory, and then putting the following in your *~/.textadept/init.lua*:
11
11
--
12
- -- keys['alt+o'] = require('open_file_mode')
12
+ -- ```lua
13
+ -- keys['alt+o'] = require('open_file_mode')
14
+ -- ```
13
15
--
14
16
-- Replace "alt+o" with the key you want to bind the function to. You can also create a menu
15
17
-- item with that function.
You can’t perform that action at this time.
0 commit comments